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.

6 comments
What do you mean? the 100? I made it 10000 and nothing happened.
Then try changing bodyforce to humanoidrootpart ?
Huh? Sorry, I'm pretty new to working with Bodyforces and stuff.
I moved the BodyVelocity to the humanoid rootpart if that's what you mean. It still didn't work.
Oh I'm sorry, it is pretty late for me and I can't think for an answer
Okay.