Here's the script.
Tool = "Dynamite" script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player.Backpack:FindFirstChild(Tool) then player.Backpack:FindFirstChild(Tool):Destroy() end if hit.Parent:FindFirstChild(Tool) then hit.Parent:FindFirstChild(Tool):Destroy() end end end)
Marked as Duplicate by theking48989987, Lugical, and 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?