How to make camera stay with head in LockFirstPerson?

Hello,

So my game is set to LockFirstPerson and I made a nice little C to crawl animation. The problem is that when I tested it, the camera doesn’t stay with the avatar’s head when on the floor. The camera for some reason just stays at the standing height. I’m not so sure on how I would go about this issue. I’ve done almost everything. From searching on YouTube to checking out past threads on the DevForums that could possibly relate to this, I didn’t have much luck. Any help would be very much appreciated!

Video example:

Code inside the LocalScript in StarterPlayerScripts:

Try out this:

-- Walk
humanoid.CameraOffset = Vector3.new(0,0,0)

-- Crawl
humanoid.CameraOffset = Vector3.new(0,-2,0) -- replace -2 to -2.75 or whatever you want
2 Likes