Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need help with this script.The player steps on the brick and his/her tools reset? [closed]

Asked by
xOmqZaxk -45
5 years ago

Function Touch(hit) if hit and h.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") then game.Players[h.Parent.Name].Backpack:ClearAllChildren() local Chartool = FindFirstChildOfClas(HopperBin) or h.Parent_FindFirstChildOfClass(Tool) if CharTool then CharTool"Destroy() end end end

script.Parent.Touched:Connect(Touch)

Marked as Duplicate by User#19524

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?