Sant_Potato

Auto Farm

Nov 7th, 2020 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. local cpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2.  
  3. local stuff = workspace:getDescendants()
  4. for i=1,#stuff do
  5. if stuff[i].Name == "Block" and stuff[i].Parent.Name == "Ores" then
  6. repeat
  7. wait()
  8. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = stuff[i].CFrame
  9. game.Players.LocalPlayer.Character.Axe.RemoteEvent:FireServer(stuff[i])
  10. until stuff[i].Name ~= "Block" or not game.Players.LocalPlayer.Character:findFirstChild("Axe")
  11. end
  12. end
  13.  
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = cpos
Add Comment
Please, Sign In to add comment