Run it
Copy the script and paste it into your executor.
-- Made By l4qic
local player = game.Players.LocalPlayer
local character = player.Character player.CharacterAdded:()
humanoid = character:()
camera = .CurrentCamera
UIS = :()
RunService = :()
flying =
speed =
acceleration =
currentVelocity = .(, , )
bodyVelocity
bodyGyro
()
flying
flying =
humanoid.PlatformStand =
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = character:()
bodyGyro = .()
bodyGyro.MaxTorque = .(, , )
bodyGyro.P =
bodyGyro.D =
bodyGyro.Parent = character:()
()
flying
flying =
bodyVelocity bodyVelocity:()
bodyGyro bodyGyro:()
humanoid.PlatformStand =
currentVelocity = .(, , )
(dt)
flying bodyVelocity bodyGyro
moveDirection = .(, , )
UIS:(.KeyCode.W) moveDirection = moveDirection + camera.CFrame.LookVector
UIS:(.KeyCode.S) moveDirection = moveDirection - camera.CFrame.LookVector
UIS:(.KeyCode.A) moveDirection = moveDirection - camera.CFrame.RightVector
UIS:(.KeyCode.D) moveDirection = moveDirection + camera.CFrame.RightVector
UIS:(.KeyCode.Space) moveDirection = moveDirection + .(, , )
UIS:(.KeyCode.LeftControl) moveDirection = moveDirection - .(, , )
moveDirection.Magnitude >
moveDirection = moveDirection.Unit
currentVelocity = currentVelocity:(moveDirection * speed, acceleration * dt)
currentVelocity = currentVelocity:(.(, , ), * dt * )
bodyVelocity.Velocity = currentVelocity
rootPart = character:()
rootPart
bodyGyro.CFrame = .(rootPart.Position, rootPart.Position + camera.CFrame.LookVector)
UIS.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.F
flying
()
()
)
RunService.RenderStepped:((dt)
(dt)
)
character = newChar
humanoid = newChar:()
flying
()
)
Universal