Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
ContextActionService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
FLY_SPEED =
FLY_BUTTON_NAME =
isFlying =
bodyGyro
bodyVelocity
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
flyButton = .()
flyButton.Name =
flyButton.Size = .(, , , )
flyButton.Position = .(, -, , -)
flyButton.AnchorPoint = .(, )
flyButton.BackgroundColor3 = .(, , )
flyButton.TextColor3 = .(, , )
flyButton.TextScaled =
flyButton.Text =
flyButton.Font = .Font.GothamBold
flyButton.Parent = screenGui
uiCorner = .()
uiCorner.CornerRadius = .(, )
uiCorner.Parent = flyButton
()
player.Character player.CharacterAdded:()
(character)
character:()
(character)
character:()
()
isFlying = isFlying
character = ()
root = (character)
humanoid = (character)
isFlying
flyButton.Text =
flyButton.BackgroundColor3 = .(, , )
humanoid.PlatformStand =
bodyGyro = .()
bodyGyro.P =
bodyGyro.MaxTorque = .(, , )
bodyGyro.CFrame = root.CFrame
bodyGyro.Parent = root
bodyVelocity = .()
bodyVelocity.Velocity = .(, , )
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Parent = root
flyButton.Text =
flyButton.BackgroundColor3 = .(, , )
humanoid.PlatformStand =
bodyGyro bodyGyro:()
bodyVelocity bodyVelocity:()
RunService.RenderStepped:(()
isFlying
character = ()
character bodyGyro bodyVelocity
root = (character)
humanoid = (character)
bodyGyro.CFrame = camera.CFrame
moveDir = humanoid.MoveDirection
moveDir.Magnitude >
travelVector = (camera.CFrame.RightVector * ((moveDir.X * moveDir.X > (moveDir.X > -)) ))
+ (camera.CFrame.LookVector * ((moveDir.Z * moveDir.Z > (moveDir.Z < -)) ))
bodyVelocity.Velocity = camera.CFrame.LookVector * (moveDir.Magnitude * FLY_SPEED)
bodyVelocity.Velocity = .(, , )
)
flyButton.MouseButton1Click:(toggleFlight)
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.F
()
)
player.CharacterRemoving:(()
isFlying =
flyButton.Text =
flyButton.BackgroundColor3 = .(, , )
)
It's mobile, PC, and controller compatible there's aa button which you click and yo get to fly also you can only fly forwards

Universal