of     1   

Praetorius
#206544588Friday, January 06, 2017 11:33 PM GMT

So that only members of a specific group could join the game? I need one for the AC-SURGE war.
Insurrect
#206544653Friday, January 06, 2017 11:34 PM GMT

bump
WolfOfScarlet
#206544897Friday, January 06, 2017 11:37 PM GMT

local Players = game:GetService("Players") local SURGEid = --insert the SURGE group ID here local ACid = --insert the AC group ID here PlayersAllowed = {} Players.PlayerAdded:Connect(function(Player) PlayersAllowed[#PlayersAllowed + 1] = Player.Name if Player:GetRankInGroup == SURGEid or ACid then Player:Destroy() end)
TENSHl
#206545067Friday, January 06, 2017 11:39 PM GMT

Make sure you include Resade and Could 9 in the list of groups that can join.
WolfOfScarlet
#206545231Friday, January 06, 2017 11:41 PM GMT

oh wait my code isn't right hold on, lemme think
TENSHl
#206545267Friday, January 06, 2017 11:42 PM GMT

Oh yeah also FoL but you don't have to allow main RAT.
nitroyoshi9
#206545391Friday, January 06, 2017 11:44 PM GMT

NigPatriot
#206545736Friday, January 06, 2017 11:49 PM GMT

game.Players.PlayerAdded:connect(function(p) repeat wait() until p ~= nil -- wait until they load if not p:IsInGroup(AC group ID) or not p:IsInGroup(SURGE group ID) then -- if they aren't in AC or aren't in SURGE kick em p:Kick() end end)
WolfOfScarlet
#206545967Friday, January 06, 2017 11:51 PM GMT

altair... your syntax is triggering me...
ImperialOutcast
#206546107Friday, January 06, 2017 11:53 PM GMT

local GroupId = 0000 game.Players.PlayerAdded:connect(function(plr) if not plr:IsInGroup(GroupId) then plr:Kick("Entrance Denied") end end)
ImperialOutcast
#206546408Friday, January 06, 2017 11:57 PM GMT

For multiple groups: local Groups = {0000,0000,0000} local function InGroup(Player) for i = 1,#Groups do if Player:IsInGroup(Groups[i]) then return true end end return false end game.Players.PlayerAdded:connect(function(Player) if not InGroup(Player) then Player:Kick("Denied Access") end end)
NigPatriot
#206546541Friday, January 06, 2017 11:58 PM GMT

whats wrong with it

    of     1