Getting the rotation of camera

Hello fellow Robloxians!!
I am currently working on a first person physics-based game like “The Future”. I want to make a rotating player model that moves based on your camera. The first thing I decided I was going to do is make the custom character’s torso rotate in the X rotation of your camera. I’m trying to make this with a “OnRenderStepped” function instead of a while true do.

Short version
I want to get the X rotation of my camera using a renderstepped function

I’m sure I’m going to be asking a lot more questions as I’m new to camera based scripts, cya then!
Alek :grin:

2 Likes

print(Vector3.new(workspace.CurrentCamera.CFrame:ToEulerAnglesXYZ()).X)
returns the X rotation of the camera.

local X, Y, Z = workspace.CurrentCamera:ToOrientation()

So I tried doing a while true do loop in a script and the value is still the same.