Advertisement
Bileinpoop

ds

Nov 1st, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. local children = workspace.Hoops:GetChildren()
  2.    
  3. coroutine.wrap(function()
  4.     repeat wait() until game:GetService("Players").LocalPlayer
  5.     local VirtualUser = game:GetService("VirtualUser")
  6.     game:GetService("Players").LocalPlayer.Idled:Connect(function()
  7.         VirtualUser:CaptureController()
  8.         VirtualUser:ClickButton2(Vector2.new())
  9.     end)
  10. end)()
  11.  
  12. function runfarm()
  13.     coroutine.wrap(function()
  14.         while wait(0) do
  15.             for i, child in ipairs(children) do
  16.                 if child.Name == "Hoop" then
  17.                     child.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  18.                     child.Transparency = 1
  19.                     child.hoopSound.Volume = 0
  20.                     if child:FindFirstChild("hoopParticle") then
  21.                         child.playerParticle:Destroy()
  22.                         child.hoopGui:Destroy()
  23.                         child.hoopParticle:Destroy()
  24.                     end
  25.                 end    
  26.             end
  27.         end
  28.     end)()
  29.    
  30.     coroutine.wrap(function()
  31.         while wait(0) do
  32.             for i,v in pairs(game:GetService("Workspace").orbFolder:GetDescendants()) do
  33.                 if string.match(v.Name, " Orb") then
  34.                     v.outerOrb.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  35.                 elseif v.Name == "Gem" then
  36.                     v.outerGem.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  37.                 end
  38.             end
  39.         end
  40.     end)()
  41. end
  42.  
  43. runfarm()
  44.  
  45. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  46.     repeat wait()
  47.         print("Waiting")
  48.     until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  49.    
  50.     runfarm()
  51. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement