View difference between Paste ID: UPjbup8Q and TCSTtEtc
SHOW: | | - or go back to the newest paste.
1
--[[
2
What this does:
3
1) Mines for you.
4
2) Auto sells.
5
3) Auto buys backpacks.
6
4) Auto rebirth.
7
8
How to use: 
9
1) Execute script.
10
2) Thats fucking it.
11
12
To disable this script run this single line:
13
game:GetService("RunService"):UnbindFromRenderStep("HAX")
14
]]
15
local Plrs = game:GetService("Players")
16
local Run = game:GetService("RunService")
17
local Rep = game:GetService("ReplicatedStorage")
18
local MyPlr = Plrs.LocalPlayer
19
local MyPack = MyPlr.Backpack
20
local MyCoins = MyPlr.leaderstats.Coins
21
local MyChar = MyPlr.Character
22
local Events = Rep.Events
23
24
25
26
local CurrentSand = nil -- Don't Edit.
27
local MaxSand = nil -- Don't Edit.
28
local RebirthCost = 500000
29
local Backpacks = {
30
    ["Small Bag"] = {false, 150},
31
    ["Medium Bag"] = {false, 375},
32
    ["Large Bag"] = {false, 900},
33
    ["XL Bag"] = {false, 3150},
34
    ["XXL Bag"] = {false, 13200},
35
}
36
37
function UpdateBackpacks()
38
    for i, v in next, Backpacks do
39
        if Events.CheckIfOwned:InvokeServer(i) then
40
            v[1] = true
41
        end
42
    end
43
end
44
45
function GetSurfaceGui()
46
    for i, v in next, Backpacks do
47
        local f = MyChar:FindFirstChild(i)
48
        if f then
49
            return f
50
        end
51
    end
52
53
    return nil
54
end
55
56
function UpdateRebirthCost()
57
    for i = 1, MyCoins.Parent.Rebirths.Value do
58
        RebirthCost = RebirthCost + 500000
59
    end
60
end
61
62
UpdateRebirthCost()
63
UpdateBackpacks()
64
print(RebirthCost)
65
66
Run:UnbindFromRenderStep("HAX")
67
Run:BindToRenderStep("HAX", Enum.RenderPriority.First.Value - 1, function()
68
    MyChar = MyPlr.Character
69
    MyPack = MyPlr.Backpack
70
    for i, v in next, Backpacks do
71
        if v[1] == false then
72
            if MyCoins.Value >= v[2] then
73
                Events.Checkout:FireServer(i)
74
                v[1] = true
75
                Events.EquipBackpack:FireServer(i)
76
            end
77
        end
78
    end
79
80
    if Events.CheckIfOwned:InvokeServer("XXL Bag") then
81
        Events.EquipBackpack:FireServer("XXL Bag")
82
    end
83
84
    if MyCoins.Value >= RebirthCost then
85
        Events.Rebirth:FireServer()
86
        UpdateRebirthCost()
87
    end
88
89
    local Tool = MyChar:FindFirstChild("Bucket")
90
    if Tool then
91
        local Event = Tool:FindFirstChild("RemoteClick")
92
        if Event then
93
            MyChar.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.463, 20.608, -13.357))
94
            local Pick = workspace.SandBlocks:GetChildren()[math.random(1, #workspace.SandBlocks:GetChildren())]
95
            if Pick:IsA("BasePart") then
96
                Event:FireServer(Pick)
97
            end
98
        else
99
            print("EVENT NOT FOUND!?!?!?!?")
100
        end
101
    else
102
        Tool = MyPack:FindFirstChild("Bucket")
103
        if Tool then
104
            Tool.Parent = MyChar
105
        end
106
    end
107
end)