local plr = game.Players.LocalPlayer local fly = false local speed = 40 game:GetService("UserInputService").InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.F then fly = not fly if fly then plr.Character.Humanoid.PlatformStand = true local bv = Instance.new("BodyVelocity") bv.Parent = plr.Character.HumanoidRootPart bv.MaxForce = Vector3.new(9e9,9e9,9e9) while fly do bv.Velocity = plr.Character.Humanoid.MoveDirection * speed wait() end bv:Destroy() plr.Character.Humanoid.PlatformStand = false end end end)