So I have a script that can do skip a stage but just recently out of no where it only works sometimes and sometimes not and also different ones to like 5x stage skips and 10x stage skips
heres an example:
the first stage is stage 1 btw so it just didnt work
5x skips was working now not and now 10x skips works??
I dont know if its a studio bug or a bug in my script but I dont think I have a bug
script for 1 skip
local marketPlaceService = game:GetService("MarketplaceService")
marketPlaceService.ProcessReceipt = function(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if receiptInfo.ProductId == 1315732683 then
player.leaderstats.Stage.Value += 1
wait(1)
player:LoadCharacter()
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
script for the button
script.Parent.MouseButton1Down:Connect(function()
local marketPlaceService = game:GetService("MarketplaceService")
marketPlaceService:PromptProductPurchase(game.Players.LocalPlayer, 1315732683)
end)
script for the 5 skips for reference
local marketPlaceService = game:GetService("MarketplaceService")
marketPlaceService.ProcessReceipt = function(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if receiptInfo.ProductId == 1315760164 then
player.leaderstats.Stage.Value += 5
wait(1)
player:LoadCharacter()
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
and the other one
script.Parent.MouseButton1Down:Connect(function()
local marketPlaceService = game:GetService("MarketplaceService")
marketPlaceService:PromptProductPurchase(game.Players.LocalPlayer, 1315760164)
end)
It’s hard for my to identify the problem as the problem just keeps changing so I think it could a studio bug or a cooldown for the buying dev product testing