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 1 year ago
Edited by Xapelize 1 year 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 1 year ago

Turns out I was able to simply just do this:

owner.HumanoidRootPart.CFrame.RightVector
Ad

Answer this question