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

[SOLVED] How do I get the position left/right to the lookVector of a player's HumanoidRootPart?

Asked by 2 years ago
Edited by Xapelize 2 years ago

Right now I'm using this:

local pos = owner.HumanoidRootPart.CFrame + (owner.HumanoidRootPart.CFrame.lookVector * -6) to get the position behind the player using the lookVector of the HumanoidRootPart.

I am trying to figure out how I would get the right or left of the lookVector too

1 answer

Log in to vote
1
Answered by 2 years ago

Turns out I was able to simply just do this:

owner.HumanoidRootPart.CFrame.RightVector
Ad

Answer this question