GUI script that checks if player owns gamepass to join team

I already have made a working GUI I just need help on how I could make a script that checks if you own the gamepass to change to that team. E.g. Player 1 clicks the gui button and it prompts them to buy the gamepass and then player 2 presses the gui button and it teams them to that team.

Thanks.

1 Like

Check out MarketplaceService and Teams on the wiki or tutorials for them on youtube.

I cant find any youtube videos

I easily found them, are you sure?

I already have a working built team chager

Use the MarketplaceService methods then, there is one built in for checking gamepasses, you just use an if statement with it. Best to do it on the server and best to use the wiki.

Okay thanks

30 charsssssssssssss