I have a team in the roblox game I am creating and I want to make it so when someone is on the team change GUI they may only join that team if they have the gamepass otherwise it will pop up with a prompt to buy the gamepass
There’s a service called GamePassService
that lets you check whether a player has a game pass or not. Here’s the link :
http://wiki.roblox.com/index.php?title=API:Class/GamePassService
I can’t give you an example script though as I’m on mobile at the moment. Sorry.