Ilkailka

Untitled

Feb 5th, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local RS = game:GetService("RunService").RenderStepped
  2.  
  3. function FindTool()
  4. local found = false
  5. local tool = nil
  6. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  7. if v.ClassName=="Tool" then
  8. found = true
  9. tool = v
  10. end
  11. end
  12. if found then
  13. return true, tool
  14. end
  15. end
  16. while RS:wait() do
  17. for i,v in pairs(workspace.SandBlocks:GetChildren()) do
  18. local pass, tool = FindTool()
  19. if not v:FindFirstChild("Rock") and pass then
  20. tool.RemoteClick:FireServer(v)
  21. RS:wait()
  22. end
  23. end
  24. end
Add Comment
Please, Sign In to add comment