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

Making first person camera level with your head (while seeing your body)?

Asked by 2 years ago
Edited 2 years ago

I want to achieve a smooth first person camera system in which the camera is level with your head and you can see your body. Currently, I use the The Smooth First Person Camera [Bundle] by DuruTeru.

However, in this script there’s a CameraOffset of 0.7 above the head to make the body look reasonable when you’re looking down.

HeadOffset = CFrame.new(0,0.7,0)

This offset makes other players and the environment around them shorter than they really are.

However, if there is no offset, you can see your own neck …which is of course undesirable.

Therefore, I was trying to come up with a way where you can see your body (and not your neck) in first person from an angle that is level with your head.

I’ve tried looking through other DevForums, but the only solution is offsetting the camera a bit forward, which causes other issues like players being able to see through thin parts.

Any help on this topic would be appreciated.

Images: https://imgur.com/a/gliyv9B

0
i cant click the devforum links and is the neck your referring to the Torso? Puppynniko 1059 — 2y
0
Sorry about that, I realized you can't reference images from the DevForum through links, so I removed them. Also, yes I believe the neck part is part of the UpperTorso. SprinkledFruit101 135 — 2y
0
then you'll need to offset the head infront and set the head or any head accessory handle LocalTransparencyModifier to 1 so it is invisible, i dont remember the cframe direction Puppynniko 1059 — 2y
0
I've tried that, but the problem is that if you offset the camera forward, you can see through some thin parts (which you wouldn't be able to see through if the camera wasn't offsetted at all). SprinkledFruit101 135 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

The only way is to edit the camera's FOV. You need to use the offset. You can edit the FOV to more than 70 but don't set it to less than 70, otherwise, the camera will look weirder.

local newCameraFOV = 80 -- you can change this to whatever you want

HeadOffset = CFrame.new(0,0.7,0)
workspace.CurrentCamera.FieldOfView = newCameraFOV

But if you still have problems, I recommend watching this video

Ad

Answer this question