Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
flySpeed =
MIN_SPEED, MAX_SPEED = ,
flying =
flyConnection
bodyVelocity, bodyGyro
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.Position = .(, -, , )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.ClipsDescendants =
mainFrame.Parent = screenGui
.(, mainFrame).CornerRadius = .(, )
titleBar = .()
titleBar.Name =
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleBar.Parent = mainFrame
title = .()
title.Size = .(, -, , )
title.Position = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
title.TextXAlignment = .TextXAlignment.Left
title.Parent = titleBar
closeBtn = .()
closeBtn.Name =
closeBtn.Size = .(, , , )
closeBtn.Position = .(, -, , )
closeBtn.BackgroundColor3 = .(, , )
closeBtn.BorderSizePixel =
closeBtn.Text =
closeBtn.TextColor3 = .(, , )
closeBtn.Font = .Font.GothamBold
closeBtn.TextSize =
closeBtn.Parent = titleBar
minBtn = .()
minBtn.Name =
minBtn.Size = .(, , , )
minBtn.Position = .(, -, , )
minBtn.BackgroundColor3 = .(, , )
minBtn.BorderSizePixel =
minBtn.Text =
minBtn.TextColor3 = .(, , )
minBtn.Font = .Font.GothamBold
minBtn.TextSize =
minBtn.Parent = titleBar
content = .()
content.Name =
content.Size = .(, , , -)
content.Position = .(, , , )
content.BackgroundTransparency =
content.Parent = mainFrame
speedLabel = .()
speedLabel.Size = .(, , , )
speedLabel.Position = .(, , , )
speedLabel.BackgroundTransparency =
speedLabel.Text =
speedLabel.TextColor3 = .(, , )
speedLabel.Font = .Font.Gotham
speedLabel.TextSize =
speedLabel.TextXAlignment = .TextXAlignment.Left
speedLabel.Parent = content
speedBox = .()
speedBox.Name =
speedBox.Size = .(, , , )
speedBox.Position = .(, , , )
speedBox.BackgroundColor3 = .(, , )
speedBox.BorderSizePixel =
speedBox.Text = (flySpeed)
speedBox.PlaceholderText =
speedBox.TextColor3 = .(, , )
speedBox.Font = .Font.Gotham
speedBox.TextSize =
speedBox.ClearTextOnFocus =
speedBox.Parent = content
.(, speedBox).CornerRadius = .(, )
flyBtn = .()
flyBtn.Name =
flyBtn.Size = .(, -, , )
flyBtn.Position = .(, , , )
flyBtn.BackgroundColor3 = .(, , )
flyBtn.BorderSizePixel =
flyBtn.Text =
flyBtn.TextColor3 = .(, , )
flyBtn.Font = .Font.GothamBold
flyBtn.TextSize =
flyBtn.Parent = content
.(, flyBtn).CornerRadius = .(, )
()
char = player.Character
char
root = char:()
hum = char:()
char, root, hum
()
flying =
flyConnection
flyConnection:()
flyConnection =
bodyVelocity bodyVelocity:() bodyVelocity =
bodyGyro bodyGyro:() bodyGyro =
_, _, hum = ()
hum hum.PlatformStand =
flyBtn.Text =
flyBtn.BackgroundColor3 = .(, , )
()
_, root, hum = ()
root hum
flying =
hum.PlatformStand =
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .zero
bodyVelocity.Parent = root
bodyGyro = .()
bodyGyro.MaxTorque = .(, , )
bodyGyro.P =
bodyGyro.CFrame = camera.CFrame
bodyGyro.Parent = root
flyBtn.Text =
flyBtn.BackgroundColor3 = .(, , )
flyConnection = RunService.RenderStepped:(()
_, r, h = ()
r h bodyVelocity
()
camera = .CurrentCamera
camCF = camera.CFrame
direction = .zero
moveDir = h.MoveDirection
moveDir.Magnitude >
flatLook = .(camCF.LookVector.X, , camCF.LookVector.Z)
flatRight = .(camCF.RightVector.X, , camCF.RightVector.Z)
flatLook.Magnitude > flatLook = flatLook.Unit
flatRight.Magnitude > flatRight = flatRight.Unit
forwardAmt = moveDir:(flatLook)
rightAmt = moveDir:(flatRight)
direction = camCF.LookVector * forwardAmt + camCF.RightVector * rightAmt
UserInputService:()
UserInputService:(.KeyCode.Space)
direction += .(, , )
UserInputService:(.KeyCode.LeftControl)
UserInputService:(.KeyCode.LeftShift)
direction -= .(, , )
direction.Magnitude >
direction = direction.Unit
bodyVelocity.Velocity = direction * flySpeed
bodyGyro.CFrame = camCF
)
()
flying
()
()
flyBtn.MouseButton1Click:(toggleFly)
speedBox.FocusLost:(()
value = (speedBox.Text)
value
flySpeed = .(value, MIN_SPEED, MAX_SPEED)
speedBox.Text = (flySpeed)
)
minimized =
minBtn.MouseButton1Click:(()
minimized = minimized
content.Visible = minimized
mainFrame.Size = minimized .(, , , ) .(, , , )
minBtn.Text = minimized
)
closeBtn.MouseButton1Click:(()
()
screenGui:()
)
player.CharacterAdded:(()
flying ()
)
dragging, dragStart, startPos
titleBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = mainFrame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
mainFrame.Position = .(
startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y
)
)
Universal