Hello everybody,
I am working on a Difficulty Chart Obby but my skip stage button doesn’t work, the output doesn’t give any errors.
I have a donation board in the game and if i remove that then the SkipStage is working again, but if i put the donation board back it doesn’t work. (its a free model donation board that allot of people use)
Anyone got a answer on this?
This is the skip stage script:
local MarketplaceService = game:GetService(“MarketplaceService”)
local productId = settings.skipStageProductID
MarketplaceService.ProcessReceipt = function(receiptInfo)
local players = game.Players:GetPlayers()
local done = 0
for i=1,#players do
if players[i].userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == productId and done == 0 then
done = 1
players[i].leaderstats.Stage.Value = players[i].leaderstats.Stage.Value + 1
players[i].TeleportedStage.Value = players[i].leaderstats.Stage.Value
players[i].Character:MoveTo(game.Workspace.Stages:FindFirstChild(players[i].TeleportedStage.Value).Position)
done = 0
end
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
and this is the donation board: Donation Board - Roblox
-D4rknessDust-