Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Dev Products and Gamepasses

Asked by 10 years ago

The wiki doesnt tell you much about either. Can you buy a Dev Product with the same script as you would with a gamepass? If so, is all you need to change is just the rewarding of the item or bonus feature.

When dealing with Products, is there a certain way to code, or is it the same as gamepasses.

1 answer

Log in to vote
3
Answered by
jobro13 980 Moderation Voter
10 years ago

No, it's not the same. Developer Products use MarketplaceService and Game Passes use GamepassService.

Gamepasses are much easier to handle than Developer Products. For Developer Products, YOU are responsible to save which passes have been bought. You need to define code to give the product and code to handle the cases where the player just got the product and where the player rejoined the game and also got the product.

Gamepasses, however, are saved on the roblox servers. You can just use game:GetService("GamePassService"):PlayerHasPass(player, passid) to check if a player has the pass.

For a detailed description on Developer Products - I just wrote an article on the blog about it.

1
Thanks ConnorVIII 448 — 10y
Ad

Answer this question