JOEBOBBY16
(JOEBOBBY16)
November 22, 2023, 11:38pm
#1
Hello Developers! I am currently running into an issue with prompting a gamepass in my roblox game. Here is the code:
script.Parent.MouseButton1Click:Connect(function()
local plr = game.Players.LocalPlayer
local MSS = game:GetService("MarketplaceService")
MSS:PromptGamePassPurchase(plr,659735397)
end)
Please help if you can!
2 Likes
Here are some things you could try:
Change PromptGamePassPurchase to PromptPurchase
Ensure the id is valid
Check in game (not studio)
Check with another gamepass or asset and see if it prompts correctly.
Check to make sure gamepass is on sale
I will edit for more things you can do when I think of them. Hope this helps!
JOEBOBBY16
(JOEBOBBY16)
November 23, 2023, 6:13pm
#3
Turns out the Ids were wrong! Thanks!
Yep! Be sure to mark a solution to help people viewing this topic in the future. (It also helps so that people helping to solve topics know a solution has been found)
system
(system)
Closed
February 11, 2024, 8:37pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.