Run it
Copy the script and paste it into your executor.
player, character, humanoid, HRP, flySpeed, flying, bodyVelocity, bodyGyro, TweenService, RunService, Camera, screenGui, loadingFrame, loadingLabel, flyControlsContainer, dpadSize, toggleButton, forwardButton, backButton, leftButton, rightButton, upButton, downButton, uiToggleButton, uiVisible, inputFlags
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
HRP = character:()
flySpeed =
flying =
bodyVelocity = .()
bodyVelocity.Velocity = .(, , )
bodyVelocity.MaxForce = .(, , )
bodyGyro = .()
bodyGyro.CFrame = HRP.CFrame
bodyGyro.MaxTorque = .(, , )
TweenService = :()
RunService = :()
Camera = .CurrentCamera
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
loadingFrame = .()
loadingFrame.Name =
loadingFrame.Size = .(, , , )
loadingFrame.Position = .(, , , )
loadingFrame.BackgroundColor3 = .(, , )
loadingFrame.BackgroundTransparency =
loadingFrame.Parent = screenGui
loadingLabel = .()
loadingLabel.Name =
loadingLabel.Size = .(, , , )
loadingLabel.Position = .(, , , )
loadingLabel.BackgroundTransparency =
loadingLabel.Text =
loadingLabel.TextScaled =
loadingLabel.Font = .Font.GothamBold
loadingLabel.TextColor3 = .(, , )
loadingLabel.Parent = loadingFrame
flyControlsContainer = .()
flyControlsContainer.Name =
flyControlsContainer.Size = .(, , , )
flyControlsContainer.BackgroundTransparency =
flyControlsContainer.Parent = screenGui
dpadSize = .(, , , )
toggleButton =
forwardButton =
backButton =
leftButton =
rightButton =
upButton =
downButton =
uiToggleButton =
uiVisible =
inputFlags = { forward = , back = , left = , right = , up = , down = }
()
flying =
bodyVelocity.Parent = HRP
bodyGyro.Parent = HRP
humanoid.PlatformStand =
()
flying =
bodyVelocity.Parent =
bodyGyro.Parent =
humanoid.PlatformStand =
(parent, name, text, pos, size)
btn = .()
btn.Name = name
btn.Text = text
btn.Size = size
btn.Position = pos
btn.BackgroundColor3 = .(, , )
btn.TextColor3 = .(, , )
btn.Font = .Font.GothamBold
btn.TextScaled =
btn.BackgroundTransparency =
btn.Parent = parent
corner = .()
corner.CornerRadius = .(, )
corner.Parent = btn
btn
(visible)
tweenTime =
_, btn (flyControlsContainer:())
btn:()
targetBackgroundTransparency = visible
targetTextTransparency = visible
tweenInfo = TweenInfo.(tweenTime, .EasingStyle.Quad, .EasingDirection.Out)
tween = TweenService:(btn, tweenInfo, {
BackgroundTransparency = targetBackgroundTransparency,
TextTransparency = targetTextTransparency
})
tween:()
btn.Active = visible
btn.Selectable = visible
(button, flagName)
button.MouseButton1Down:(() inputFlags[flagName] = )
button.MouseButton1Up:(() inputFlags[flagName] = )
button.MouseLeave:(() inputFlags[flagName] = )
toggleButton = (flyControlsContainer, , , .(, -, , ), .(, , , ))
toggleButton.MouseButton1Click:(()
flying
()
toggleButton.Text =
()
toggleButton.Text =
)
forwardButton = (flyControlsContainer, , , .(, , , -), dpadSize)
backButton = (flyControlsContainer, , , .(, , , -), dpadSize)
leftButton = (flyControlsContainer, , , .(, , , -), dpadSize)
rightButton = (flyControlsContainer, , , .(, , , -), dpadSize)
upButton = (flyControlsContainer, , , .(, -, , -), dpadSize)
downButton = (flyControlsContainer, , , .(, -, , -), dpadSize)
uiToggleButton = (screenGui, , , .(, , , ), .(, , , ))
uiToggleButton.MouseButton1Click:(()
uiVisible = uiVisible
(uiVisible)
uiToggleButton.Text = uiVisible
)
(forwardButton, )
(backButton, )
(leftButton, )
(rightButton, )
(upButton, )
(downButton, )
player.CharacterAdded:((newCharacter)
character = newCharacter
humanoid = newCharacter:()
HRP = newCharacter:()
flying =
)
RunService.RenderStepped:((deltaTime)
flying
moveDirection = .(, , )
camCF = Camera.CFrame
inputFlags.forward moveDirection = moveDirection + camCF.LookVector
inputFlags.back moveDirection = moveDirection - camCF.LookVector
inputFlags.left moveDirection = moveDirection - camCF.RightVector
inputFlags.right moveDirection = moveDirection + camCF.RightVector
inputFlags.up moveDirection = moveDirection + .(, , )
inputFlags.down moveDirection = moveDirection - .(, , )
moveDirection.Magnitude > moveDirection = moveDirection.Unit
bodyVelocity.Velocity = moveDirection * flySpeed
bodyGyro.CFrame = camCF
)
.(, ()
tweenInfo = TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out)
tweenFrame = TweenService:(loadingFrame, tweenInfo, { BackgroundTransparency = })
tweenLabel = TweenService:(loadingLabel, tweenInfo, { TextTransparency = })
tweenFrame:()
tweenLabel:()
tweenFrame.Completed:(() loadingFrame:() )
)

Universal