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

How do I make a purchase gamepass surface gui?

I have made a Gamepass Surface GUI stand and have everything in it ready to go but I cant figure out whats wrong with the Purchase button. No output is released. Idk if I messed up the localscripting in it but it wont work. Any ideas?

local  player=game.Players.LocalPlayer
local gamepassId=453400561

function Click()
game:GetService("MarketplaceService"):PromtProductPurchase(player, gamepassId)
 end

script.Parent.MouseButton1Click:connect(Click)

1 comment

0

You misspelt PromptProductPurchase

1 answer

This LocalScript will only work if an adornee was set. Try putting your SurfaceGui in your StarterGui and put the following script inside the SurfaceGui:

script.Parent.Adornee = game.Workspace.Part -- Change destination for yourself

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