I don't want low-rank recruits joining the group game, I need a rank requirement that checks the group if they are high enough. I also want raiders to join so if you are part of the group you must be this rank to join.
GroupId = "210856"
function onPlayerEntered(newPlayer)
if not newPlayer:IsInGroup(GroupId) then
newPlayer:remove()
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)

6 comments
thanks for the correction, but i still need help with only allowing certain ranks only ingame
Okay. I will post edit this answer with improved code which you could use if you want.
So you're telling me the owner can't join their own game?
is it possible to have raiders still coming in and raiding? after all its a warzone, i was wondering if theres an exception for raiders.
and you should be using :Kick() not :kick()
No. It's a VARIABLE. It can be changed to his/her liking. It doesn't have to be just "255".