1. for i = 1, #workspace.Checkpoints.Candy:GetChildren() do
  2. game.Players.LocalPlayer.Character:PivotTo(workspace.Checkpoints.Candy:FindFirstChild(tostring(i)):GetPivot())
  3. end