local id = 6738557 -- Replace the zeros with your product number that can be found in the URL bar local player = game.Players.LocalPlayer
function onClick() game:GetService("MarketplaceService"):PromptPurchase(player, id) end
script.Parent.MouseButton1Click:connect(onClick)
this scrip will not prompt me with a purchase thing, its a surface gui button inside of a part help

3 comments
Nothing is urgent. Have some patience.
"Urgent" xd
PromptPurchase is for an asset, PromptGamePassPurchase May suit you better. Also you’re trying to accomplish this with just a local script which won’t work.