+1 in a skip checkpoint

So, I made a parkour map that relies on a checkpoint system that is team based. I have no idea how to set up a skip script for that kind of system. I checked around online everywhere and most systems use just int values in their Leaderstats with ‘Stages’ +1 but since I’m team based it won’t work that way.

The closest of an answer I got was on here, someone also had same issue, answer was to add a a IntValue inside the checkpoints on the map. so I have in each one but how would I link it to leaderstats? or what should I do after.

wait, you want to make a checkpoint system that has teams? or one that has no teams?

I already have a checkpoint system that is team based. as you progress you join different teams instead of ‘‘stages’’

need help figuring out when you press a button your able to skip the team your on to the next one

A post was merged into an existing topic: Feedback - Bypassing the 30 Character Limit

The one I used to make it team based is

local checkpoints = game.Workspace:WaitForChild("Checkpoints"):GetChildren()



for i, checkpoint in pairs(checkpoints) do
	
	
	
	checkpoint.TeamColor = game.Teams:FindFirstChild(checkpoint.Name).TeamColor
	checkpoint.BrickColor = game.Teams:FindFirstChild(checkpoint.Name).TeamColor
	
end

and

local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("ObbyDataStore")

game.Players.PlayerAdded:Connect(function(player)
	local data
	local success, errorMessage = pcall(function()
		data = DataStore:GetAsync(player.UserId.."-stage")
	end)
	if success then
		if data then
			player.Team = game.Teams[data]
		else
			player.Team = game.Teams.Lobby 
		end
	else
		player.Team = game.Teams.Lobby 
	end
end)

game.Players.PlayerRemoving:Connect(function(player)
	local teamName = player.Team.Name
	DataStore:SetAsync(player.UserId.."-stage",teamName)
end)

you could make it change the players team depending on what team there in with if then statmesnts then loading in the character to respawn the player