local productId = 5126053
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player, productId)
end)
For some reason it shows as "item not for sale" and shows a random picture... Any help?

2 comments
PromptProductPurchase, not PromptPurchase.
Tried it but didn't work.