How to allow only the approved group members to enter my game?

I’m in the Alpha-test phase of my game and I want only players who are part of my group to have access.
Incredibly, it’s not easy to know which members of my group are.
I already tried some solutions like Get List Of Players or UserId's from a group - #2 by heII_ish but it doesn’t work.

How to allow only the approved group members to enter my game?

No, this will not prevent other players who are not part of the group from entering the game.

game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRoleInGroup(group) == 0 then
plr:kick()
end
end)

1 Like

it will only let players in your group join just set the guest rank to no access

This is the best fix, a script is not needed.

1 Like

Thanks, but found a more objective method: Player:IsInGroup()

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.