Alright. So I decided to implement a donate function to my model called "Bartekrabit's Control Panel" (indev). I wanted to make a "test purchase" in studio and see if it would ask me to buy the item. It says that the item is currently not on-sale. I'm surprised with this since this is the first time i'm working with developer products. Also, buying gamepasses in studio said it's a test purchase but it didn't say the gamepass is off-sale (like it did with the dev product). Is it just like that on studio? Did I do something wrong?
short code but still useful:
1 | script.Parent.MouseButton 1 Down:connect( function () |
2 | game:service( "MarketplaceService" ):PromptPurchase(script.Parent.Parent.Parent.Parent.Parent, 129234802 ) |
3 | end ) |
And yes, I will plan to make it broadcast a message but right now I don't need help with that. I just want to know that is it normal that this happens?
Edit: Added images:
Try this:
1 | script.Parent.MouseButton 1 Down:connect( function () |
2 | game:GetService( "MarketplaceService" ):PromptProductPurchase(script.Parent.Parent.Parent.Parent.Parent, 129234802 ) |
3 | end ) |
I added PromptProductPurchase and GetService. Might do the trick.