LocalPlayers = game.Players.LocalPlayer
while true do
game.Players.PlayerAdded:connect(function(player)
if player.Name == "iLegimate" or player.Name "Paulyus1" or player.Name "Rrog" or player.Name "coolmist52" or player.Name "concord44" then
x = game.ReplicatedStorage.ADMINGatesOpener:Clone()
x.Parent = LocalPlayers.PlayerGui
end
end)
wait(1)
end
Put this is a LocalScript and put that inside StarterGui The reason I believe it wasn't working was one, needs to be inside LocalScript to access the LocalPlayer, secondly, the answer above is right, it need to have Player.Name or Player.Name, etc and three, the Player variable has to be changed to Players with an s or the** Player.Name** check won't work. Hope I have helped.
If that above dosent work then try this one too
LocalPlayers = game.Players.LocalPlayer
while true do
game.Players.PlayerAdded:connect(function(player)
if player.Name == "iLegimate" or player.Name == "Paulyus1" or player.Name == "Rrog" or player.Name == "coolmist52" or player.Name == "concord44" then
x = game.ReplicatedStorage.ADMINGatesOpener:Clone()
x.Parent = LocalPlayers.PlayerGui
end
end)
wait(1)
end
3 comments
The Parent.PlayerGui seems to be wrong. change player variable to Player = game.players.localplayer and out the script in localscript in startgui
Still doesnt work..?
I have added a full answer. Try that then come back if it dosen't work again.