-- Made By zack;#6969
-- Instances:
local FlyScript = [Link]("ScreenGui")
local Gradient = [Link]("Frame")
local UIGradient = [Link]("UIGradient")
local UICorner = [Link]("UICorner")
local Button = [Link]("TextButton")
local Shadow = [Link]("Frame")
local TextLabel = [Link]("TextLabel")
--Properties:
[Link] = "FlyScript"
[Link] = [Link]:WaitForChild("PlayerGui")
[Link] = false
[Link] = "Gradient"
[Link] = FlyScript
Gradient.BackgroundColor3 = [Link](255, 255, 255)
Gradient.BorderColor3 = [Link](27, 42, 53)
[Link] = 0
[Link] = [Link](0.0199062824, 0, 0.781767964, 0)
[Link] = [Link](0, 231, 0, 81)
[Link] = [Link]{[Link](0.00,
[Link](57, 104, 252)), [Link](1.00, [Link](51,
68, 175))}
[Link] = Gradient
[Link] = [Link](0.0399999991, 0)
[Link] = Gradient
[Link] = "Button"
[Link] = Gradient
Button.BackgroundColor3 = [Link](77, 100, 150)
[Link] = 0
[Link] = [Link](0.0921155736, 0, 0.238353431, 0)
[Link] = [Link](0, 187, 0, 41)
[Link] = 2
[Link] = [Link]
[Link] = ""
Button.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 14.000
[Link] = true
[Link] = "Shadow"
[Link] = Button
Shadow.BackgroundColor3 = [Link](53, 69, 103)
[Link] = 0
[Link] = [Link](1, 0, 1, 4)
[Link] = Gradient
[Link] = [Link](0.5, 0.5)
TextLabel.BackgroundColor3 = [Link](255, 255, 255)
[Link] = 1.000
TextLabel.BorderColor3 = [Link](27, 42, 53)
[Link] = 0
[Link] = [Link](0.487012982, 0, 0.5, 0)
[Link] = [Link](0.878787875, -20, 0.728395045, -20)
[Link] = 2
[Link] = [Link]
[Link] = "Fly"
TextLabel.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = 14.000
[Link] = true
Button.MouseButton1Down:connect(function()
repeat wait()
until [Link] and [Link] and
[Link]:findFirstChild("Torso") and
[Link]:findFirstChild("Humanoid")
local mouse = [Link]:GetMouse()
repeat wait() until mouse
local plr = [Link]
local torso = [Link]
local flying = true
local deb = true
local ctrl = {f = 0, b = 0, l = 0, r = 0}
local lastctrl = {f = 0, b = 0, l = 0, r = 0}
local maxspeed = 50
local speed = 0
function Fly()
local bg = [Link]("BodyGyro", torso)
bg.P = 9e4
[Link] = [Link](9e9, 9e9, 9e9)
[Link] = [Link]
local bv = [Link]("BodyVelocity", torso)
[Link] = [Link](0,0.1,0)
[Link] = [Link](9e9, 9e9, 9e9)
repeat wait()
[Link] = true
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
speed = speed+.5+(speed/maxspeed)
if speed > maxspeed then
speed = maxspeed
end
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and
speed ~= 0 then
speed = speed-1
if speed < 0 then
speed = 0
end
end
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
[Link] =
(([Link] * (ctrl.f+ctrl.b)) +
(([Link] * [Link](ctrl.l+ctrl.r,
(ctrl.f+ctrl.b)*.2,0).p) - [Link].p))*speed
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and
speed ~= 0 then
[Link] =
(([Link] *
(lastctrl.f+lastctrl.b)) + (([Link] *
[Link](lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) -
[Link].p))*speed
else
[Link] = [Link](0,0.1,0)
end
[Link] = [Link] *
[Link](-[Link]((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
until not flying
ctrl = {f = 0, b = 0, l = 0, r = 0}
lastctrl = {f = 0, b = 0, l = 0, r = 0}
speed = 0
bg:Destroy()
bv:Destroy()
[Link] = false
end
[Link]:connect(function(key)
if key:lower() == "e" then
if flying then flying = false
else
flying = true
Fly()
end
elseif key:lower() == "w" then
ctrl.f = 1
elseif key:lower() == "s" then
ctrl.b = -1
elseif key:lower() == "a" then
ctrl.l = -1
elseif key:lower() == "d" then
ctrl.r = 1
end
end)
[Link]:connect(function(key)
if key:lower() == "w" then
ctrl.f = 0
elseif key:lower() == "s" then
ctrl.b = 0
elseif key:lower() == "a" then
ctrl.l = 0
elseif key:lower() == "d" then
ctrl.r = 0
end
end)
Fly()
end)
-- Scripts:
local function LHMZZV_fake_script() -- [Link]
local script = [Link]('Script', FlyScript)
frame = [Link] -- Take out {}s, and put name of frame
[Link] = true
[Link] = true
[Link] = true
end
[Link](LHMZZV_fake_script)()