Run it
Copy the script and paste it into your executor.
local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local flying = false
local speed = 500
local HRP
Humanoid
move = {
forward = ,
back = ,
left = ,
right = ,
up = ,
down =
}
(char)
HRP = char:()
Humanoid = char:()
player.Character
(player.Character)
player.CharacterAdded:((char)
(char)
)
UIS.InputBegan:((input, gpe)
gpe
input.KeyCode == .KeyCode.E
flying = flying
flying
Humanoid.PlatformStand =
()
Humanoid.PlatformStand =
()
input.KeyCode == .KeyCode.W move.forward =
input.KeyCode == .KeyCode.S move.back =
input.KeyCode == .KeyCode.A move.left =
input.KeyCode == .KeyCode.D move.right =
input.KeyCode == .KeyCode.Space move.up =
input.KeyCode == .KeyCode.LeftControl move.down =
)
UIS.InputEnded:((input)
input.KeyCode == .KeyCode.W move.forward =
input.KeyCode == .KeyCode.S move.back =
input.KeyCode == .KeyCode.A move.left =
input.KeyCode == .KeyCode.D move.right =
input.KeyCode == .KeyCode.Space move.up =
input.KeyCode == .KeyCode.LeftControl move.down =
)
RunService.RenderStepped:(()
flying HRP
cam = .CurrentCamera
direction = .zero
move.forward direction += cam.CFrame.LookVector
move.back direction -= cam.CFrame.LookVector
move.left direction -= cam.CFrame.RightVector
move.right direction += cam.CFrame.RightVector
move.up direction += .(,,)
move.down direction -= .(,,)
direction.Magnitude >
HRP.Velocity = direction.Unit * speed
HRP.Velocity = .zero
HRP.CFrame = .(HRP.Position, HRP.Position + cam.CFrame.LookVector)
)E to fly

Universal