Run it
Copy the script and paste it into your executor.
local player = game:GetService("Players").LocalPlayer
local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local flying = false
speed =
toggleKey = .KeyCode.F
bodyVelocity
bodyGyro
()
flying = flying
character = player.Character
character
humanoid = character:()
rootPart = character:()
humanoid rootPart
flying
humanoid.PlatformStand =
bodyVelocity = .()
bodyVelocity.Velocity = .(,,)
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Parent = rootPart
bodyGyro = .()
bodyGyro.MaxTorque = .(, , )
bodyGyro.P =
bodyGyro.D =
bodyGyro.CFrame = rootPart.CFrame
bodyGyro.Parent = rootPart
runService:(, , ()
flying character rootPart
moveDirection = .(,,)
camera = .CurrentCamera
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 * speed
bodyVelocity.Velocity = moveDirection
bodyGyro.CFrame = camera.CFrame
)
humanoid.PlatformStand =
bodyVelocity
bodyVelocity:()
bodyVelocity =
bodyGyro
bodyGyro:()
bodyGyro =
runService:()
uis.InputBegan:((input)
input.KeyCode == toggleKey
()
)
player.CharacterAdded:(()
flying
.()
()
)city boy