local includbeonus = false; -- If you change false to true, it will also include the bonus stages local stagetext = game:GetService("Players").LocalPlayer.PlayerGui.StageTransfer.CurrentStage local stagenow = stagetext.Text function main() for i = 1, includbeonus and 51 or 45 do if i > (includbeonus and 51 or 45) then break end if i <= tonumber(stagenow) then continue end local old = stagetext.Text game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.Checkpoints[tostring(i)].CFrame task.wait(game.Players.LocalPlayer:GetNetworkPing()) end stagenow = "0" repeat task.wait() until stagetext.Text == tostring(includbeonus and 51 or 45) game:GetService("ReplicatedStorage"):WaitForChild("RebirthEvent"):FireServer() repeat task.wait() until stagetext.Text == "0" main() end main()