--===================================================== -- Fly GUI V3 (Menú al Mantener Presionado) -- Creado por Code_Emanuel0 --===================================================== local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- Variables local flyEnabled = false local flySpeed = 1 local flyBV = nil local flyBG = nil local originalGravity = workspace.Gravity local antiFlingEnabled = true local isLocked = false local buttonScale = 1.0 -- ================= LÓGICA ANTI-FLING ================= RunService.Heartbeat:Connect(function() if not antiFlingEnabled then return end local char = LocalPlayer.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") if hrp and hum then if hum.PlatformStand then hum.PlatformStand = false end if not flyEnabled then if hrp.Velocity.Magnitude > 80 then hrp.Velocity = Vector3.new(0, 0, 0) hrp.RotVelocity = Vector3.new(0, 0, 0) end if hrp.RotVelocity.Magnitude > 20 then hrp.RotVelocity = Vector3.new(0, 0, 0) end end end end) -- ================= LÓGICA DEL VUELO ================= local function toggleFly(state) flyEnabled = state local char = LocalPlayer.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") if not hrp then return end if state then workspace.Gravity = 0 flyBV = Instance.new("BodyVelocity") flyBV.MaxForce = Vector3.new(math.huge, math.huge, math.huge) flyBV.Velocity = Vector3.new(0,0,0) flyBV.Parent = hrp flyBG = Instance.new("BodyGyro") flyBG.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) flyBG.P = 1000 flyBG.Parent = hrp else workspace.Gravity = originalGravity if flyBV then flyBV:Destroy() flyBV = nil end if flyBG then flyBG:Destroy() flyBG = nil end end end RunService.RenderStepped:Connect(function() if flyEnabled and flyBV and flyBG and LocalPlayer.Character then local char = LocalPlayer.Character local hum = char:FindFirstChildOfClass("Humanoid") if hum then flyBG.CFrame = Camera.CFrame local moveDir = hum.MoveDirection if moveDir.Magnitude > 0 then flyBV.Velocity = Camera.CFrame.LookVector * (flySpeed * 25) else flyBV.Velocity = Vector3.new(0, 0, 0) end end end end) -- ================= INTERFAZ GRÁFICA ================= local gui = Instance.new("ScreenGui") gui.Name = "FlyGUI_V3" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = LocalPlayer:WaitForChild("PlayerGui") -- Función para arrastrar (solo si no está bloqueado) local function makeDraggable(frame) local dragging, dragStart, startPos frame.InputBegan:Connect(function(input) if isLocked then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) end -- 1. Botón Vuelo local btnFly = Instance.new("TextButton") btnFly.Size = UDim2.new(0, 70, 0, 45) btnFly.Position = UDim2.new(0, 20, 0.2, 0) btnFly.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btnFly.Text = "Fly off" btnFly.TextColor3 = Color3.new(1, 1, 1) btnFly.Font = Enum.Font.GothamBold btnFly.TextSize = 16 btnFly.Parent = gui Instance.new("UICorner", btnFly).CornerRadius = UDim.new(0, 6) makeDraggable(btnFly) btnFly.MouseButton1Click:Connect(function() if not flyEnabled then toggleFly(true) btnFly.Text = "Fly on" btnFly.BackgroundColor3 = Color3.fromRGB(50, 200, 50) else toggleFly(false) btnFly.Text = "Fly off" btnFly.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end) -- 2. Botón Anti-Fling (Con la lógica de mantener presionado) local btnAnti = Instance.new("TextButton") btnAnti.Size = UDim2.new(0, 90, 0, 45) btnAnti.Position = UDim2.new(0, 20, 0.3, 0) btnAnti.BackgroundColor3 = Color3.fromRGB(50, 200, 50) btnAnti.Text = "Anti ON" btnAnti.TextColor3 = Color3.new(1, 1, 1) btnAnti.Font = Enum.Font.GothamBold btnAnti.TextSize = 16 btnAnti.Parent = gui Instance.new("UICorner", btnAnti).CornerRadius = UDim.new(0, 6) makeDraggable(btnAnti) -- MENÚ DE CONFIGURACIÓN (Aparece al mantener presionado Anti-Fling) local configMenu = Instance.new("Frame") configMenu.Size = UDim2.new(0, 140, 0, 90) configMenu.Position = UDim2.new(0, 120, 0.3, 0) configMenu.BackgroundColor3 = Color3.fromRGB(20, 20, 25) configMenu.Visible = false configMenu.Parent = gui Instance.new("UICorner", configMenu).CornerRadius = UDim.new(0, 8) Instance.new("UIStroke", configMenu).Color = Color3.fromRGB(0, 255, 150) -- Botón Subir Tamaño (+) local btnSizeUp = Instance.new("TextButton") btnSizeUp.Size = UDim2.new(0, 35, 0, 30) btnSizeUp.Position = UDim2.new(0, 5, 0, 10) btnSizeUp.BackgroundColor3 = Color3.fromRGB(50, 200, 50) btnSizeUp.Text = "+" btnSizeUp.TextColor3 = Color3.new(1, 1, 1) btnSizeUp.Font = Enum.Font.GothamBold btnSizeUp.TextSize = 18 btnSizeUp.Parent = configMenu Instance.new("UICorner", btnSizeUp).CornerRadius = UDim.new(0, 4) -- Botón Bajar Tamaño (-) local btnSizeDown = Instance.new("TextButton") btnSizeDown.Size = UDim2.new(0, 35, 0, 30) btnSizeDown.Position = UDim2.new(0, 45, 0, 10) btnSizeDown.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btnSizeDown.Text = "-" btnSizeDown.TextColor3 = Color3.new(1, 1, 1) btnSizeDown.Font = Enum.Font.GothamBold btnSizeDown.TextSize = 18 btnSizeDown.Parent = configMenu Instance.new("UICorner", btnSizeDown).CornerRadius = UDim.new(0, 4) -- Botón Candado (Bloquear posición) local btnLock = Instance.new("TextButton") btnLock.Size = UDim2.new(0, 75, 0, 30) btnLock.Position = UDim2.new(0, 5, 0, 50) btnLock.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btnLock.Text = "🔓 OFF" btnLock.TextColor3 = Color3.new(1, 1, 1) btnLock.Font = Enum.Font.GothamBold btnLock.TextSize = 14 btnLock.Parent = configMenu Instance.new("UICorner", btnLock).CornerRadius = UDim.new(0, 4) -- Lógica de la Configuración btnSizeUp.MouseButton1Click:Connect(function() buttonScale = buttonScale + 0.1 btnFly.Size = UDim2.new(0, 70 * buttonScale, 0, 45 * buttonScale) btnAnti.Size = UDim2.new(0, 90 * buttonScale, 0, 45 * buttonScale) end) btnSizeDown.MouseButton1Click:Connect(function() if buttonScale > 0.5 then buttonScale = buttonScale - 0.1 btnFly.Size = UDim2.new(0, 70 * buttonScale, 0, 45 * buttonScale) btnAnti.Size = UDim2.new(0, 90 * buttonScale, 0, 45 * buttonScale) end end) btnLock.MouseButton1Click:Connect(function() isLocked = not isLocked if isLocked then btnLock.BackgroundColor3 = Color3.fromRGB(50, 200, 50) btnLock.Text = "🔒 ON" else btnLock.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btnLock.Text = "🔓 OFF" end end) -- Mantener presionado el botón Anti para abrir/cerrar el menú local pressTime = 0 local isHolding = false btnAnti.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then isHolding = true pressTime = tick() task.delay(0.5, function() if isHolding then configMenu.Visible = not configMenu.Visible isHolding = false -- Evita que se abra varias veces end end) end end) btnAnti.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then isHolding = false -- Si fue un toque rápido (menos de 0.5s), activa/desactiva el anti-fling if tick() - pressTime < 0.5 then antiFlingEnabled = not antiFlingEnabled if antiFlingEnabled then btnAnti.BackgroundColor3 = Color3.fromRGB(50, 200, 50) btnAnti.Text = "Anti ON" else btnAnti.BackgroundColor3 = Color3.fromRGB(200, 50, 50) btnAnti.Text = "Anti OFF" end end end end) -- 3. Panel de Velocidad local speedPanel = Instance.new("Frame") speedPanel.Size = UDim2.new(0, 70, 0, 120) speedPanel.Position = UDim2.new(0, 250, 0.2, 0) speedPanel.BackgroundTransparency = 1 speedPanel.Parent = gui makeDraggable(speedPanel) local btnUp = Instance.new("TextButton") btnUp.Size = UDim2.new(1, 0, 0, 40) btnUp.Position = UDim2.new(0, 0, 0, 0) btnUp.BackgroundColor3 = Color3.fromRGB(30, 30, 35) btnUp.Text = "▲" btnUp.TextColor3 = Color3.new(1, 1, 1) btnUp.Font = Enum.Font.GothamBold btnUp.TextSize = 20 btnUp.Parent = speedPanel Instance.new("UICorner", btnUp).CornerRadius = UDim.new(0, 6) local speedText = Instance.new("TextLabel") speedText.Size = UDim2.new(1, 0, 0, 40) speedText.Position = UDim2.new(0, 0, 0, 40) speedText.BackgroundColor3 = Color3.fromRGB(20, 20, 25) speedText.Text = tostring(flySpeed) speedText.TextColor3 = Color3.fromRGB(255, 255, 255) speedText.Font = Enum.Font.GothamBold speedText.TextSize = 18 speedText.Parent = speedPanel local btnDown = Instance.new("TextButton") btnDown.Size = UDim2.new(1, 0, 0, 40) btnDown.Position = UDim2.new(0, 0, 0, 80) btnDown.BackgroundColor3 = Color3.fromRGB(30, 30, 35) btnDown.Text = "▼" btnDown.TextColor3 = Color3.new(1, 1, 1) btnDown.Font = Enum.Font.GothamBold btnDown.TextSize = 20 btnDown.Parent = speedPanel Instance.new("UICorner", btnDown).CornerRadius = UDim.new(0, 6) btnUp.MouseButton1Click:Connect(function() flySpeed = flySpeed + 1 speedText.Text = tostring(flySpeed) end) btnDown.MouseButton1Click:Connect(function() if flySpeed > 1 then flySpeed = flySpeed - 1 speedText.Text = tostring(flySpeed) end end)