Run it
Copy the script and paste it into your executor.
Players = :()
UIS = :()
RS = :()
Workspace = :()
player = Players.LocalPlayer
PlayerGui = player:()
cam = Workspace.CurrentCamera
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = PlayerGui
toggleBtn = .()
toggleBtn.Size = .(,,,)
toggleBtn.Position = .(,,,)
toggleBtn.BackgroundColor3 = .(,,)
toggleBtn.Image =
toggleBtn.ImageRectOffset = .(,)
toggleBtn.ImageRectSize = .(,)
toggleBtn.AutoButtonColor =
toggleBtn.Active =
toggleBtn.Draggable =
toggleBtn.Parent = gui
.(, toggleBtn).CornerRadius = .(,)
s = .(, toggleBtn); s.Thickness = ; s.Color = .(,,)
sliderFrame = .()
sliderFrame.Size = .(,,,)
sliderFrame.Position = .(,,,-)
sliderFrame.BackgroundColor3 = .(,,)
sliderFrame.Visible =
sliderFrame.Parent = toggleBtn
.(, sliderFrame).CornerRadius = .(,)
bar = .()
bar.Size = .(,-,,)
bar.Position = .(,,,-)
bar.BackgroundColor3 = .(,,)
bar.Parent = sliderFrame
.(, bar).CornerRadius = .(,)
knob = .()
knob.Size = .(,,,)
knob.Position = .(,,,-)
knob.BackgroundColor3 = .(,,)
knob.Parent = bar
.(, knob).CornerRadius = .(,)
label = .()
label.Size = .(,,,)
label.Position = .(,,,)
label.BackgroundTransparency =
label.TextColor3 = .(,,)
label.Font = .Font.GothamBold
label.TextSize =
label.Text =
label.Parent = sliderFrame
upBtn = .()
upBtn.Size = .(,,,)
upBtn.Position = .(,,,)
upBtn.Text =
upBtn.Font = .Font.GothamBold
upBtn.TextSize =
upBtn.TextColor3 = .(,,)
upBtn.BackgroundColor3 = .(,,)
upBtn.Visible =
upBtn.Parent = gui
.(, upBtn).CornerRadius = .(,)
downBtn = .()
downBtn.Size = .(,,,)
downBtn.Position = .(,,,)
downBtn.Text =
downBtn.Font = .Font.GothamBold
downBtn.TextSize =
downBtn.TextColor3 = .(,,)
downBtn.BackgroundColor3 = .(,,)
downBtn.Visible =
downBtn.Parent = gui
.(, downBtn).CornerRadius = .(,)
flying =
speedLevel =
speedMultiplier =
speed = speedLevel * speedMultiplier
verticalSpeed =
humanoid, root, char
BV, BG
draggingKnob =
ascendMobile =
descendMobile =
shiftLockActive =
()
char = player.Character player.CharacterAdded:()
humanoid = char:()
root = char:()
()
humanoid
_, track (humanoid:())
n = track.Name
n:():() n:():()
(() track:() )
(() humanoid:(.HumanoidStateType.Physics) )
()
shiftLockActive =
()
shiftLockActive =
()
()
()
BV = .()
BV.Name =
BV.MaxForce = .(,,)
BV.P =
BV.Velocity = .zero
BV.Parent = root
BG = .()
BG.Name =
BG.MaxTorque = .(,,)
BG.P =
BG.D =
BG.CFrame = root.CFrame
BG.Parent = root
humanoid.AutoRotate =
upBtn.Visible =
downBtn.Visible =
()
()
BV BV.Parent BV:()
BG BG.Parent BG:()
humanoid
humanoid.AutoRotate =
(() humanoid:(.HumanoidStateType.GettingUp) )
upBtn.Visible =
downBtn.Visible =
()
toggleBtn.MouseButton1Click:(()
flying = flying
sliderFrame.Visible = flying
flying
toggleBtn.BackgroundColor3 = .(,,)
(startFly)
toggleBtn.BackgroundColor3 = .(,,)
(stopFly)
)
bar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingKnob =
)
UIS.InputChanged:((input)
draggingKnob
input.UserInputType ~= .UserInputType.MouseMovement input.UserInputType ~= .UserInputType.Touch
rel = .((input.Position.X - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, , )
knob.Position = .(rel, -, , -)
speedLevel = .(, .(rel * ) + )
speed = speedLevel * speedMultiplier
label.Text = .. (speed)
)
UIS.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
draggingKnob =
)
upBtn.MouseButton1Down:(() ascendMobile = )
upBtn.MouseButton1Up:(() ascendMobile = )
downBtn.MouseButton1Down:(() descendMobile = )
downBtn.MouseButton1Up:(() descendMobile = )
RS.RenderStepped:((dt)
flying
humanoid root BV BG
camCF = cam.CFrame
camForward = .(camCF.LookVector.X, , camCF.LookVector.Z)
camForward.Magnitude < camForward = .(,,-)
camForward = camForward.Unit
camRight = .(camCF.RightVector.X, , camCF.RightVector.Z)
camRight.Magnitude < camRight = .(,,)
camRight = camRight.Unit
kbX = ; kbZ =
UIS:(.KeyCode.D) UIS:(.KeyCode.Right) kbX = kbX +
UIS:(.KeyCode.A) UIS:(.KeyCode.Left) kbX = kbX -
UIS:(.KeyCode.W) UIS:(.KeyCode.Up) kbZ = kbZ +
UIS:(.KeyCode.S) UIS:(.KeyCode.Down) kbZ = kbZ -
inputX, inputZ = ,
.(kbX) > .(kbZ) >
inputX = kbX
inputZ = kbZ
mag = .(inputX*inputX + inputZ*inputZ)
mag > inputX = inputX / mag; inputZ = inputZ / mag
md = humanoid.MoveDirection .(,,)
inputX = md:(camRight)
inputZ = md:(camForward)
.(inputX) < inputX =
.(inputZ) < inputZ =
mag = .(inputX*inputX + inputZ*inputZ)
mag > inputX = inputX / mag; inputZ = inputZ / mag
moveVec = (camForward * inputZ) + (camRight * inputX)
ascend = UIS:(.KeyCode.Space) ascendMobile
descend = UIS:(.KeyCode.LeftControl) UIS:(.KeyCode.LeftShift) descendMobile
yVel =
ascend
yVel = verticalSpeed
descend
yVel = -verticalSpeed
horizVel = .(,,)
moveVec.Magnitude >
horizVel = moveVec.Unit * speed
target = .(horizVel.X, yVel, horizVel.Z)
BV.Velocity = BV.Velocity:(target, .( * dt, , ))
shiftLockActive
look = .(camForward.X, , camForward.Z)
look.Magnitude >
targetC = .(root.Position, root.Position + look.Unit)
smooth = .( * dt, , )
BG.CFrame = root.CFrame:(targetC, smooth)
moveVec.Magnitude >
targetC = .(root.Position, root.Position + moveVec.Unit)
BG.CFrame = root.CFrame:(targetC, .( * dt, , ))
)
player.CharacterAdded:(()
flying =
(stopFly)
sliderFrame.Visible =
toggleBtn.BackgroundColor3 = .(,,)
)
Yo guys my first script here on script blox it's a fly gui works nicely but it took me pretty long to make it work hope you like it give me any suggestions for what other scripts I shoudl make peace out yall

Universal