the error is: bad argument #2, to ? (Vector3 expected, got number)
local tgt1 = m.Hit.p v.velocity = tgt1*100
Other things you should know before you call me out on it: 1: I left out most of the script on purpose, and left these two lines as they are linked as a problem. And I know that everything is defined. v is a bodyvelocity object m is the mouse of the player
I think it is because Hit is nil for a brief moment at some point. This can happen if the player looks into the sky or anywhere there are no parts. To fix this, try this:
local target = m.Hit if target ~= nil then local tgt1 = target.p v.velocity = tgt1*100 end
Instead try Vector3.new(100,100,100)
. Reading from what the output said, 100 is a bad argument so try using a Vector3.