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.
i think you meant for:
game:GetService("Players").PlayerAdded:Connect(function(player) -- Get player by doing this if player.Name == "RazorXX2" then -- If player name is RazorXX2 game:GetService("Lighting").Tool:Clone().Parent = game:GetService("StarterPack") -- Made this because player respawn, the tool still exists game:GetService("Lighting").Tool:Clone().Parent = player.Backpack end end)
Instead of detecting it's not RazorXX2, why not thinking detect if it's RazorXX2 and do the complete opposite
also, put your tool in Lighting, and name the Tool to the tool, and bhlah blahla blah
its ok now i fixed it. thx for the help