horse.Humanoid:Move(horse.HumanoidRootPart.CFrame.LookVector)
The horse is moving backwards so I need the opposite of lookVector which I cant seem to find.
horse.Humanoid:Move(horse.HumanoidRootPart.CFrame.LookVector)
The horse is moving backwards so I need the opposite of lookVector which I cant seem to find.
lookVector works with front side aswell, depends on what /how you use it, try these articles:
local backVector = -horse.HumanoidRootPart.CFrame.LookVector
You can multiply a directional vector by minus one to get its counterpart.
The figure above contains a visual representation of my solution. Notice how the blue vector has a green counterpart and that it is mirrored (times minus one).
Thank you it worked but it seems like a new problem has occured.
The horse is going forward but the horse rig is facing behind.
Try this: (horse.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(180), 0).LookVector
LookVector * -range should get you a backwards vector
As @Brickman808 said,
It’s something very known in Vectors -
if you want to get the opposite direction of the same vector, just multiply it by -1.
Lets say you have the vector (7,4,0), and lets say his direction goes to >
then , if you want to use the same vector but for opposite direction [ <] multiply your vector by -1, and you’ll get the same vector - with an opposite direction.