Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local amount = 200 -- Lower It Out For Small Pets . Higher For High Pets .
- local coins = game:GetService("Workspace")["__REMOTES"].Game.Coins
- local save = game:GetService("Workspace")["__REMOTES"].Core["Get Other Stats"]:InvokeServer()
- local plr = game:GetService("Players").LocalPlayer
- local petids = {}
- local pets = game:GetService("Workspace")["__REMOTES"].Game.Pets
- local a = #save[plr.Name]["Save"]["Pets"]
- local done = "lol meme"
- function random(t)
- local keys = {}
- for key, value in pairs(t) do
- keys[#keys+1] = key
- end
- index = keys[math.random(1, #keys)]
- return t[index]
- end
- for i=1,a do
- if(save[plr.Name]["Save"]["Pets"][a].e == true) then
- table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
- end
- a = a - 1
- end
- function co(b)
- local done = b
- print("Mining coin: " .. b.Name)
- while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
- warn(b.Name .. "- Health: " .. b.Health.Value)
- wait(0.2)
- coins:FireServer("Mine", b.Name, amount, random(petids))
- end
- end
- for _,b in next, Workspace.__THINGS.Coins:GetChildren() do
- if(done ~= b) then
- coroutine.wrap(function()co(b)end)()
- end
- end[color=#000000]
Add Comment
Please, Sign In to add comment