Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local flying = false
local flySpeed = 50 -- Speed at which the player flies
local function startFlying()
flying = true
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = rootPart
userInputService = :()
flying
moveDirection = .(, , )
userInputService:(.KeyCode.W)
moveDirection = moveDirection + .CurrentCamera.CFrame.LookVector
userInputService:(.KeyCode.S)
moveDirection = moveDirection - .CurrentCamera.CFrame.LookVector
userInputService:(.KeyCode.A)
moveDirection = moveDirection - .CurrentCamera.CFrame.RightVector
userInputService:(.KeyCode.D)
moveDirection = moveDirection + .CurrentCamera.CFrame.RightVector
userInputService:(.KeyCode.Space)
moveDirection = moveDirection + .(, , )
userInputService:(.KeyCode.LeftShift)
moveDirection = moveDirection - .(, , )
bodyVelocity.Velocity = moveDirection * flySpeed
()
()
flying =
rootPart:():()
:().InputBegan:((input)
input.KeyCode == .KeyCode.F
flying
()
()
)This is just a simple fly script. Press F to activate.

Universal