Velocity doesn't work properly

BV = BodyVelocity

i made a football go backwards and then it’s supposed to go up or down depending on where your mouse is at, (height = mouse.Hit.Y)

but instead of doing that it does the opposite of what i wanted to achieve which is:
when i look up the ball stays on the ground
and when i look down the ball goes up in the air

does anyone know how i can fix this and make it work properly?

1 Like

It’s because you’re multiplying the look vector by a negative number (-65), which essentially inverts it, causing it to go in completely opposite direction

i figured that out but i don’t know how to fix it

Removing the “-” in front of the 65 should do the trick

yeah but i need it to be negative so that the ball can go backwards

Then multiply it by a vector, try something like this:

mouseHit.LookVector * Vector3.new(-65,65,-65) + Vector3.new(0,height,0)

1 Like

thank you, i don’t know how i didn’t think of that one lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.