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

I need help please.The script was suppose to reset players tools? [closed]

Asked by 5 years ago
Edited 5 years ago

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)
0
what do you mean "reset player's tools", and what did you define "Tool" as? theking48989987 2147 — 5y
0
also, can you describe the intended purpose of this script, because currently, it only seems like you are only deleting one tool from the player theking48989987 2147 — 5y

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?