-- LocalScript (StarterPlayerScripts) local player = game.Players.LocalPlayer local checkpoints = workspace:WaitForChild("Checkpoints") local rebirthPortal = workspace:WaitForChild("RebirthPortal"):WaitForChild("Main") local teleporting = true -- Crear GUI y botón local screenGui = Instance.new("ScreenGui") screenGui.Name = "TeleportGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local stopButton = Instance.new("TextButton") stopButton.Size = UDim2.new(0, 200, 0, 50) stopButton.Position = UDim2.new(0.5, -100, 0.9, 0) stopButton.Text = "DETENER TELETRANSPORTE" stopButton.BackgroundColor3 = Color3.new(1, 0, 0) stopButton.TextColor3 = Color3.new(1, 1, 1) stopButton.Font = Enum.Font.SourceSansBold stopButton.TextScaled = true stopButton.Active = true stopButton.Draggable = true stopButton.Parent = screenGui -- Botón para detener el loop stopButton.MouseButton1Click:Connect(function() teleporting = false stopButton.Text = "TELETRANSPORTE DETENIDO" stopButton.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) end) -- Loop de teletransporte con pausa entre checkpoints y rebirth task.spawn(function() while teleporting do for i = 1, 60 do if not teleporting then return end local checkpoint = checkpoints:FindFirstChild(tostring(i)) if checkpoint and checkpoint:IsA("BasePart") then player.Character:WaitForChild("HumanoidRootPart").CFrame = checkpoint.CFrame + Vector3.new(0, 5, 0) end task.wait(0.2) -- Pausa de 1 segundo entre checkpoints end -- Teletransportar al portal if teleporting and rebirthPortal and rebirthPortal:IsA("BasePart") then player.Character:WaitForChild("HumanoidRootPart").CFrame = rebirthPortal.CFrame + Vector3.new(0, 5, 0) task.wait(1.5) -- Espera un poco para que el prompt cargue -- Buscar y activar ProximityPrompt automáticamente local prompt = rebirthPortal:FindFirstChildOfClass("ProximityPrompt") if prompt then prompt:InputHoldBegin() task.wait(0.2) prompt:InputHoldEnd() end end end end)