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

Why isn't this taking away the weapon?

Asked by 8 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
toolname = "LinkedSword" 


Tool = true 
game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.CharacterAdded:connect(function(char)
script.Parent.ClickDetector.MouseClick:connect(function()
if Tool == false then return end 
wait()
Tool = false 
Tool = game.Lighting:findFirstChild(toolname):remove()
Tool.Parent = game.Players:findFirstChild(char.Name).Backpack
wait()
Tool = true 
end)
end)
end)

Answer this question