I want to make a .PlayerAdded function, where it checks if the player is in
the "Banned" table, and if the player is in it, it removes them.
I'm kinda new to tables btw..
Banned = { }
function newPlayer(player)
if player.Name == Banned then
player:remove ()
end
game.Players.PlayerAdded:connect(newPlayer)
Can someone tell me how to check if player's name is in the table "Banned"? |