I have a script that only people I choose can get a ui in-game, but when I list out the names it will give errors and wont load in-game. I know that the remote event works but its just the names part that i'm confused about.
game.Players.PlayerAdded:connect(function(a)
if a.Name== "samvader06", "name", "name", "name" then
game.ReplicatedStorage.e:FireServer("samvader06", "name", "name", "name")
end
end)
I have also tried this and this didn't work either.
game.Players.PlayerAdded:connect(function(a)
if a.Name== {"samvader06", "name", "name", "name"} then
game.ReplicatedStorage.e:FireServer("samvader06", "name", "name", "name")
end
end)

3 comments
Because your trying to compare a string value (Name), with a table value, that wouldn't equal up to the same thing wouldn't it?
It's not working because your wrote .e
e was the name of the remote