Hello, basically I’m trying to do a very simple task of giving money to a player when they buy a developer product.
However,
For some odd reason, it keeps on erroring.
Also, when you click Buy, it does not process the receipt either (just for clarity).
Any help would be appreciated.
https://gyazo.com/cef90f1cfa4332231ab4cb44ced7c673
Can you show us the code so that we can see?
Sure thing!
Local Script:
local tw = script.Parent["250"]
local f = script.Parent["1250"]
local twel = script.Parent["5000"]
local twen = script.Parent["12500"]
local market = game:GetService("MarketplaceService")
local plar = game.Players.LocalPlayer
local toggle = false
local stat = plar:WaitForChild("leaderstats").Money
tw.MouseButton1Click:connect(function()
print("yes")
market:PromptProductPurchase(plar,1117467708)
end)
twel.MouseButton1Click:connect(function()
market:PromptProductPurchase(plar,1118260423)
end)
f.MouseButton1Click:connect(function()
market:PromptProductPurchase(plar,1118260672)
end)
twen.MouseButton1Click:connect(function()
market:PromptProductPurchase(plar,1118260809)
end)
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("ImageButton") then
v.MouseEnter:connect(function()
v.ImageColor3 = Color3.fromRGB(179,179,179)
end)
v.MouseLeave:connect(function()
v.ImageColor3 = Color3.fromRGB(255,255,255)
end)
end
end
Server:
MarketplaceService.ProcessReceipt = function(receiptInfo)
print("receipt") -- doesn't print
-- removed main code
end
In our game purchasing stuff was working fine for months, but since last night we’re having the same problem… well almost. In Studio it shows what you shown us in the GIF while in the live game it was taking people’s Robux but because the Receipt callback never happened, the game wasn’t rewarding people. We had to disable all Robux purchases and today we had a high playercount as well so I really hope this gets fixed!
Either that or they deprecated something I don’t know about. So far I suspect it’s a bug from them. Can someone post this in the Engine Bugs section? I don’t have permission for some reason.
It looks like an error purchasing the product on roblox’s end not something that’s your fault. I could be wrong.
edit: it looks like @Feloriss already said that right before I could sorry!
No problem. If you know anyone that could get the attention of Roblox Staff, that would help a lot!
Yea, it’s been happening since last night for us too. Thanks.
They claim it’s fixed. Testing right now…
Yeah, I tested it now it works in both Studio and Live.
What’s 30 limit?
Nevermind I just found out the 30 limit lol