Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why are my gamepasses linking to other models?

When I link my game to my game passes, it shows a completely different model. How do I fix this? here it is:

local productId = 5969738
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() 
 game:GetService("MarketplaceService"):PromptPurchase(player, productId)
end)

the id is from the url: https://www.roblox.com/game-pass/5969738/Better-Jump-Boost

1 comment

0

I have this problem too

1 answer

✓ Accepted answer

Use PromptGamePassPurchase function instead:

local productId = 5969738
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function() 
 game:GetService("MarketplaceService"):PromptGamePassPurchase(player, productId)
end)

1 comment

0

It works! thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.