How would i get the world direction out the direction the player is facing?

Hey so I’m trying to get the X, Y, Z direction of the WORLD, out of the players facing direction. Here is my code:

local vector = Vector3.new(0, 0, 5)
		local position1 = hrp.Position
		local position2 = position1 + vector
		
-- in this situation, direction would be 0, 0, 5, now say i wanted to have the back of a player be the ultimate direction, what would i have to do
		local direction = position2 - position1

hrp.CFrame.LookVector will do the job i figured it out myself lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.