I have a fly script here in a Module script. I'm using Cmdr. Everything about the Cmdr and the module works, it's just the fly script that doesn't work. Here is my script:
return function (_, players) for _, player in pairs(players) do local char = player.Character local hum = char:WaitForChild("Humanoid") local Torso = char:WaitForChild("Torso") local Mouse = player:GetMouse() local debounce = false local BV = Instance.new("BodyVelocity",Torso) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) while debounce == true do BV.Velocity = Mouse.Hit.lookVector*100 wait() end end return ( "%d players have been given the ability to fly."):format(#players) end
Whenever I run the fly command I just start infinitely going up pretty slowly.
You're using bodyforce at low velocity, try changing the velocity to a higher number.