Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

(SOLVED) BodyAngularVelocity applying rotation to a ball in the wrong direction?

I have a ball, and upon kicking it, the ball should kick in the direction a player is facing, but spinning backward. However, instead of spinning backwards, the ball is rotating to the right, making the ball bounce to the right. I'm using the negative lookVector of the torso so it should theoretically spin in the opposite direction that the player is facing (I believe), but it's not. Here's the code:

A = Instance.new("BodyAngularVelocity")
A.AngularVelocity = (Player.Character["Torso"].CFrame.lookVector) * math.rad(720)
A.Parent = hit
game.Debris:AddItem(A, .3)

1 answer

Using RightVector instead of lookVector resolved the issue. Solved

This discussion is preserved as it was. New answers, comments, and votes are closed.