VixYzs
(Vix)
#1
In the following video I have 2 Vectors that are important:
Look Vector of the HumanoidRootPart
Look Vector of the Camera
As you can see in this footage:
I wanna rotate the character towards the direction the camera is facing in a script (Similarily to how the shift lock does it)
As a reference, let’s say my character turns to the camera look vector everytime I press “Q”
How do I rotate to the direction of the vector?
i think you can just get the pivot of the character then just replace the direction with a lookat cframe (by doing PivotTo on the character)
1 Like
VixYzs
(Vix)
#3
HRP.CFrame = CFrame.lookAt(HRP.Position, HRP.Position + lookDirection)
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.