while true do wait() local vel = script.Parent.Parent.Up vel.MaxTorque = Vector3.new(20000,0,0) vel.AngularVelocity = script.Parent.Parent.CFrame.RightVector * math.rad(5) end
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.