Run it
Copy the script and paste it into your executor.
-- Initialization
local cloneref = cloneref or function(...) return ... end
Players = (:())
lp = Players.LocalPlayer
flying =
bv, bav
buttons = {W = , S = , A = , D = , Moving = }
()
lp.Character
c = lp.Character
h = c:()
h flying
h.PlatformStand =
cam = .CurrentCamera
bv = .()
bav = .()
bv.Velocity, bv.MaxForce, bv.P = .(, , ), .(, , ),
bav.AngularVelocity, bav.MaxTorque, bav.P = .(, , ), .(, , ),
bv.Parent = c.Head
bav.Parent = c.Head
flying =
h.Died:(()
()
)
()
bv bv:()
bav bav:()
c = lp.Character
h = c c:()
h h.PlatformStand =
flying =
:().InputBegan:((input, GPE)
GPE
input.KeyCode == .KeyCode.F
flying
()
()
i, e (buttons)
i ~= input.KeyCode == .KeyCode[i]
buttons[i] =
buttons.Moving =
)
:().InputEnded:((input, GPE)
GPE
a =
i, e (buttons)
i ~=
input.KeyCode == .KeyCode[i]
buttons[i] =
buttons[i] a =
buttons.Moving = a
)
(vec)
vec * ((().FlySpeed ) / vec.Magnitude)
:().Heartbeat:((step)
c = (lp.Character)
flying c c.PrimaryPart
p = c.PrimaryPart.Position
cf = .CurrentCamera.CFrame
ax, ay, az = cf:()
c:(.(p.x, p.y, p.z) * .(ax, ay, az))
buttons.Moving
t = .()
buttons.W t = t + ((cf.lookVector))
buttons.S t = t - ((cf.lookVector))
buttons.A t = t - ((cf.rightVector))
buttons.D t = t + ((cf.rightVector))
c:(t * step)
)