of     1   

kbk
#37115002Wednesday, November 17, 2010 1:10 AM GMT

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"?
TreeMerp9
#37115175Wednesday, November 17, 2010 1:12 AM GMT

Banned = { "BannedPerson" } function new(newPlayer) for i = 1, #Banned do if player.Name == Banned[i] then player:remove () end end game.Players.PlayerAdded:connect(new)

    of     1