Run it
Copy the script and paste it into your executor.
G2L = {};
G2L[] = .(, .CoreGui);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .ScreenInsets.DeviceSafeInsets;
G2L[][] = ;
G2L[][] = .ZIndexBehavior.Sibling;
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, );
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .TextXAlignment.Left;
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Regular, .FontStyle.Normal);
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .TextXAlignment.Left;
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Regular, .FontStyle.Normal);
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, );
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , , -);
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .TextXAlignment.Left;
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Regular, .FontStyle.Normal);
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .TextXAlignment.Left;
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Regular, .FontStyle.Normal);
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[] = .(, G2L[]);
G2L[][] = .(, );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = ;
G2L[][] = .TextXAlignment.Left;
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Regular, .FontStyle.Normal);
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , );
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , , );
G2L[] = .(, G2L[]);
G2L[] = .(, G2L[]);
G2L[][] = ;
G2L[][] = .TextXAlignment.Right;
G2L[][] = ;
G2L[][] = ;
G2L[][] = .(, , );
G2L[][] = .(, , );
G2L[][] = Font.(, .FontWeight.Bold, .FontStyle.Normal);
G2L[][] = ;
G2L[][] = .(, , , );
G2L[][] = .(, , , );
G2L[][] = ;
G2L[][] = ;
()
= G2L[];
.Parent.DisplayOrder =
;
.(C_2);
()
= G2L[];
(() (:())(, , ) )
;
.(C_3);
()
= G2L[];
Players = :()
UserInputService = :()
TweenService = :()
RunService = :()
GuiService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
screenGui = .Parent :: ScreenGui
main = screenGui:() :: Frame
sliderFrame = main:() :: Frame
sliderKnob = sliderFrame:() :: Frame
fillBar = sliderFrame:() :: Frame
toggleFrame = main:() :: Frame
toggleKnob = (toggleFrame:() toggleFrame:()) :: Frame
upBtn = main:() :: Frame
downBtn = main:() :: Frame
speedInput = main:() :: GuiObject
COLOR_BG_NORMAL = .(, , )
COLOR_BG_HOVER = .(, , )
COLOR_BG_PRESS = .(, , )
COLOR_TOGGLE_ON = .(, , )
COLOR_TOGGLE_OFF = .(, , )
isFlying =
currentSpeed =
minSpeed =
maxSpeed =
baseStudsPerSec =
isDraggingWindow =
isDraggingSlider =
isUpPressed =
isDownPressed =
dragStart = .zero
frameStartPos = .()
character: Model? =
humanoid: Humanoid? =
hrp: BasePart? =
bodyVelocity: BodyVelocity? =
bodyGyro: BodyGyro? =
currentVelocity = .zero
startFlight: () -> ()
stopFlight: () -> ()
(guiObject: GuiObject, mousePos: | ): boolean
pos = guiObject.AbsolutePosition
size = guiObject.AbsoluteSize
mousePos.X >= pos.X mousePos.X <= pos.X + size.X
mousePos.Y >= pos.Y mousePos.Y <= pos.Y + size.Y
(pos: ):
vp = camera.ViewportSize
frameSize = main.AbsoluteSize
minX = frameSize.X *
maxX = .(minX, vp.X - (frameSize.X * ))
minY = frameSize.Y * + GuiService:().Y
maxY = .(minY, vp.Y - (frameSize.Y * ))
absX = (pos.X.Scale * vp.X) + pos.X.Offset
absY = (pos.Y.Scale * vp.Y) + pos.Y.Offset
clampedX = .(absX, minX, maxX)
clampedY = .(absY, minY, maxY)
.(, clampedX, , clampedY)
(speedVal: number, animate: boolean)
trackWidth = sliderFrame.AbsoluteSize.X
knobWidth = sliderKnob.AbsoluteSize.X
trackWidth <= trackWidth =
knobWidth <= knobWidth =
travel = trackWidth - knobWidth
alpha = .((speedVal - minSpeed) / (maxSpeed - minSpeed), , )
targetX = alpha * travel
targetFillWidth = .(targetX + knobWidth, , trackWidth)
displaySpeed = .(speedVal * ) /
displaySpeed == .(displaySpeed)
speedInput:() speedInput:()
(speedInput :: any).Text = (.(displaySpeed))
speedInput:() speedInput:()
(speedInput :: any).Text = .(, displaySpeed)
animate
tInfo = TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out)
TweenService:(sliderKnob, tInfo, {
Position = .(, targetX, , -sliderKnob.AbsoluteSize.Y * )
}):()
TweenService:(fillBar, tInfo, {
Size = .(, targetFillWidth, , )
}):()
sliderKnob.Position = .(, targetX, , -sliderKnob.AbsoluteSize.Y * )
fillBar.Size = .(, targetFillWidth, , )
(mouseX: number)
trackPos = sliderFrame.AbsolutePosition.X
trackWidth = sliderFrame.AbsoluteSize.X
knobWidth = sliderKnob.AbsoluteSize.X
travel = trackWidth - knobWidth
travel <=
relX = mouseX - trackPos - (knobWidth * )
alpha = .(relX / travel, , )
rawVal = minSpeed + alpha * (maxSpeed - minSpeed)
currentSpeed = .(rawVal)
targetX = alpha * travel
sliderKnob.Position = .(, targetX, , -sliderKnob.AbsoluteSize.Y * )
fillBar.Size = .(, .(targetX + knobWidth, , trackWidth), , )
speedInput:() speedInput:()
(speedInput :: any).Text = (currentSpeed)
sliderFrame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isDraggingSlider =
(input.Position.X)
)
sliderKnob.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isDraggingSlider =
(input.Position.X)
)
sliderKnob.MouseEnter:(()
isDraggingSlider
TweenService:(sliderKnob, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = .(, , )
}):()
)
sliderKnob.MouseLeave:(()
isDraggingSlider
TweenService:(sliderKnob, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = .(, , )
}):()
)
speedInput:()
speedInput.FocusLost:(()
num = (speedInput.Text)
num num >
currentSpeed = .(num, , )
(.(currentSpeed, minSpeed, maxSpeed), )
speedInput.Text = (currentSpeed)
(currentSpeed, )
)
(enable: boolean)
isFlying == enable
isFlying = enable
tInfo = TweenInfo.(, .EasingStyle.Quart, .EasingDirection.Out)
isFlying
TweenService:(toggleFrame, tInfo, {
BackgroundColor3 = COLOR_TOGGLE_ON
}):()
TweenService:(toggleKnob, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Position = .(, -, , ),
Size = .(, , , )
}):()
.(, ()
isFlying
TweenService:(toggleKnob, TweenInfo.(, .EasingStyle.Back, .EasingDirection.Out), {
Position = .(, -, , ),
Size = .(, , , )
}):()
)
()
TweenService:(toggleFrame, tInfo, {
BackgroundColor3 = COLOR_TOGGLE_OFF
}):()
TweenService:(toggleKnob, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Position = .(, , , ),
Size = .(, , , )
}):()
.(, ()
isFlying
TweenService:(toggleKnob, TweenInfo.(, .EasingStyle.Back, .EasingDirection.Out), {
Position = .(, , , ),
Size = .(, , , )
}):()
)
()
toggleFrame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
( isFlying)
)
(btn: GuiObject, onHoldStart: () -> (), onHoldEnd: () -> ())
scale = btn:()
scale
scale = .()
scale.Parent = btn
btn.MouseEnter:(()
TweenService:(btn, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = COLOR_BG_HOVER
}):()
)
btn.MouseLeave:(()
TweenService:(btn, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = COLOR_BG_NORMAL
}):()
()
)
btn.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
TweenService:(scale, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Scale =
}):()
TweenService:(btn, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = COLOR_BG_PRESS
}):()
isFlying
()
()
)
btn.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
TweenService:(scale, TweenInfo.(, .EasingStyle.Back, .EasingDirection.Out), {
Scale =
}):()
TweenService:(btn, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
BackgroundColor3 = (btn, input.Position) COLOR_BG_HOVER COLOR_BG_NORMAL
}):()
()
)
(upBtn, ()
isUpPressed =
, ()
isUpPressed =
)
(downBtn, ()
isDownPressed =
, ()
isDownPressed =
)
main.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
pos = input.Position
(sliderFrame, pos) (toggleFrame, pos)
(upBtn, pos) (downBtn, pos)
(speedInput, pos)
isDraggingWindow =
dragStart = input.Position
frameStartPos = main.Position
)
UserInputService.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
isDraggingWindow
delta = input.Position - dragStart
target = .(
frameStartPos.X.Scale, frameStartPos.X.Offset + delta.X,
frameStartPos.Y.Scale, frameStartPos.Y.Offset + delta.Y
)
TweenService:(main, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Position = target
}):()
isDraggingSlider
(input.Position.X)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isDraggingWindow
isDraggingWindow =
clamped = (main.Position)
TweenService:(main, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Position = clamped
}):()
isDraggingSlider
isDraggingSlider =
(currentSpeed, )
)
()
bodyVelocity bodyVelocity.Parent
bodyVelocity:()
bodyVelocity =
bodyGyro bodyGyro.Parent
bodyGyro:()
bodyGyro =
()
character = player.Character
character
humanoid = character:()
hrp = character:() :: BasePart?
humanoid hrp
()
humanoid.PlatformStand =
humanoid:(.HumanoidStateType.Physics)
bv = .()
bv.Name =
bv.MaxForce = .(, , )
bv.Velocity = .zero
bv.Parent = hrp
bodyVelocity = bv
bg = .()
bg.Name =
bg.MaxTorque = .(, , )
bg.P =
bg.D =
bg.CFrame = hrp.CFrame
bg.Parent = hrp
bodyGyro = bg
currentVelocity = .zero
()
()
humanoid humanoid.Parent
humanoid.PlatformStand =
humanoid:(.HumanoidStateType.Running)
currentVelocity = .zero
RunService.RenderStepped:((dt)
isFlying
character humanoid hrp hrp.Parent
fwd =
side =
vert =
UserInputService:()
UserInputService:(.KeyCode.W) UserInputService:(.KeyCode.Up)
fwd = fwd +
UserInputService:(.KeyCode.S) UserInputService:(.KeyCode.Down)
fwd = fwd -
UserInputService:(.KeyCode.D) UserInputService:(.KeyCode.Right)
side = side +
UserInputService:(.KeyCode.A) UserInputService:(.KeyCode.Left)
side = side -
UserInputService:(.KeyCode.Space) UserInputService:(.KeyCode.E)
vert = vert +
UserInputService:(.KeyCode.LeftShift) UserInputService:(.KeyCode.LeftControl) UserInputService:(.KeyCode.Q)
vert = vert -
isUpPressed vert = vert +
isDownPressed vert = vert -
camCF = camera.CFrame
rawLook = camCF.LookVector
rawRight = camCF.RightVector
flatLook = .(rawLook.X, , rawLook.Z)
flatLook.Magnitude >
flatLook = flatLook.Unit
flatLook = hrp.CFrame.LookVector
flatRight = .(rawRight.X, , rawRight.Z)
flatRight.Magnitude >
flatRight = flatRight.Unit
flatRight = hrp.CFrame.RightVector
moveDir = .zero
fwd ~=
moveDir = moveDir + (flatLook * fwd)
side ~=
moveDir = moveDir + (flatRight * side)
vert ~=
moveDir = moveDir + (.(, , ) * vert)
fwd == side == UserInputService.TouchEnabled UserInputService.MouseEnabled
humanoid.MoveDirection.Magnitude >
moveDir = moveDir + humanoid.MoveDirection
maxSpeedStuds = currentSpeed * baseStudsPerSec
targetVel = .zero
moveDir.Magnitude >
targetVel = moveDir.Unit * maxSpeedStuds
accel = (targetVel.Magnitude > )
currentVelocity = currentVelocity:(targetVel, .(dt * accel, , ))
currentVelocity.Magnitude < targetVel.Magnitude ==
currentVelocity = .zero
bodyVelocity bodyVelocity.Parent
bodyVelocity.Velocity = currentVelocity
bodyGyro bodyGyro.Parent
baseCF = .(hrp.Position, hrp.Position + flatLook)
forwardRatio = .(currentVelocity:(flatLook) / .(maxSpeedStuds, ), -, )
pitch = -.() * forwardRatio
strafeRatio = .(currentVelocity:(flatRight) / .(maxSpeedStuds, ), -, )
roll = -.() * strafeRatio
targetCF = baseCF * .(pitch, , roll)
bodyGyro.CFrame = bodyGyro.CFrame:(targetCF, .(dt * , , ))
)
(newChar: Model)
character = newChar
humanoid = newChar:() :: Humanoid
hrp = newChar:() :: BasePart
isFlying
()
humanoid.Died:(()
()
isFlying
()
)
player.Character
(player.Character)
player.CharacterAdded:(onCharacterAdded)
(currentSpeed, )
toggleFrame.BackgroundColor3 = COLOR_TOGGLE_OFF
toggleKnob.Position = .(, , , )
;
.(C_4);
()
= G2L[];
()
;
.(C_5);
G2L[], ;Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: scriptblox.com, discord.gg.
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.

Universal