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