I deleted the older code from the donation board the products were on, and then scripted this (which replaced the working product purchasing) for testing and got the same error.
-- Local script in StarterGui
BuyMoneyFrame[Product].BUY.MouseButton1Click:Connect(function()
-- MarketplaceService:PromptProductPurchase(Player, Product) -- This is the working products
MarketplaceService:PromptProductPurchase(Player, Products2[1].ProductId) -- Doesnt work despite IDs being correct
end)
Can I see the table of Products2[1].ProductId? And are you able to just paste the Id instead of: “Products2[1].ProductId”. If you at least try with just the normal numbers and it works, that can help us know if it’s a scripting Error or not, as the rest looks normal. Because what it looks like is your script is finding some string of numbers, just maybe not the string of numbers to your Product Id.
Update: The IDs are wrong because for some reason roblox gave me the wrong IDs when I created them?? idk.
When creating Badges and Gamepasses, I can get the ID by clicking the “Copy Asset ID” button, which works fine, I copied the IDs from the dashboard when I made the Badges and Gamepasses.
But when i go to copy the IDs of the products from the same page, they’re wrong.
I’m new to using the creator dashboard, I guess roblox messed up when making that part of it.
Are you able to get the New Ids, or do you need to know how to find them? if you go into the URL of the website, that’s not the Id
Also, Roblox did not mess up on their part. It’s just a bit of miscommunication with newer developers and the dash board. That Id is the Asset Id. It Has other Values as a Asset. However, the Asset and Product Id are 2 different Ids to represent 2 different Uses. One to Use for the Prompt & the marketplace, Another for the Asset it self (Like if I want to load the gamepass Image, info ect.) Why not have only 1 Id to do these actions? Idk!