[HELP!] Does anyone know how to make a gamepass script?

So sorry i have to ask this but i’m curious how would i arrange a gamepass script because i saw that they changed the way you make a gamepass script so can someone give me a template of how i would peform this?

sorry i have to ask this i need this for my game Master Disaster:https://www.roblox.com/games/3548945885/Master-Disasters-Pre-Alpha

3 Likes

https://devforum.roblox.com/t/need-help-with-gamepass/272878/9

7 Likes

You would use

game:GetService(“MarketplaceService”):UserOwnsGamePassAsync(is, player) to check if players own a gamepass. You don’t want to check userownsasset because game passes and assets use different IDs.

1 Like

I have a script that i use when giving tools to players when they buy a gamepass. If you want me to i can show you.