code:(inside of TextButton parent is surfacegui)
script.Parent.MouseButton1Click:Connect(function(player)
local productId = 1086368295
game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)
error "- MarketplaceService:PromptProductPurchase() player should be of type Player, but is of type nil"

2 comments
Damn, I'm such a slow typer.
hehe, i just had a smaller answer, dw dw