I understand that if you want to have a part move along its front face, you use lookVector
, but what if I want to move it along its back face? How would I do so without changing the orientation? Is there such a possible feature? I search the entire web but found nothing.
I'm going to assume you want to change its CFrame
to go in the direction you want.
In that case, use multiplying CFrame
s. You just have to know the relative direction of the direction you want to go in. For example, for backwards, as you asked in your question, use the Positive Z direction. NOTE: CFRAME MULTIPLICATION IS NOT COMMUTATIVE. THIS MEANS: cf1 * cf2 ~= cf2 * cf1
--Make sure there is a reference to your part called "part" local studsToMove = 10 part.CFrame = part.CFrame * CFrame.new(0, 0, 1 * studsToMove)