So i made this script and i put it in the ServerScriptService so the players allowed can get in and the other will be kicked out.
local PlayersAllowed = {"mastercheeseit","Player"}
game.Players.PlayerAdded:Connect(function(player)
for i,v in pairs(PlayersAllowed) do
if player.Name == v then
print("Allowed To Enter!")
else
player:Kick("Not Allowed!")
end
end
end)
