wait(0.1)
if script.Parent.Parent.Parent.Name == not "RazorXX2" then
script.Parent.Parent = game.Lighting
end
wait(0.1)
script:Destroy()
Help! The script is not working, the tool is showing up for everyone. So the concept here is that if the name of the player is not "RazorXX2" then the tool will move to Lighting, but it is not working. Is there any error here? Oh, by the way this is a local script parented to a tool in the player's backpack.

4 comments
IS it in a playerjoinedfunction?
why not using ~= so it only fires when its a false statement or if you bad then do == and put the code in else
and where is it located, and it's a very bad script since you need playeradded function, not waits
why did i not think of that lol