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

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

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.

1 comment

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.

1 answer

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)

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