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

unable to set lookvector on bodyangularvelocity?

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.

1 comment

0

try changing where you put RightVector to LookVector. Probably wont work as ive never worked with look vectors

1 answer

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