Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Problem with Developer Products...?

Asked by 10 years ago

his was just working like an hour ago, now it stopped...with no error? Yes, the cash Is stored in the player but still was working perfectly like literally an hour ago. Is this a ROBLOX problem or just the script Is not working? Please help!

local MarketplaceService = Game:GetService("MarketplaceService")
local DataStore = Game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")

Product = 0---HIDDEN

MarketplaceService.ProcessReceipt = function(Receipt)
local PlayerProductKey = "Player_" .. Receipt.PlayerId.."_Product_"..Receipt.ProductId
local Bought = DataStore:IncrementAsync(PlayerProductKey, 1)
for i,v in pairs (Game.Players:GetChildren()) do
if v.userId == Receipt.PlayerId then
if Receipt.ProductId == Product then
Cash = v:FindFirstChild("Cash")
if Cash ~= nil then
Cash.Value = Cash.Value + 100
end
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted 
end
0
What does the output say? Tempestatem 884 — 10y
0
He said there was no error. Thewsomeguy 448 — 10y
0
Is their any way to fix this? Please! It was working perfectly like an hour ago. Then it just stopped. No error. peoplemove12 148 — 10y

Answer this question