Within my If statement, I'm trying to detect multiple player names locally.
local Players = 'NAME1', 'NAME2', 'NAME3' --etc.
local Player = game.Players.LocalPlayer
if Player.Name == Players then
print(Player.Name)
elseif Player.Name ~= Players then
warn("Name did not match whitelisted players!")
end
I get my custom "Error" message (warn message) because it did not detect the player names. I am trying to check for the names it's supposed to check for and perform a function after.

1 comment
Awesome, thank you! Works perfectly!