local checkpoints = workspace:WaitForChild("Checkpoints") game.Players.PlayerAdded:Connect(function(plr) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = plr local v = Instance.new("IntValue") v.Name = "Stage" v.Value = 1 v.Parent = leaderstats plr.CharacterAdded:Connect(function(char) local hum = char:WaitForChild("Humanoid") wait() char:MoveTo(checkpoints[v.Value].Position) hum.Touched:Connect(function(hit) if hit.Parent == checkpoints then if tonumber(hit.Name) == v.Value +1 then v.Value = v.Value +1 end end end) end) end)