SHOW:
|
|
- or go back to the newest paste.
1 | - | local allowed_players = {"haydebug2003", "AltraIncantatrix"} |
1 | + | local allowed_players = {"haydebug2003", "OniTaiji"} |
2 | ||
3 | function check(name) | |
4 | for i,v in pairs(allowed_players) do | |
5 | if name == v then | |
6 | return true | |
7 | end | |
8 | end | |
9 | return false | |
10 | end | |
11 | ||
12 | for index, child in pairs(game.Players:GetChildren()) do | |
13 | local name = child.Name | |
14 | local allowed = check(name) | |
15 | if allowed == false then | |
16 | child:Destroy() | |
17 | end | |
18 | end |