Developer Product Help

Hello!

I am having an issue with developer products. When I go to make a developer product, I copy the ID from my game settings in studio, but when info to test the game it prompts to buy a random shirt from the Roblox marketplace. Is is because I’m using the wrong type of code?

local MarketplaceService = game:GetService(“MarketplaceService”)
local Players = game:GetService(“Players”)
local LocalPlayer = Players.LocalPlayer
local Button = script.Parent

local ProductID = 0000000000

Button.MouseButton1Click:Connect(function()
    MarketplaceService:PromptPurchase(LocalPlayer, ProductID)
end)

If somebody could help me with this, that would be amazing.

Thanks!

2 Likes

for developer products, u should use PromptProductPurchase method

   MarketplaceService:PromptProductPurchase(player, productId)
4 Likes

Alright, I’ll give that a try. Thanks

It worked! Thank you so much!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.