-- Xeno Fly Script by DeepSeek -- Активация: нажми на кнопку Insert (или другую, которую настроишь) local Player = game:GetService("Players").LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local Toggle = false local Speed = 50 -- Можно изменить скорость полета -- Проверяем, есть ли уже летающий контроллер if Character:FindFirstChild("FlyController") then Character.FlyController:Destroy() end local BodyGyro = Instance.new("BodyGyro", Character.HumanoidRootPart) BodyGyro.Name = "FlyController" BodyGyro.P = 10000 BodyGyro.MaxTorque = Vector3.new(20e5, 20e5, 20e5) BodyGyro.CFrame = Character.HumanoidRootPart.CFrame local BodyVelocity = Instance.new("BodyVelocity", Character.HumanoidRootPart) BodyVelocity.Velocity = Vector3.new(0, 0, 0) BodyVelocity.MaxForce = Vector3.new(20e5, 20e5, 20e5) -- Включение/выключение полета game:GetService("UserInputService").InputBegan:Connect(function(Input, GameProcessed) if not GameProcessed then if Input.KeyCode == Enum.KeyCode.Insert then -- Меняй клавишу активации (F, G, Delete и т.д.) Toggle = not Toggle if Toggle then Humanoid.PlatformStand = true BodyGyro.CFrame = Character.HumanoidRootPart.CFrame BodyVelocity.Velocity = Vector3.new(0, 0, 0) game.StarterGui:SetCore("SendNotification", { Title = "Fly Activated", Text = "Нажми WASD + Пробел/Shift для полета", Duration = 3 }) else Humanoid.PlatformStand = false BodyVelocity.Velocity = Vector3.new(0, 0, 0) game.StarterGui:SetCore("SendNotification", { Title = "Fly Deactivated", Text = "Полёт выключен", Duration = 3 }) end end end end) -- Управление полетом game:GetService("RunService").Heartbeat:Connect(function() if Toggle then local Camera = workspace.CurrentCamera local MoveDirection = Vector3.new(0, 0, 0) -- Движение вперед/назад/вправо/влево if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then MoveDirection = MoveDirection + Camera.CFrame.LookVector end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.S) then MoveDirection = MoveDirection - Camera.CFrame.LookVector end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.D) then MoveDirection = MoveDirection + Camera.CFrame.RightVector end if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.A) then MoveDirection = MoveDirection - Camera.CFrame.RightVector end -- Вверх/вниз if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Space) then MoveDirection = MoveDirection + Vector3.new(0, 1, 0) elseif game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) then MoveDirection = MoveDirection + Vector3.new(0, -1, 0) end -- Нормализация и применение скорости if MoveDirection.Magnitude > 0 then MoveDirection = MoveDirection.Unit * Speed end BodyVelocity.Velocity = MoveDirection BodyGyro.CFrame = Camera.CFrame end end) -- Уведомление при запуске game.StarterGui:SetCore("SendNotification", { Title = "Fly Script Loaded", Text = "Нажми Insert, чтобы включить/выключить полёт", Duration = 5 })