So ive got a surface gui with a textbutton. In that textbutton there is a local script with this script:
local gamepass = 254533582
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, gamepass)
end)
When i click it, nothing happens and i dont know why!

2 comments
Nope
you're gonna need an adornee