How to make x2 currency gamepass

Hi, i was making a datascript (using profileservice by @loleris) and i wanted to make a x2 money gamepass, i know the event when the purchase was done, the service needed but i dont know how to put these together and make a x2 money gamepass, so how can i do it?

anything helps!

Gamepasses system has nothing to do with ProfileService. Once the player has purchased the gamepass, it will stick to them. You can use UserOwnsGamePassAsync(player.UserId, passID) to check if the player has the specific gamepass. Simply do if-else statement to show effect.

In case that you use ‘Developer Products’ like timed buffs or whatever, that is a different story.

local hasPass = false
local success, message = pcall(function()
	hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, passID)
end)
if hasPass then
      -- x2 Currency
else
      -- give x1 currency
end
1 Like

that works, thanks @Jacky2804!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.