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:Kick("You need to be in SURGE or AC to enter, sorry.")
end
end) |