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

Why won't this button ask to buy my gamepass?

I'm trying to make a GUI button that asks to give a gamepass, but all it does is ask to buy clothes. Help?

local productId = 4422629
script.Parent.MouseButton1Click:connect(function()
local player =  script.Parent.Parent.Parent.Parent.Parent
game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

I'm a bit of a noob, so please go easy on me!

1 answer

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