Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- What this does:
- 1) Mines for you.
- 2) Auto sells.
- 3) Auto buys backpacks.
- 4) Auto rebirth.
- How to use:
- 1) Execute script.
- 2) Thats fucking it.
- To disable this script run this single line:
- game:GetService("RunService"):UnbindFromRenderStep("HAX")
- ]]
- local Plrs = game:GetService("Players")
- local Run = game:GetService("RunService")
- local Rep = game:GetService("ReplicatedStorage")
- local MyPlr = Plrs.LocalPlayer
- local MyPack = MyPlr.Backpack
- local MyCoins = MyPlr.leaderstats.Coins
- local MyChar = MyPlr.Character
- local Events = Rep.Events
- local CurrentSand = nil -- Don't Edit.
- local MaxSand = nil -- Don't Edit.
- local RebirthCost = 500000
- local Backpacks = {
- ["Small Bag"] = {false, 150},
- ["Medium Bag"] = {false, 375},
- ["Large Bag"] = {false, 900},
- ["XL Bag"] = {false, 3150},
- ["XXL Bag"] = {false, 13200},
- }
- function UpdateBackpacks()
- for i, v in next, Backpacks do
- if Events.CheckIfOwned:InvokeServer(i) then
- v[1] = true
- end
- end
- end
- function GetSurfaceGui()
- for i, v in next, Backpacks do
- local f = MyChar:FindFirstChild(i)
- if f then
- return f
- end
- end
- return nil
- end
- function UpdateRebirthCost()
- for i = 1, MyCoins.Parent.Rebirths.Value do
- RebirthCost = RebirthCost + 500000
- end
- end
- UpdateRebirthCost()
- UpdateBackpacks()
- print(RebirthCost)
- Run:UnbindFromRenderStep("HAX")
- Run:BindToRenderStep("HAX", Enum.RenderPriority.First.Value - 1, function()
- MyChar = MyPlr.Character
- MyPack = MyPlr.Backpack
- for i, v in next, Backpacks do
- if v[1] == false then
- if MyCoins.Value >= v[2] then
- Events.Checkout:FireServer(i)
- v[1] = true
- Events.EquipBackpack:FireServer(i)
- end
- end
- end
- if Events.CheckIfOwned:InvokeServer("XXL Bag") then
- Events.EquipBackpack:FireServer("XXL Bag")
- end
- if MyCoins.Value >= RebirthCost then
- Events.Rebirth:FireServer()
- UpdateRebirthCost()
- end
- local Tool = MyChar:FindFirstChild("Bucket")
- if Tool then
- local Event = Tool:FindFirstChild("RemoteClick")
- if Event then
- MyChar.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.463, 20.608, -13.357))
- local Pick = workspace.SandBlocks:GetChildren()[math.random(1, #workspace.SandBlocks:GetChildren())]
- if Pick:IsA("BasePart") then
- Event:FireServer(Pick)
- end
- else
- print("EVENT NOT FOUND!?!?!?!?")
- end
- else
- Tool = MyPack:FindFirstChild("Bucket")
- if Tool then
- Tool.Parent = MyChar
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement