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

CFrame.lookVector messing with x,y,0 instead of 0,y,z?

Asked by 5 years ago

So I have created doors that are functional, I have a gate and a door, gate works perfectly fine, when the door uses the same script but configured it breaks by going forward and backwards instead of left and right.

0
That's not really a question tbh, and there's not enough info here to know what's wrong--if it's something about the part orientations, attachment alignments, how the doors are oriented in the world, etc... more detail is needed. EmilyBendsSpace 1025 — 5y

1 answer

Log in to vote
0
Answered by
Ankur_007 290 Moderation Voter
5 years ago

Your gate is likely oriented different than the door. Since LookVector works with local axes and CFrames, you'll have to make sure they are both rotated in the same manner (press Ctrl + L to see local axes in studio)

Ad

Answer this question