For specific players I want them to have a GUI that is set in my Lighting and have it cloned to them. However I get no errors and the following admins don't see the GUI, whats the problem here?
local admins = {"Pancakechop", "WaffleWhop"}
local player = game.Players.LocalPlayer
while not player.Character do
wait()
end
local character = player.Character
if player.Name == (admins) then
o = game.Lighting.Obby1
ob = game.Lighting.Obby1:Clone()
ob.Parent = player.PlayerGui
if character.Health == 0 then
wait(5)
o:Clone()
o.Parent = player.PlayerGui
end
end

1 comment
You should also make sure it isn't case-sensitive, and if you're worried enough, use userIds to be safe from username changes too.