Question about Gamepasses Saving

Not sure if this a dumb question but if I were to add a gamepass to my game and make a script that gives the gamepass (a gear) to the player after purchase will they keep the gear after they leave and rejoin or would I have to make something to save that?

depends on how you script it, you can make it so everytime the player respawns you check if he owns the gamepass and if he does just make a clone of the tool and Parent it to the players backpack

1 Like

If your script gives the player a gear if and only if they own the gamepass in their inventory then no saving is needed.

1 Like

I saw another post and is it because the script checks if the player has the gamepass in their inv and if true they give the gear to the player.

That should be how it works, it could be made through datastore in a way but I wouldn’t recommend it.

1 Like

https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/UserOwnsGamePassAsync

You can use this API method to determine if a particular user owns the specified gamepass.

1 Like