Normally I don’t ask 4 code, however I have very little experience in this sort of thing, so if you cud give working code or explanation, it wud help me out a ton
The camera system Iam trying to implement is that of minecraft’s. FYI, In minecraft the mouse is locked in center, and raycasting is done from a point in the center. That’s fairy easy to achieve, howevet I also need to change the player’s orientation based on the mouse movement, along with some of the body parts, for eg, the head.
Well, your body will automatically rotate left/right in first person.*
If dir is the direction you’re facing, you can compute the vertical angle with math.asin(dir.Unit.Y)
You can then use that to set the Neck’s C0 or C1 or whatever.
*if you’re not happy with this you could also compute the angle with math.atan2(dir.Z, dir.X) (maybe negate the first one) and just set the CFrame rotation of the root part every frame with RunService | Roblox Creator Documentation