Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
playerGui = player:()
FLY_SPEED =
VERTICAL_SPEED =
flying =
goingUp =
goingDown =
flyConnection
attachment
velocity
orientation
currentHumanoid
savedAutoRotate
oldGui = playerGui:()
oldGui
oldGui:()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.IgnoreGuiInset =
gui.Parent = playerGui
panel = .()
panel.Name =
panel.Size = .(, )
panel.Position = .(, , , )
panel.BackgroundColor3 = .(, , )
panel.BorderSizePixel =
panel.Parent = gui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = panel
outline = .()
outline.Color = .(, , )
outline.Thickness =
outline.Parent = panel
title = .()
title.Size = .(, -, , )
title.Position = .(, )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
title.Parent = panel
(name, text, position, size, parent)
button = .()
button.Name = name
button.Text = text
button.Position = position
button.Size = size
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(, , )
button.Font = .Font.GothamBold
button.TextSize =
button.AutoButtonColor =
button.BorderSizePixel =
button.Parent = parent
c = .()
c.CornerRadius = .(, )
c.Parent = button
button
flyButton = (
, ,
.(, ),
.(, -, , ),
panel
)
hideButton = (
, ,
.(, ),
.(, -, , ),
panel
)
menuButton = (
, ,
.(, , , ),
.(, ),
gui
)
menuButton.Visible =
menuButton.BackgroundColor3 = .(, , )
menuButton.TextSize =
upButton = (
, ,
.(, -, , -),
.(, ),
gui
)
downButton = (
, ,
.(, -, , -),
.(, ),
gui
)
upButton.Visible =
downButton.Visible =
()
flying =
goingUp =
goingDown =
flyConnection
flyConnection:()
flyConnection =
velocity
velocity:()
velocity =
orientation
orientation:()
orientation =
attachment
attachment:()
attachment =
currentHumanoid currentHumanoid.Parent
currentHumanoid.AutoRotate = savedAutoRotate ~=
currentHumanoid:(.HumanoidStateType.GettingUp)
currentHumanoid =
flyButton.Text =
flyButton.BackgroundColor3 = .(, , )
upButton.Visible =
downButton.Visible =
()
flying
()
character = player.Character
character
humanoid = character:()
root = character:()
humanoid root humanoid.Health <=
()
currentHumanoid = humanoid
savedAutoRotate = humanoid.AutoRotate
flying =
attachment = .()
attachment.Name =
attachment.Parent = root
velocity = .()
velocity.Name =
velocity.Attachment0 = attachment
velocity.RelativeTo = .ActuatorRelativeTo.World
velocity.VelocityConstraintMode =
.VelocityConstraintMode.Vector
velocity.VectorVelocity = .zero
velocity.MaxForce =
velocity.Parent = root
orientation = .()
orientation.Name =
orientation.Mode = .OrientationAlignmentMode.OneAttachment
orientation.Attachment0 = attachment
orientation.Responsiveness =
orientation.MaxTorque =
orientation.Parent = root
humanoid.AutoRotate =
humanoid:(.HumanoidStateType.Physics)
flyButton.Text =
flyButton.BackgroundColor3 = .(, , )
upButton.Visible =
downButton.Visible =
flyConnection = RunService.Heartbeat:(()
flying
character.Parent
root.Parent
humanoid.Health <=
()
moveDirection = humanoid.MoveDirection
vertical =
goingUp
vertical = vertical +
goingDown
vertical = vertical -
velocity.VectorVelocity =
moveDirection * FLY_SPEED
+ .(, vertical * VERTICAL_SPEED, )
camera = .CurrentCamera
camera
look = camera.CFrame.LookVector
orientation.CFrame = .(
.zero,
.(look.X, look.Y, look.Z)
)
)
flyButton.Activated:(startFlying)
hideButton.Activated:(()
panel.Visible =
menuButton.Visible =
)
menuButton.Activated:(()
panel.Visible =
menuButton.Visible =
)
upButton.InputBegan:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
goingUp =
)
upButton.InputEnded:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
goingUp =
)
downButton.InputBegan:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
goingDown =
)
downButton.InputEnded:((input)
input.UserInputType == .UserInputType.Touch
input.UserInputType == .UserInputType.MouseButton1
goingDown =
)
UserInputService.InputBegan:((input, processed)
processed
input.KeyCode == .KeyCode.Space flying
goingUp =
input.KeyCode == .KeyCode.LeftShift flying
goingDown =
input.KeyCode == .KeyCode.F
()
)
UserInputService.InputEnded:((input)
input.KeyCode == .KeyCode.Space
goingUp =
input.KeyCode == .KeyCode.LeftShift
goingDown =
)
player.CharacterAdded:(()
()
)
()Has fly close panel

Universal