How to get directional vector from orientation?

Hello. I’m writing a server gun firing script to prevent exploits in an fps game. So, I need to obtain the camera direction from the server and raycast.
The player sends the vertical angle of the camera to the server every frame.
And I can get player’s camera rotation. but I need the directional vector for raycasting.

I searched for it, but I could only get orientation from a directional vector and not the opposite.
How to get directional vector? are there any ways?

1 Like

If you have the CFrame, just get it’s property .LookVector and that’s it.

1 Like

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