Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- local player = game.Players:GetPlayerFromCharacter(Hit.Parent)
- local Wood = player.Character:FindFirstChild("Wood")
- if Wood then
- Wood:Destroy()
- game.ReplicatedStorage.WoodsFound.Value += 1
- print(player, "Has Found a Wood")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement