I made a script that destroys whatever tool your holding, but I keep getting the error
Workspace.Part.Script:2: attempt to index nil with 'FindFirstChild
Here is my script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local tool = hit.Parent:FindFirstChildOfClass("Tool")
if tool then
tool:Destroy()
end
end
end)