1 | local banned = { "Epicpan" , "LuckTron" } |
2 | Player = game.Players.LocalPlayer |
3 | while wait( 0.5 ) do |
4 | if Player.Name = = banned then |
5 | Player:Kick() |
6 | end |
7 | end |
Works until I tryed multi-people banning.
Here's your script fixed up.
1 | --reg script |
2 | Banned = { "Epicpan" , "LuckTron" } |
3 | game.Players.PlayerAdded:connect( function (p) |
4 | for i = 1 , #Banned do |
5 | if p.Name = = Banned [ i ] then |
6 | p:Kick() |
7 | end |
8 | end |
9 | end ) |
-Thank me by accepting this answer/bumping up my reputation!