I am having an issue with MarketpalceService:PromptPurchase. My LocalScript (inside a textbox):
script.Parent.MouseButton1Click:Connect(function()
local ms = game:GetService("MarketplaceService")
ms:PromptPurchase(game.Players.LocalPlayer, 1232623616)
end)
However, even when the devproduct is on sale for more then 0 Robux, I get this:
This happens in studio and in-game. Happens with any product ID, even when the item is on sale. Is this on my end, or is this a Roblox issue?
local ms = game:GetService("MarketplaceService")
local button = script.Parent
local cooldown = false
button.MouseButton1Click:Connect(function()
if cooldown == false then
cooldown = true
ms:PromptProductPurchase(game.Players.LocalPlayer, 1232623616)
wait(1.5)
cooldown = false
end
end)