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
You misspelt PromptProductPurchase