Tool does not show after being picked up by. another player or death

As the tittle says, the tool is able to be picked up and can be used without problems but when is picked up by. someone else, the tool shows in inventory but when selected, it does not show in game and of couors,e if clicked, nothing happens although it does show as in inventory and as selected.

local tool = game.ServerStorage.Tools:FindFirstChild(script.Parent.Tool.Value)

script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
if tool then
if not plr.Backpack:FindFirstChild(tool.Name) or plr.Character:FindFirstChild(tool.Name) then
local clone = tool:Clone()
tool.Parent = plr.Backpack
script.Parent.ProximityPrompt.Enabled = true
if script.Parent:FindFirstChild(“Grenade”) then script.Parent:FindFirstChild(“Grenade”):Clone()

		end 
	end
end

end)

2 Likes

Is this a LocalScript or a Script?

Did you mean to put “clone” instead of “tool”?

2 Likes

That’s most likely the error, didn’t notice it. ^

1 Like

Wouldn’t judge since the text isn’t really formatted to read correctly.

1 Like

Thank you! i will format the script next time I post, sorry about that.

1 Like

Its fine, to format use the backwords quote 3 times then put the programming language.
`