Auto buy celestial
Key RequiredUniversal

Auto buy celestial

Universal ScriptForkerForker 675 views 244 executesUpdated Mar 28, 2026
Unrated
00
Lua Script•118 lines (4765 chars)
-- Break For Pets - Celestial Lucky Block Auto Buyer (Works From Anywhere)
-- Uses BuyPrompt + MaxActivationDistance expansion

local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

local Window = Rayfield:CreateWindow({
    Name = "Celestial Auto Buyer - Anywhere Mode",
    LoadingTitle = "Range Expanded Version",
    LoadingSubtitle = "No need to stay near treadmill",
    ConfigurationSaving = { Enabled = false },
    KeySystem = false
})

local ControlTab = Window:CreateTab("Control", 4483362458)

local StatusLabel = ControlTab:CreateLabel("Status: Stopped")

local autoRunning = false
local heartbeatConn

ControlTab:CreateToggle({
    Name = "Auto Buy Celestial (Anywhere)",
    CurrentValue = false,
    Callback = function(state)
        autoRunning = state
        
        if state then
            StatusLabel:Set("Status: RUNNING - Anywhere mode ON")
            print("✅ Auto Buy Started (range expanded)")
            
            heartbeatConn = game:GetService("RunService").Heartbeat:Connect(function()
                if not autoRunning then return end
                
                local activeFolder = workspace:FindFirstChild("Game") and workspace.Game:FindFirstChild("ActiveBlocks")
                if not activeFolder then return end
                
                for _, block in ipairs(activeFolder:GetChildren()) do
                    if block.Name == "Celestial Lucky Block" then
                        local buyPrompt = block:FindFirstChild("BuyPrompt", true)
                        
                        if buyPrompt and buyPrompt:IsA("ProximityPrompt") then
                            print("Celestial found - expanding range & buying...")
                            
                            -- Make the prompt work from ANY distance
                            local oldMaxDistance = buyPrompt.MaxActivationDistance
                            local oldHold = buyPrompt.HoldDuration
                            
                            buyPrompt.MaxActivationDistance = 99999  -- basically infinite
                            buyPrompt.HoldDuration = 0               -- instant
                            
                            buyPrompt:InputHoldBegin()
                            task.wait(0.07)
                            buyPrompt:InputHoldEnd()
                            
                            -- Restore original values
                            buyPrompt.MaxActivationDistance = oldMaxDistance
                            buyPrompt.HoldDuration = oldHold
                            
                            StatusLabel:Set("Status: RUNNING - Celestial Bought!")
                            print("✅ Bought Celestial Lucky Block from anywhere")
                            task.wait(0.9) -- cooldown
                            break
                        end
                    end
                end
            end)
        else
            if heartbeatConn then heartbeatConn:Disconnect() end
            StatusLabel:Set("Status: Stopped")
            print("⛔ Auto Buy Stopped")
        end
    end,
})

ControlTab:CreateButton({
    Name = "Manual Buy Test (Anywhere)",
    Callback = function()
        local activeFolder = workspace:FindFirstChild("Game") and workspace.Game:FindFirstChild("ActiveBlocks")
        if not activeFolder then
            print("ActiveBlocks not found")
            return
        end
        
        for _, block in ipairs(activeFolder:GetChildren()) do
            if block.Name == "Celestial Lucky Block" then
                local buyPrompt = block:FindFirstChild("BuyPrompt", true)
                if buyPrompt then
                    local oldDist = buyPrompt.MaxActivationDistance
                    local oldHold = buyPrompt.HoldDuration
                    
                    buyPrompt.MaxActivationDistance = 99999
                    buyPrompt.HoldDuration = 0
                    
                    buyPrompt:InputHoldBegin()
                    task.wait(0.08)
                    buyPrompt:InputHoldEnd()
                    
                    buyPrompt.MaxActivationDistance = oldDist
                    buyPrompt.HoldDuration = oldHold
                    
                    print("✅ Manual buy attempted on Celestial (anywhere)")
                else
                    print("BuyPrompt not found")
                end
                return
            end
        end
        print("No Celestial currently spawned")
    end,
})

print("✅ Anywhere version loaded!")
print("Turn on 'Auto Buy Celestial (Anywhere)'")
print("You can now AFK or walk around the map freely.")

game.Players.LocalPlayer.CharacterRemoving:Connect(function()
    if Rayfield then Rayfield:Destroy() end
end)

Features & Information

This script was created by ai, I’m not trying to be a skid I don’t understand how to script. Just wanted to share this as I searched for a few days and finally made it work since there isn’t any scripts currently out yet for this game. Auto buys celestials, expands the buy prompt so you can buy it from any position, has only been used in private servers might bug if in public, try to stay close to the treadmill.

Community Comments (2)

ForkerForkerMar 28, 2026

Yes sir, will get it fixed. Sorry.

ForkerForkerMar 28, 2026

Sigh, idk how to attach a game link.

More Scripts for Universal Scripts