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