Can you help me with selling Dev Products? I made my products I just need a script that sells them. I am using a GUI and am trying to sell player points.
here's a script that doesn't work:
local buyButton = script.Parent local productId = 20139068 local Plr = script.Parent.Parent
buyButton.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(Plr, productId) end)
local MarketplaceService = Game:GetService("MarketplaceService")
MarketplaceService.PromptProductPurchaseFinished:connect(function(userId, productId, isPurchased) if isPurchased then
end end)
Why isn't it working? D:

9 comments
What do you mean lead to the parent of startergui?
Make it lead to Game?
Yes.
19:50:12.664 - Unable to cast value to Object 19:50:12.664 - Script 'Players.Player1.PlayerGui.Shop.Frame.Hund.Script', Line 4 19:50:12.665 - Stack End
fixed
What was it?
Well, on my connection line, I added the variable 'p' on accident and made ROBLOX read it a WHOLEEEE different way.
Omg thank you soo much.
No problem. Help me out by accepting my answer!