local plr = game.Players.LocalPlayer
game.Players.PlayerAdded:Connect(function(plr)
if plr.Name == "V_anze" then print("ok")
if not plr.Name == "V_anze" then
game.Players.LocalPlayer.PlayerGui.Cmdr:Destroy()
end
end
end)
I'm confused on why it's not working.
I'm pretty new with scripting.

3 comments
First off, please format your code correctly, it's kinda hard to see. Also why are you using player added and local player in the same script. Local Player is for local scripts, player added for server scripts, you should never put both of those in the same script.
That is very true.
Is your script a server script or a local script?