Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

unable to set lookvector on bodyangularvelocity?

Asked by 5 years ago
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.

0
try changing where you put RightVector to LookVector. Probably wont work as ive never worked with look vectors Protogen_Dev 268 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Resolved

Ad

Answer this question