Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
StarterGui = :()
lp = Players.LocalPlayer
isMobile = UserInputService.TouchEnabled UserInputService.KeyboardEnabled
speeds =
flying =
goingUp =
goingDown =
spaceHeld =
ctrlHeld =
bv =
gy =
flyConn =
parent = lp:()
(()
gethui
parent = ()
)
parent:()
parent.FlyGuiV4:()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.ZIndexBehavior = .ZIndexBehavior.Sibling
gui.DisplayOrder =
gui.Parent = parent
main = .()
main.Active =
main.BackgroundColor3 = .(, , )
main.BorderSizePixel =
main.Position = .(, -, , )
main.Size = .(, , , )
main.Parent = gui
.(, main).CornerRadius = .(, )
stroke = .()
stroke.Color = .(, , )
stroke.Thickness =
stroke.Parent = main
titlebar = .()
titlebar.Active =
titlebar.BackgroundColor3 = .(, , )
titlebar.BorderSizePixel =
titlebar.Position = .(, , , )
titlebar.Size = .(, -, , )
titlebar.Parent = main
.(, titlebar).CornerRadius = .(, )
title = .()
title.BackgroundTransparency =
title.Position = .(, , , )
title.Size = .(, , , )
title.Font = .Font.SourceSansBold
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.TextXAlignment = .TextXAlignment.Left
title.Parent = titlebar
closebtn = .()
closebtn.BackgroundColor3 = .(, , )
closebtn.BorderSizePixel =
closebtn.Position = .(, -, , )
closebtn.Size = .(, , , )
closebtn.Font = .Font.SourceSansBold
closebtn.Text =
closebtn.TextColor3 = .(, , )
closebtn.TextSize =
closebtn.Parent = main
.(, closebtn).CornerRadius = .(, )
minbtn = .()
minbtn.BackgroundColor3 = .(, , )
minbtn.BorderSizePixel =
minbtn.Position = .(, -, , )
minbtn.Size = .(, , , )
minbtn.Font = .Font.SourceSansBold
minbtn.Text =
minbtn.TextColor3 = .(, , )
minbtn.TextSize =
minbtn.Parent = main
.(, minbtn).CornerRadius = .(, )
flybtn = .()
flybtn.BackgroundColor3 = .(, , )
flybtn.BorderSizePixel =
flybtn.Position = .(, , , )
flybtn.Size = .(, , , )
flybtn.Font = .Font.SourceSansBold
flybtn.Text = isMobile
flybtn.TextColor3 = .(, , )
flybtn.TextSize =
flybtn.Parent = main
.(, flybtn).CornerRadius = .(, )
upbtn = .()
upbtn.BackgroundColor3 = .(, , )
upbtn.BorderSizePixel =
upbtn.Position = .(, , , )
upbtn.Size = .(, , , )
upbtn.Font = .Font.SourceSansBold
upbtn.Text =
upbtn.TextColor3 = .(, , )
upbtn.TextSize =
upbtn.Parent = main
.(, upbtn).CornerRadius = .(, )
downbtn = .()
downbtn.BackgroundColor3 = .(, , )
downbtn.BorderSizePixel =
downbtn.Position = .(, , , )
downbtn.Size = .(, , , )
downbtn.Font = .Font.SourceSansBold
downbtn.Text =
downbtn.TextColor3 = .(, , )
downbtn.TextSize =
downbtn.Parent = main
.(, downbtn).CornerRadius = .(, )
minusbtn = .()
minusbtn.BackgroundColor3 = .(, , )
minusbtn.BorderSizePixel =
minusbtn.Position = .(, , , )
minusbtn.Size = .(, , , )
minusbtn.Font = .Font.SourceSansBold
minusbtn.Text =
minusbtn.TextColor3 = .(, , )
minusbtn.TextSize =
minusbtn.Parent = main
.(, minusbtn).CornerRadius = .(, )
speedlab = .()
speedlab.BackgroundColor3 = .(, , )
speedlab.BorderSizePixel =
speedlab.Position = .(, , , )
speedlab.Size = .(, , , )
speedlab.Font = .Font.SourceSansBold
speedlab.Text =
speedlab.TextColor3 = .(, , )
speedlab.TextScaled =
speedlab.Parent = main
.(, speedlab).CornerRadius = .(, )
plusbtn = .()
plusbtn.BackgroundColor3 = .(, , )
plusbtn.BorderSizePixel =
plusbtn.Position = .(, , , )
plusbtn.Size = .(, , , )
plusbtn.Font = .Font.SourceSansBold
plusbtn.Text =
plusbtn.TextColor3 = .(, , )
plusbtn.TextSize =
plusbtn.Parent = main
.(, plusbtn).CornerRadius = .(, )
()
flying
flybtn.Text =
flybtn.BackgroundColor3 = .(, , )
flybtn.Text = isMobile
flybtn.BackgroundColor3 = .(, , )
()
flying =
goingUp =
goingDown =
flyConn
flyConn:()
flyConn =
gy gy:() gy =
bv bv:() bv =
c = lp.Character
hum = c c:()
hum
hum.PlatformStand =
hum:(.HumanoidStateType.Climbing, )
hum:(.HumanoidStateType.FallingDown, )
hum:(.HumanoidStateType.Ragdoll, )
hum:(.HumanoidStateType.Swimming, )
(()
hum:(.HumanoidStateType.GettingUp)
)
anim = c c:()
anim anim.Disabled =
()
()
c = lp.Character
hum = c c:()
root = c (c:() c:())
flying c hum root hum.Health <=
flying =
gy = .()
gy.P =
gy.MaxTorque = .(, , )
gy.CFrame = root.CFrame
gy.Parent = root
bv = .()
bv.MaxForce = .(, , )
bv.Velocity = .(, , )
bv.Parent = root
hum.PlatformStand =
hum:(.HumanoidStateType.Climbing, )
hum:(.HumanoidStateType.FallingDown, )
hum:(.HumanoidStateType.Ragdoll, )
hum:(.HumanoidStateType.Swimming, )
anim = c:()
anim anim.Disabled =
_, t (hum:())
t:()
()
flyConn = RunService.RenderStepped:(()
ch = lp.Character
h = ch ch:()
r = ch (ch:() ch:())
h r h.Health <=
bv.Parent bv.Parent ~= r
bv.Parent = r
gy.Parent gy.Parent ~= r
gy.Parent = r
vy =
goingUp spaceHeld vy = * speeds
goingDown ctrlHeld vy = -( * speeds)
bv.Velocity = h.MoveDirection * ( * speeds) + .(, vy, )
cam = .CurrentCamera
cam
lv = cam.CFrame.LookVector
flat = .(lv.X, , lv.Z)
flat.Magnitude >
gy.CFrame = .(r.Position, r.Position + flat.Unit)
)
()
flying () ()
flybtn.Activated:(toggle)
isMobile
UserInputService.InputBegan:((input, gp)
gp
input.KeyCode == .KeyCode.F
()
input.KeyCode == .KeyCode.Space
spaceHeld =
input.KeyCode == .KeyCode.LeftControl
ctrlHeld =
)
UserInputService.InputEnded:((input)
input.KeyCode == .KeyCode.Space
spaceHeld =
input.KeyCode == .KeyCode.LeftControl
ctrlHeld =
)
upbtn.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
goingUp =
)
downbtn.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
goingDown =
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
goingUp =
goingDown =
)
plusbtn.Activated:(()
speeds >=
speedlab.Text =
.(, ()
speedlab.Text = .. speeds
)
speeds = speeds +
speedlab.Text = .. speeds
)
minusbtn.Activated:(()
speeds <=
speedlab.Text =
.(, ()
speedlab.Text = .. speeds
)
speeds = speeds -
speedlab.Text = .. speeds
)
closebtn.Activated:(()
()
gui:()
)
minimized =
minbtn.Activated:(()
minimized = minimized
flybtn.Visible = minimized
upbtn.Visible = minimized
downbtn.Visible = minimized
minusbtn.Visible = minimized
speedlab.Visible = minimized
plusbtn.Visible = minimized
minbtn.Text = minimized
minimized
main.Size = .(, , , )
main.Size = .(, , , )
)
dragging =
dragStart, startPos
titlebar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = main.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
main.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
)
(c)
hum = c:(, )
hum
hum.Died:(stopFly)
lp.Character
.(bindHum, lp.Character)
lp.CharacterAdded:(bindHum)
(()
StarterGui:(, {
Title = ,
Text = isMobile ,
Duration =
})
)UNIVERSAL FLY open source

Universal