local flyVelocity = Vector3.new(0, 0, 0) RunService.RenderStepped:Connect(function() flyVelocity = Vector3.new(0, 0, 0)
-- Fly local function fly() humanoid.WalkSpeed = 0 humanoid.JumpPower = 0 humanoid.Jump = true
if player:KeyboardInput.IsKeyDown(Enum.KeyCode.W) then flyVelocity = flyVelocity + character.HumanoidRootPart.CFrame.LookVector * 0.1 end
-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService")
if player:KeyboardInput.IsKeyDown(Enum.KeyCode.A) then flyVelocity = flyVelocity - character.HumanoidRootPart.CFrame.RightVector * 0.1 end