Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GameLibrary = require(game:GetService("ReplicatedStorage"):WaitForChild("Framework"):WaitForChild("Library"))
- workspace.__THINGS.__REMOTES.MAIN:FireServer("b", "get coins")
- workspace.__THINGS.__REMOTES.MAIN:FireServer("b", "join coin")
- workspace.__THINGS.__REMOTES.MAIN:FireServer("a", "farm coin")
- wait(1)
- local EasterEggs = {}
- for i,v in pairs(game:GetService("ReplicatedStorage").Game.Coins.Other.Easter:GetChildren()) do
- table.insert(EasterEggs, v.Name)
- end
- local function FarmCoin(CoinID, PetID)
- game.workspace['__THINGS']['__REMOTES']["join coin"]:InvokeServer({[1] = CoinID, [2] = {[1] = PetID}})
- game.workspace['__THINGS']['__REMOTES']["farm coin"]:FireServer({[1] = CoinID, [2] = PetID})
- end
- local function GetMyPets()
- local returntable = {}
- for i,v in pairs(GameLibrary.Save.Get().Pets) do
- if v.e then
- table.insert(returntable, v.uid)
- end
- end
- return returntable
- end
- function CheckForEggs()
- local ListCoins = game.workspace['__THINGS']['__REMOTES']["get coins"]:InvokeServer({})[1]
- for i,v in pairs(ListCoins) do
- if table.find(EasterEggs, v.n) then
- if _G.On and workspace.__THINGS.Coins:FindFirstChild(i) then
- for _, bb in pairs(GetMyPets()) do
- coroutine.wrap(function()
- FarmCoin(i, bb)
- end)()
- end
- repeat task.wait() until not workspace.__THINGS.Coins:FindFirstChild(i) or not _G.On
- print("Got an", v.n)
- end
- end
- end
- end
- spawn(function()
- while wait() and _G.On do
- for _, b in pairs({"Spawn", "Fantasy", "Tech", "Axolotl Ocean", "Pixel"}) do
- if _G.On then
- GameLibrary.WorldCmds.Load(b)
- wait(5)
- CheckForEggs()
- wait(5)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement