[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:(LAVA!)Master Disasters[Pre-Alpha!!] - Roblox

3 Likes

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

8 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.

1 Like