097YT

BR

Apr 4th, 2023
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. _G.Run = true -- set this to false to stop auto farm
  2. local ws = game.Workspace
  3. local player = game.Players.LocalPlayer
  4. local Character = char
  5. local cone = game:GetService("Workspace")["Traffic Cone"]
  6.  
  7. function GoToGold()
  8. while _G.Run == true do
  9. for i, v in pairs(ws.Coins:GetDescendants()) do
  10. wait(0.001)
  11. if v.Name == "Coin" then
  12. if v:IsA("Part") then
  13. player.Character.HumanoidRootPart.CFrame = v.CFrame
  14. end
  15. end
  16. end
  17. player.Character.HumanoidRootPart.CFrame = cone.CFrame
  18. wait(1)
  19. end
  20. end
  21.  
  22. game.Players.LocalPlayer.CharacterAdded:connect(function(char)
  23. if _G.Run == true then
  24. wait(2)
  25. GoToGold()
  26. end
  27. end)
  28.  
  29. GoToGold()
Add Comment
Please, Sign In to add comment