I want to make everyone in a playerlist of an Admin Model. The question is in the first line:
1 | admins = { "Your Name Here" } |
I want to put every players name in here but I cant just write every playername so is there a different way?!?!!? Model: https://www.roblox.com/library/5277383/Person299s-Admin-Command-Script
Just do this in the script!
01 | admins = { |
02 | } |
03 |
04 | game.Players.PlayerAdded:Connect( function (Player) |
05 | local Name = Player.Name |
06 | table.insert(admins, Name) |
07 | end ) |
08 | game.Players.PlayerRemoving:Connect( function (Player) |
09 | local Delete = Player.Name |
10 | table.remove(admins, Delete) |
11 | end ) |