Run it
Copy the script and paste it into your executor.
Players = :()
UIS = :()
RunService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
FLY_KEY = .KeyCode.F
SPEED =
flying =
upHeld, downHeld = ,
bv, bg, conn
controls = (player:():()):()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
(text, size, pos)
b = .()
b.Size = size
b.Position = pos
b.Text = text
b.TextScaled =
b.Font = .Font.GothamBold
b.TextColor3 = .(, , )
b.BackgroundColor3 = .(, , )
b.BackgroundTransparency =
b.AutoButtonColor =
b.Parent = gui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = b
b
toggleBtn = (, .(, ), .(, -, , -))
upBtn = (, .(, ), .(, -, , -))
downBtn = (, .(, ), .(, -, , ))
upBtn.Visible =
downBtn.Visible =
()
toggleBtn.Text = flying
toggleBtn.BackgroundColor3 = flying .(, , ) .(, , )
upBtn.Visible = flying
downBtn.Visible = flying
(button, setter)
button.InputBegan:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
()
)
button.InputEnded:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
()
)
(upBtn, (v) upHeld = v )
(downBtn, (v) downHeld = v )
()
flying =
upHeld, downHeld = ,
conn conn:() conn =
bv bv:() bv =
bg bg:() bg =
char = player.Character
hum = char char:()
hum hum.PlatformStand =
()
()
char = player.Character
hrp = char char:()
hum = char char:()
hrp hum
flying =
hum.PlatformStand =
bv = .()
bv.MaxForce = .(, , )
bv.Velocity = .zero
bv.Parent = hrp
bg = .()
bg.MaxTorque = .(, , )
bg.P =
bg.CFrame = hrp.CFrame
bg.Parent = hrp
conn = RunService.RenderStepped:(()
cf = camera.CFrame
mv = controls:()
dir = cf.RightVector * mv.X + cf.LookVector * -mv.Z
upHeld UIS:(.KeyCode.Space) dir += .yAxis
downHeld UIS:(.KeyCode.LeftControl) dir -= .yAxis
bv.Velocity = dir.Magnitude > dir.Unit * SPEED .zero
bg.CFrame = cf
)
()
()
flying () ()
toggleBtn.Activated:(toggleFly)
UIS.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == FLY_KEY
()
)
player.CharacterAdded:(stopFly)
()Features: - Toggle flight on/off with a button or the F key - Fly in the direction your camera is facing - Mobile support with on-screen FLY, Up and Down buttons - Works with the default mobile joystick - Clean on/off state, resets automatically when your character respawns Controls: PC: F = toggle, WASD = move, Space = up, Left Ctrl = down Mobile: Tap FLY, use the joystick to move, hold the arrows to go up or down

Universal