Run it
Copy the script and paste it into your executor.
Players = :()
UIS = :()
Run = :()
player = Players.LocalPlayer
char = player.Character player.CharacterAdded:()
hrp = char:()
flying =
speed =
bg, bv
move = {W=,A=,S=,D=,Up=,Down=}
gui = .(, .CoreGui)
gui.Name =
frame = .(, gui)
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(,,)
frame.BorderSizePixel =
frame.Active =
frame.Draggable =
title = .(, frame)
title.Size = .(,,,)
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(,,)
title.Font = .Font.GothamBold
title.TextSize =
toggle = .(, frame)
toggle.Size = .(,,,)
toggle.Position = .(,,,)
toggle.Text =
toggle.BackgroundColor3 = .(,,)
toggle.TextColor3 = .(,,)
toggle.Font = .Font.Gotham
toggle.TextSize =
info = .(, frame)
info.Size = .(,,,)
info.Position = .(,,,)
info.BackgroundTransparency =
info.Text =
info.TextColor3 = .(,,)
info.Font = .Font.Gotham
info.TextSize =
(txt, pos)
b = .(, gui)
b.Size = .(, , , )
b.Position = pos
b.Text = txt
b.BackgroundColor3 = .(,,)
b.TextColor3 = .(,,)
b.Font = .Font.GothamBold
b.TextSize =
b.AutoButtonColor =
b.Visible =
b
btnUp = (, .(,,,))
btnDn = (, .(,,,))
btnFwd = (, .(,,,))
btnBack = (, .(,,,))
btnLeft = (, .(,,,))
btnRight= (, .(,,,))
(v)
btnUp.Visible=v; btnDn.Visible=v; btnFwd.Visible=v
btnBack.Visible=v; btnLeft.Visible=v; btnRight.Visible=v
(k, v) move[k]=v
UIS.InputBegan:((i,gp)
gp
i.KeyCode==.KeyCode.F toggle:()
i.KeyCode==.KeyCode.W (,)
i.KeyCode==.KeyCode.A (,)
i.KeyCode==.KeyCode.S (,)
i.KeyCode==.KeyCode.D (,)
i.KeyCode==.KeyCode.Space (,)
i.KeyCode==.KeyCode.LeftControl (,)
)
UIS.InputEnded:((i)
i.KeyCode==.KeyCode.W (,)
i.KeyCode==.KeyCode.A (,)
i.KeyCode==.KeyCode.S (,)
i.KeyCode==.KeyCode.D (,)
i.KeyCode==.KeyCode.Space (,)
i.KeyCode==.KeyCode.LeftControl (,)
)
(btn, key)
btn.MouseButton1Down:(() (key,) )
btn.MouseButton1Up:(() (key,) )
(btnUp,); (btnDn,)
(btnFwd,); (btnBack,)
(btnLeft,); (btnRight,)
rsConn
()
bg = .(, hrp)
bg.P =
bg.MaxTorque = .(,,)
bv = .(, hrp)
bv.MaxForce = .(,,)
rsConn = Run.RenderStepped:(()
cam = .CurrentCamera
bg.CFrame = cam.CFrame
v = .zero
move.W v += cam.CFrame.LookVector
move.S v -= cam.CFrame.LookVector
move.A v -= cam.CFrame.RightVector
move.D v += cam.CFrame.RightVector
move.Up v += .(,,)
move.Down v -= .(,,)
bv.Velocity = (v.Magnitude> v.Unit v) * speed
)
()
rsConn rsConn:()
bg bg:()
bv bv:()
toggle.MouseButton1Click:(()
flying = flying
toggle.Text = flying
(flying)
flying () ()
)
?

Universal