Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function countButtons()
- local n = 0
- for i, v in pairs(getPlayerTycoon()["P1 Stuff"].Buttons:GetChildren()) do
- if v:FindFirstChild("Head") and not v:FindFirstChild("GamePass") then
- n = n+1
- end
- end
- return n
- end
- function getPlayerTycoon()
- local Tycoon = "None"
- for i, v in pairs(game:GetService("Workspace")["Legend's 2P Tycoon Kit"].Tycoons:GetChildren()) do
- if v:FindFirstChild("P1 Stuff") and v["P1 Stuff"]:FindFirstChild("P1") and v["P1 Stuff"].P1.Value == game.Players.LocalPlayer.Name then
- Tycoon = v
- end
- end
- return Tycoon
- end
- game:GetService("ReplicatedStorage").Events.CrateClaim:FireServer("Cash", 1e+16)
- task.spawn(function()
- while true do
- if countButtons() <= 0 then break end
- task.wait()
- for i, v in pairs(getPlayerTycoon()["P1 Stuff"].Buttons:GetChildren()) do
- if v:FindFirstChild("Head") and not v:FindFirstChild("GamePass") then
- firetouchinterest(game.Players.LocalPlayer.Character.Torso, v.Head, 0)
- end
- if v.Name == " " then
- v:Destroy()
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment