Run it
Copy the script and paste it into your executor.
Players = :()
UIS = :()
RunService = :()
TweenService = :()
player = Players.LocalPlayer
playerGui = player:()
speed =
flying =
vertical =
flyConnection
bodyVelocity
bodyGyro
humanoid
oldAutoRotate
destroyed =
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = playerGui
frame = .()
frame.Name =
frame.Size = .(, )
frame.Position = .(, -, , -)
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.ZIndex =
frame.Parent = gui
mainCorner = .()
mainCorner.CornerRadius = .(, )
mainCorner.Parent = frame
stroke = .()
stroke.Color = .(, , )
stroke.Thickness =
stroke.Parent = frame
shadowHolder = .()
shadowHolder.Name =
shadowHolder.AnchorPoint = .zero
shadowHolder.Size = .(, )
shadowHolder.Position = .(, -, , -)
shadowHolder.BackgroundTransparency =
shadowHolder.BorderSizePixel =
shadowHolder.ZIndex =
shadowHolder.Parent = gui
(padding, transparency)
layer = .()
layer.Size = .(, padding, , padding)
layer.Position = .(
, -padding / ,
, -padding / +
)
layer.BackgroundColor3 = .(, , )
layer.BackgroundTransparency = transparency
layer.BorderSizePixel =
layer.ZIndex =
layer.Parent = shadowHolder
corner = .()
corner.CornerRadius = .(, + padding / )
corner.Parent = layer
(, )
(, )
(, )
(, )
()
shadowHolder.Position = .(
frame.Position.X.Scale,
frame.Position.X.Offset - ,
frame.Position.Y.Scale,
frame.Position.Y.Offset -
)
shadowHolder.Size = .(
frame.Size.X.Scale,
frame.Size.X.Offset + ,
frame.Size.Y.Scale,
frame.Size.Y.Offset +
)
()
frame:():(updateShadow)
frame:():(updateShadow)
titleBar = .()
titleBar.Name =
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleBar.ZIndex =
titleBar.Parent = frame
titleCorner = .()
titleCorner.CornerRadius = .(, )
titleCorner.Parent = titleBar
titleCover = .()
titleCover.Size = .(, , , )
titleCover.Position = .(, , , -)
titleCover.BackgroundColor3 = titleBar.BackgroundColor3
titleCover.BorderSizePixel =
titleCover.ZIndex =
titleCover.Parent = titleBar
title = .()
title.Size = .(, -, , )
title.Position = .(, )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.Font = .Font.GothamMedium
title.TextXAlignment = .TextXAlignment.Left
title.ZIndex =
title.Parent = titleBar
closeButton = .()
closeButton.Name =
closeButton.Size = .(, )
closeButton.Position = .(, -, , )
closeButton.BackgroundColor3 = .(, , )
closeButton.Text =
closeButton.TextColor3 = .(, , )
closeButton.TextSize =
closeButton.Font = .Font.Gotham
closeButton.BorderSizePixel =
closeButton.ZIndex =
closeButton.Parent = titleBar
.(, closeButton).CornerRadius =
.(, )
dragging =
dragStart
startPosition
activeDragInput
dragTween
shadowTween
titleBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPosition = frame.Position
activeDragInput = input
dragTween dragTween:()
shadowTween shadowTween:()
)
UIS.InputChanged:((input)
dragging
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
delta = input.Position - dragStart
target = .(
startPosition.X.Scale,
startPosition.X.Offset + delta.X,
startPosition.Y.Scale,
startPosition.Y.Offset + delta.Y
)
dragTween dragTween:()
dragTween = TweenService:(
frame,
TweenInfo.(
,
.EasingStyle.Linear,
.EasingDirection.Out
),
{Position = target}
)
dragTween:()
)
UIS.InputEnded:((input)
input == activeDragInput
dragging =
activeDragInput =
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
vertical =
)
(name, text, size, position, color)
button = .()
button.Name = name
button.Size = size
button.Position = position
button.BackgroundColor3 = color
button.BorderSizePixel =
button.Text = text
button.TextColor3 = .(, , )
button.TextSize =
button.Font = .Font.GothamMedium
button.AutoButtonColor =
button.ZIndex =
button.Parent = frame
corner = .()
corner.CornerRadius = .(, )
corner.Parent = button
button.MouseEnter:(()
TweenService:(button, TweenInfo.(), {
BackgroundColor3 = color:(
.(, , ),
)
}):()
)
button.MouseLeave:(()
TweenService:(button, TweenInfo.(), {
BackgroundColor3 = color
}):()
)
button
flyButton = (
, ,
.(, ),
.(, ),
.(, , )
)
stopButton = (
, ,
.(, ),
.(, ),
.(, , )
)
speedLabel = .()
speedLabel.Size = .(, )
speedLabel.Position = .(, )
speedLabel.BackgroundTransparency =
speedLabel.Text =
speedLabel.TextColor3 = .(, , )
speedLabel.TextSize =
speedLabel.Font = .Font.GothamMedium
speedLabel.TextXAlignment = .TextXAlignment.Left
speedLabel.ZIndex =
speedLabel.Parent = frame
speedBox = .()
speedBox.Name =
speedBox.Size = .(, )
speedBox.Position = .(, )
speedBox.BackgroundColor3 = .(, , )
speedBox.BorderSizePixel =
speedBox.Text =
speedBox.PlaceholderText =
speedBox.TextColor3 = .(, , )
speedBox.PlaceholderColor3 = .(, , )
speedBox.TextSize =
speedBox.Font = .Font.Gotham
speedBox.ClearTextOnFocus =
speedBox.ZIndex =
speedBox.Parent = frame
.(, speedBox).CornerRadius =
.(, )
speedStroke = .()
speedStroke.Color = .(, , )
speedStroke.Thickness =
speedStroke.Parent = speedBox
()
value = (speedBox.Text)
value
speed = .(.(value), , )
speedBox.Text = (speed)
speedBox.FocusLost:(updateSpeed)
upButton = (
, ,
.(, ),
.(, ),
.(, , )
)
downButton = (
, ,
.(, ),
.(, ),
.(, , )
)
()
flying =
vertical =
flyConnection
flyConnection:()
flyConnection =
bodyVelocity
bodyVelocity:()
bodyVelocity =
bodyGyro
bodyGyro:()
bodyGyro =
humanoid humanoid.Parent
humanoid.AutoRotate =
oldAutoRotate == oldAutoRotate
humanoid.Health >
humanoid:(
.HumanoidStateType.GettingUp
)
()
flying destroyed
()
character = player.Character
character
humanoid = character:()
root = character:()
humanoid root humanoid.Health <=
oldAutoRotate = humanoid.AutoRotate
flying =
vertical =
bodyVelocity = .()
bodyVelocity.Name =
bodyVelocity.MaxForce = .(, , )
bodyVelocity.P =
bodyVelocity.Velocity = .zero
bodyVelocity.Parent = root
bodyGyro = .()
bodyGyro.Name =
bodyGyro.MaxTorque = .(, , )
bodyGyro.P =
bodyGyro.D =
bodyGyro.CFrame = root.CFrame
bodyGyro.Parent = root
humanoid.AutoRotate =
humanoid:(.HumanoidStateType.Physics)
flyConnection = RunService.RenderStepped:(()
flying root.Parent
humanoid.Parent humanoid.Health <=
()
camera = .CurrentCamera
camera
move = .zero
look = camera.CFrame.LookVector
right = camera.CFrame.RightVector
UIS:(.KeyCode.W)
move += look
UIS:(.KeyCode.S)
move -= look
UIS:(.KeyCode.D)
move += right
UIS:(.KeyCode.A)
move -= right
UIS:(.KeyCode.Space)
move += .(, , )
UIS:(.KeyCode.LeftControl)
move -= .(, , )
move += .(, vertical, )
move.Magnitude >
move = move.Unit
bodyVelocity.Velocity = move * speed
bodyGyro.CFrame = camera.CFrame
)
upButton.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
vertical =
)
downButton.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
vertical = -
)
flyButton.Activated:(startFlying)
stopButton.Activated:(stopFlying)
closeButton.Activated:(()
destroyed
destroyed =
()
dragTween
dragTween:()
gui:()
)
player.CharacterAdded:(()
()
)
Universal