Developer Products issue.
I cannot get my Developer Products working. I have a script, and they are all the same, except the Developer I.D. and value. The button does nothing.
01 | local MarketplaceService = Game:GetService( "MarketplaceService" ) |
02 | local ds = game:GetService( "DataStoreService" ):GetDataStore( "PurchaseHistory" ) |
03 | local productId = 19460824 |
05 | MarketplaceService.ProcessReceipt = function (receiptInfo) |
07 | for i, player in ipairs (game.Players:GetChildren()) do |
08 | if player.userId = = receiptInfo.PlayerId then |
11 | if receiptInfo.ProductId = = productId then |
13 | player.Character.leaderstats.Stage.Value + 1 |
14 | game.Workspace.DisplayScreen.SurfaceGui.TextBox.Text = player.Name .. " has skipped one level!" |
19 | local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_purchase_" .. receiptInfo.PurchaseId |
20 | ds:IncrementAsync(playerProductKey, 1 ) |
22 | return Enum.ProductPurchaseDecision.PurchaseGranted |
Something tells me it is something ridiculously easy, but I cannot seem to find the error. I find now errors about this script in particular.