Buying gamepasses with a rank

Hi

If you wanted players to buy a gamepass through the “store” tab on the games page


could you make it so that you can only purchase it if you have a certain rank in the group. For example you can only purchase the gamepass from the store page if you are rank 4 or above.

Thanks

1 Like

Best I can tell you is to check if the Players Rank by using GetRankInGroup()

Example

if Player:GetRankInGroup("Your Group ID") >= 4 then
-- Code here
end
1 Like

It’s not possible from the store, its roblox servers website side and you can’t modify anything. You just can do it for in game purchases try’s.

1 Like

You would have to make some sort of developer product instead only because anybody is able to see the store and buy gamepasses…

1 Like