I am trying to prompt purchase gamepasses and developer products but no scripts work, It is for a GUI.
✓ ANSWER ACCEPTED
How do I prompt purchase things?
1 answer
✓ Accepted answer
Im assuming if it's for a GUI your making an Image/TextButton with a script attached in order to prompt the purchase? If so... here's your script:
local productId = 0000000 -- Your Gamepass Id Here
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(player,productId)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
