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!