unable to set lookvector on bodyangularvelocity?
4 | local vel = script.Parent.Parent.Up |
5 | vel.MaxTorque = Vector 3. new( 20000 , 0 , 0 ) |
6 | vel.AngularVelocity = script.Parent.Parent.CFrame.RightVector * math.rad( 5 ) |
I have a control system that turns this script on to rotate a part. but im having trouble getting the part to rotate on the right axis when the part's lookvector changes. the part rotates up on the X-Axis but it always rotates on that axis, and I need it to rotate up no matter what direction the part faces. I read on some wiki pages to use math.rad but this did not help me.