Run it
Copy the script and paste it into your executor.
-- Place this script in a LocalScript (for client-side)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local flying = true -- Set to true to enable flying
local flySpeed = 50 -- Adjust fly speed as needed
-- Function to handle flying
local function startFlying()
local bodyGyro = .()
bodyVelocity = .()
bodyGyro.P =
bodyGyro.maxTorque = .(, , )
bodyGyro.cframe = humanoidRootPart.CFrame
bodyGyro.Parent = humanoidRootPart
bodyVelocity.velocity = .(, , )
bodyVelocity.maxForce = .(, , )
bodyVelocity.Parent = humanoidRootPart
flying
humanoidRootPart.CFrame = humanoidRootPart.CFrame
bodyGyro.cframe = .CurrentCamera.CFrame
bodyVelocity.velocity = .CurrentCamera.CFrame.LookVector * flySpeed
moveDirection = .()
camera = .CurrentCamera
cameraCFrame = camera.CFrame
player.Character.Humanoid.MoveDirection.Magnitude >
moveDirection = cameraCFrame:(.(player.Character.Humanoid.MoveDirection.X, , player.Character.Humanoid.MoveDirection.Z))
bodyVelocity.velocity = moveDirection * flySpeed
()
bodyGyro:()
bodyVelocity:()
()
flying
humanoidRootPart.Velocity = .(, , )
()
()
()Script

Universal