local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local rootPart = character:WaitForChild("HumanoidRootPart") -- Configuración del Dash local DASH_FORCE = 80 -- Fuerza reducida para que no impulse tanto (ajusta entre 60 y 100) local DASH_DURATION = 0.12 -- Ligeramente más corto para mayor control local COOLDOWN = 0.8 local onCooldown = false player.CharacterAdded:Connect(function(newChar) character = newChar rootPart = character:WaitForChild("HumanoidRootPart") end) -- Interfaz local screenGui = Instance.new("ScreenGui") screenGui.Name = "MobileDashGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local dashButton = Instance.new("TextButton") dashButton.Name = "DashButton" dashButton.Size = UDim2.new(0, 90, 0, 90) dashButton.Position = UDim2.new(0.8, -45, 0.6, -45) dashButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20) dashButton.BorderColor3 = Color3.fromRGB(0, 255, 200) dashButton.BorderSizePixel = 3 dashButton.Text = "DASH" dashButton.TextColor3 = Color3.fromRGB(255, 255, 255) dashButton.TextSize = 22 dashButton.Font = Enum.Font.SourceSansBold dashButton.Active = true dashButton.Draggable = true dashButton.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0.5, 0) corner.Parent = dashButton -- Función del Dash local function ejecutarDash() if onCooldown or not rootPart then return end onCooldown = true dashButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100) local bodyVelocity = Instance.new("BodyVelocity") -- Limitamos la fuerza en Y a 0 para que no salte ni flote bodyVelocity.MaxForce = Vector3.new(1e6, 0, 1e6) -- Dirección horizontal hacia donde mira el personaje local moveDir = rootPart.CFrame.LookVector bodyVelocity.Velocity = Vector3.new(moveDir.X, 0, moveDir.Z).Unit * DASH_FORCE bodyVelocity.Parent = rootPart task.wait(DASH_DURATION) bodyVelocity:Destroy() task.wait(COOLDOWN) dashButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20) onCooldown = false end dashButton.MouseButton1Click:Connect(ejecutarDash)