I want to make my game’s beta version available only for people in my group that have Beta Tester rank? I know I can set my game’s access to group members but is it possibte to make some script that automatically kicks players that don’t have beta tester rank
local MinimumRank = 12
if Player:GetRankInGroup(GROUP_ID_HERE) < MinimumRank then
-- Our players rank is less than the minimum, we need to remove them.
Player:Kick('Beta Testers Only.')
end
Heya on the basis of me reading the post right this seems fairly simple, you should be able to use a function retrieving their rank in group. Below is an example linked from the Developer Hub - should fulfill your needs if you change the printing and the “==” part of this.
game.Players.PlayerAdded:Connect(function(Player)
if Player:GetRankInGroup(2) == 255 then
print("Player is the owner of the group, 'LOL'!")
else
print("Player is NOT the owner of the group, 'LOL'!")
end
end)
A note that Roblox has a beta feature in planning that allows you to restrict play access to a certain set of members that you allow. This completely gets rid of the play button for those not in your game and avoids the necessity of adding kick scripts or blocks for users that don’t meet your play requirement.
So if this feature will be public before my first series of beta tests, I can restrict other users than beta testers accessing my game. I do not need kick script. I’ll probably optimise my game a bit until this comes out and then use this feature to restrict my game from normal players. Thx