so im trying to make a developer console for beta testing but I only want it to show up for specific people but the script won't change the visibility property at all, how do I fix this?
this is the script itself:
local whitelist = {"example1","example2",}
local player = game.Players.LocalPlayer
game.StarterGui.ScreenGui.conactive.Visible = false
print ("working")
game.Players.PlayerAdded:Connect(function()
if player.Name == whitelist then
end
end)

4 comments
removed my answer. hes not willing to learn anything
again you dident need to i was just confused
i would highly suggest making a serversided player detection using UserId and not the name of the player with it being local sided any simple exploiter could just make it visible themselves and without using UserId if the player ever changes their name then you have to change it too in the script
this is for my singleplayer games, i only have it do this so that the normal player doesent think its a feature and gets overwhelmed, plus its hard to find it if your not looking for it and honestly if an exploiter is going to devalue their experience than that is on them