Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local minval = 750
- local shovel = "Large Shovel"
- function check()
- for i,v in pairs(game.Players.LocalPlayer:GetChildren()) do
- if v:IsA('Tool') then
- v.Parent = v.Character
- end
- end
- end
- check()
- local children = game.Workspace.SandBlocks:GetChildren()
- for i =1, #children do
- if children[i] ~= nil then
- if children[i]:findFirstChild("Reward") then
- if children[i].Reward.Value >= minval then
- children[i].CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- children[i].CanCollide = false
- print(children[i].Name)
- wait(.3)
- game.Players.LocalPlayer.Character[shovel].RemoteClick:FireServer(workspace.SandBlocks[children[i].Name])
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement