Code to give gamepass to a player without buying it through PromptGamePassPurchase

What do you want to achieve? Title is clear I want to know how to give / make the player own a gamepass in my experience without them buying it through promptGamepasspurchase

2 Likes

You can use DataStoreService and save which gamepasses they own. Then where you reference if they have a gamepass, check their data and confirm if they own said gamepass.

2 Likes

Maybe I weren’t clear enough but I mean exactly how to give a player a gamepass so it appears in their inventory that they own that pass on roblox site. Without the usage of promptingGamepasspurchase.

This isn’t possible. You cannot give somebody a gamepass without them buying it. You can use the DataStoreService to save the gamepasses a player owns and then add the gamepass to the player’s data, like @wwwaylon09_backup said.

1 Like

How would this game make the gamepasses bundle then ? You get all 5 gamepasses in 1 purchase.

1 Like

Any idea or a trick ? Just a hint

I’m not 100% sure about this, but they may be presenting it as an “all game pass bundle” but are actually giving you one gamepass that gives you the perks of all of them.

3 Likes

Most likely they made the 1 gamepass give all the perks the other game passes there is no API or anything in this sense that allows you to give free gamepasses.

1 Like

image
It prompts me to buy a “Gamepasses Bundle” gamepass, which means that guess is probably true.

1 Like

The only issue here is that the original gamepasses alone would still be purchase able. But maybe people would have sense not to buy it cause they already own it in another gamepass ?

There is no way to restrict the purchase of a gamepass. People just have to use common sense.

1 Like

What you could do is if they own the gamepass it and they try to buy it in game it says something like error: you already own the gamepass bundle but there is no way to restrict it from the website so it’ll always be purchasable.

4 Likes