Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RS = game:GetService("RunService").RenderStepped
- function FindTool()
- local found = false
- local tool = nil
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.ClassName=="Tool" then
- found = true
- tool = v
- end
- end
- if found then
- return true, tool
- end
- end
- while RS:wait() do
- for i,v in pairs(workspace.SandBlocks:GetChildren()) do
- local pass, tool = FindTool()
- if not v:FindFirstChild("Rock") and pass then
- tool.RemoteClick:FireServer(v)
- RS:wait()
- end
- end
- end
Add Comment
Please, Sign In to add comment