Advertisement
iHollow

iHollow | #19

Mar 1st, 2022
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. _G.AutoFarm = true; -- Basicaly infinite coins
  2. _G.AutoSell = true; -- Automaticaly sells collected coins
  3. _G.AutoStorage = true; --Automaticaly upgrades coin storage
  4. _G.AutoSpeed = true; --Automaticaly upgrades player speed
  5.  
  6. -- Get best sell place
  7.  
  8. local BestSell = nil
  9.  
  10. for i,v in pairs(workspace.Rings:GetChildren()) do
  11. local Formatted = tonumber(string.split(tostring(v), 'x')[2])
  12. if BestSell == nil and Formatted ~= nil then
  13. BestSell = v
  14. end
  15. print(Formatted)
  16. if Formatted ~= nil and Formatted > tonumber(string.split(tostring(BestSell), 'x')[2]) then
  17. BestSell = v
  18. end
  19. end
  20.  
  21. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = BestSell.Touch.CFrame
  22.  
  23. -- Handle pseudo infinite coins/auto farm
  24.  
  25. spawn(function()
  26. while true do
  27. if _G.AutoFarm == false then return end
  28. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, BestSell.Touch, 0)
  29. wait()
  30. firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, BestSell.Touch, 1)
  31. wait(.1)
  32. for i = 1, 2 do
  33. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.Coins:GetChildren()[math.random(1,#workspace.Coins:GetChildren())]:FindFirstChildWhichIsA('BasePart').CFrame
  34. wait(.05)
  35. end
  36. wait()
  37. end
  38. end)
  39.  
  40. -- Handle auto storage
  41.  
  42. spawn(function()
  43. while wait(.1) do
  44. if _G.AutoStorage == false then return end
  45. game.ReplicatedStorage.Events.GameEvents.UpgradeStorage:FireServer()
  46. end
  47. end)
  48.  
  49. -- Handle auto speed
  50.  
  51. spawn(function()
  52. while wait(.1) do
  53. if _G.AutoSpeed == false then return end
  54. game.ReplicatedStorage.Events.GameEvents.UpgradeSpeed:FireServer()
  55. end
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement