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

3 comments

0

What does the output say?

0

He said there was no error.

0

Is their any way to fix this? Please! It was working perfectly like an hour ago. Then it just stopped. No error.