How to make a gui where only a few people can see it

Hi there everyone. I recently made a gui for some specific users. I wrote the script but it is not allowing me to add multiple values(Lots of Names). Need some insight to this problem. I need to store multiple IDs/Name. I repeated the code but with a different name. Please give insight
here is the script-:

 if.game.Players.PlayerAdded.Name == "codeusername78" then
script.Parent.Frame.Visible = false
script.Parent.TextButton.Visible = true
else
script.Parent.Frame.Visible = false
script.Parent.TextButton = false
1 Like

since you want ALOT of players then use a table i guess

local playerids = {
0000000,
8364849,
--etc
}
1 Like

Oh ok lemme try. So I should not add names?

yes names arent good as players could change names so its better to use userid

1 Like

So I should use if playerids then ?

1 Like