Advertisement
NMM

SuperHeroTycoon

NMM
Aug 1st, 2021
1,456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. local tycoon = nil
  3. local function getTycoon()
  4. for i, v in ipairs(workspace.Tycoons:GetChildren()) do
  5. if v:FindFirstChild("Owner") then
  6. if v.Owner.Value == plr.Name then
  7. tycoon = v
  8. end
  9. end
  10. end
  11. end
  12. repeat getTycoon() until tycoon
  13. local function buyAvs()
  14. for i, v in ipairs(tycoon.Buttons:GetChildren()) do
  15. local myCash = plr.leaderstats.Cash.Value
  16. if v.Button.Transparency ~= 1 and myCash >= v.Price.Value and v.Price.Value ~= 0 then
  17. firetouchinterest(plr.Character.Head, v.Button, 1)
  18. firetouchinterest(plr.Character.Head, v.Button, 0)
  19. end
  20. end
  21. end
  22. local function collectCash()
  23. firetouchinterest(plr.Character.Head, tycoon.Essential.CashCollect.Collect, 1)
  24. firetouchinterest(plr.Character.Head, tycoon.Essential.CashCollect.Collect, 0)
  25. end
  26. while wait(3) do
  27. if plr.Character then
  28. collectCash()
  29. buyAvs()
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement