Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.FarmApples = true
- local args = {
- [1] = "PurchaseTool",
- [2] = "StormBreaker"
- }
- local lp = game.Players.LocalPlayer
- game:GetService("ReplicatedStorage").Events.Server:InvokeServer(unpack(args))
- local args = {
- [1] = "Apple",
- [2] = lp.Backpack:FindFirstChildOfClass("Tool") or lp.Character:FindFirstChildOfClass("Tool")
- }
- while _G.FarmApples and wait() do
- spawn(function()
- local a = 0
- repeat
- a = a + 1
- game:GetService("ReplicatedStorage").Events.Collect:FireServer(unpack(args))
- until a == 10
- game.Players.LocalPlayer.PlayerGui.MainGui.ScreenFrame.PopUpFrame.Visible = false
- game.Players.LocalPlayer.PlayerGui.MainGui.ScreenFrame.LevelUp.Visible = false
- game.Players.LocalPlayer.PlayerGui.MainGui.ScreenFrame.BackpackFullFrame.Visible = false
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement