UnderCoverScripts

Money Tycoon

Oct 13th, 2022 (edited)
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. _G.autoButton = true; -- auto buys tycoon buttons
  2. _G.autoColl = true; -- auto collects your money
  3. _G.autoRebirth = true; -- auto rebirths when possible
  4.  
  5. -- calls
  6. local pRoot = game.Players.LocalPlayer.Character.HumanoidRootPart
  7. local lPlayer = game.Players.LocalPlayer
  8.  
  9. -- auto buy buttons
  10. spawn(function()
  11. if _G.autoButton then
  12. autoBuy = true
  13. while autoBuy == true do
  14. for i, v in pairs(game:GetService("Workspace").Tycoons[lPlayer.Team.Name].ButtonsFolder:GetDescendants()) do
  15. if v:IsA("TouchTransmitter") then
  16. firetouchinterest(pRoot, v.Parent, 0)
  17. firetouchinterest(pRoot, v.Parent, 1)
  18. end
  19. end
  20. wait()
  21. end
  22. else
  23. autoBuy = false
  24. end
  25. end)
  26.  
  27. -- auto collect money
  28. spawn(function()
  29. if _G.autoColl then
  30. autoCollect = true
  31. while autoCollect == true do
  32. for i, v in pairs(game:GetService("Workspace").Tycoons[lPlayer.Team.Name].StarterParts.Collector:GetDescendants()) do
  33. if v:IsA("TouchTransmitter") then
  34. firetouchinterest(pRoot, v.Parent, 0)
  35. wait()
  36. firetouchinterest(pRoot, v.Parent, 1)
  37. end
  38. end
  39. wait()
  40. end
  41. else
  42. autoCollect = false
  43. end
  44. end)
  45.  
  46. -- auto rebirth
  47. spawn(function()
  48. while _G.autoRebirth and wait(0.1) do
  49. game:GetService("ReplicatedStorage").Events.Rebirth:FireServer(workspace.Tycoons[lPlayer.Team.Name])
  50. end
  51. end)
  52.  
  53. -- p2w buttons check
  54. spawn(function()
  55. while wait() do
  56. for i, v in pairs(game:GetService("Workspace").Tycoons[lPlayer.Team.Name].ButtonsFolder:GetDescendants()) do
  57. if v.Name == "Gamepass" then
  58. local p2w = v.Parent
  59. p2w:Destroy()
  60. end
  61. end
  62. end
  63. end)
  64.  
  65. -- p2w gui check
  66. spawn(function()
  67. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.LeftMenu:Destroy()
  68. end)
  69.  
  70. -- anti afk
  71. local vu = game:GetService("VirtualUser")
  72. game:GetService("Players").LocalPlayer.Idled:connect(function()
  73. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  74. wait(1)
  75. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  76. print("Prevented Kick!")
  77. end)
Advertisement
Add Comment
Please, Sign In to add comment