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

Is it possible to know the current Player Rotation angle ?

Asked by 3 years ago

Hey , I need to know the current Player angle orientation to calculate something in my Script. Is there a way to know it ?

Thanks !

0
You can get either the CFrame of their HumanoidRootPart, or get the orientation. CFrame is probably better. srimmbow 241 — 3y
0
Thanks ! ThePoinball 20 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

For those who could have the same issue here is the solution

local x, y, z = char.HumanoidRootPart.CFrame:ToOrientation()
Ad

Answer this question