I have a script to sell a person my loader module but I get this error:
Script:
script.Parent.MouseButton1Down:connect(function(Player)
game:GetService("MarketplaceService"):PromptPurchase(Player, 259858254)
end)
This is in a TextButton in a SurfaceGui.

2 comments
Did you not read that this is in a SurfaceGui in a part?
Sorry, updated answer