This is my script I made:
Localscript:
local MarketPlace = game:GetService("MarketplaceService")
local Player = game:GetService("Players").LocalPlayer
for i,v in ipairs(script.Parent:GetChildren()) do
if v.ClassName == "ImageButton" then
v.MouseButton1Down:Connect(function()
local DevP = v:WaitForChild("Config"):WaitForChild("DevProduct")
MarketPlace:PromptProductPurchase(DevP.Value)
end)
end
end
But it doesn't prompt the purchase

2 comments
Are you getting any errors? Try and include the player as one of your arguments, it is a local script but things are funny sometimes.
I am not getting errors