Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a developer product that when bought skips some levels?

I wanna make a developer product that makes you skip levels. But I don't really know how. I'm new to gamepasses and dev products. Script that I tried:

mps = game:GetService("MarketplaceService")
id = 22244066

mps.ProcessReceipt = function(receiptInfo)
	local playerProductKey = "player_"..receiptInfo.PlayerId.."_product_"..receiptInfo.ProductId
	for i,v in pairs (game.Players:GetChildren()) do
		if   v.userId == receiptInfo.PlayerId then
			if receiptInfo.ProductId == id then
-- stuck

Please help!

1 answer

First of all, you need to give us more information than that. We don't know how the level system works, so there isn't a way to help.

1 comment

0

There is teams. So whenever you touch a level spawn, it changes the team to the next level. But now, whenever they buy that product, they can be in any level then player get free +2 lvls.

This discussion is preserved as it was. New answers, comments, and votes are closed.