|
| 25 Oct 2014 04:48 PM |
I need a script that only allows people from certain groups into maps. I looked all over free models but the one script I found that could do this breaks when you add another group to it.
Anyone got any like this?
-Signatures are too mainstream- |
|
|
| Report Abuse |
|
|
Expleo
|
  |
| Joined: 24 Mar 2014 |
| Total Posts: 5650 |
|
|
| 25 Oct 2014 04:49 PM |
You would have had one if you listened in the TCC war, but you're too stubborn to negotiate.
Prime Vanguard- 12 days. |
|
|
| Report Abuse |
|
|
bluefredy
|
  |
| Joined: 23 Oct 2010 |
| Total Posts: 59243 |
|
|
| 25 Oct 2014 04:50 PM |
use a table
local banned_groups = {groupid, groupid, groupid}
and then just write your script in a table format |
|
|
| Report Abuse |
|
|
|
| 25 Oct 2014 04:51 PM |
cant you just add another team for the random dudes and have their spawn in some box
chicken nuggets |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 25 Oct 2014 04:51 PM |
local groups = {123123, 123456}
game.Players.PlayerAdded:connect(function(player) for i, groupId in pairs(groups) do if not player:IsInGroup(groupId) then player:Kick() end end end)
|
|
|
| Report Abuse |
|
|