Ive been wondering this for a few days, I just can't figure out how I would get the game pass to enable the user to be teleported to a different level, like the one after they're on now, so if theyre on 3 and buy the pass to be skipped to 4 they get teleported there. Im not great at scripting, just begun learning.
Thanks in advance :)
going to try myself:
local passId = 0000000 -- change this to your game pass ID.
function isAuthenticated(player) -- checks to see if the player owns your pass
return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
end
game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
stage = Player.leaderstats
new_stage = stage + 1
function new_stage
stage + 1
end
end)
first ever try at code so please only useful feedback, thanks guys!

1 comment
Would it be along the lines of this?