How can I replicate this camera effect?

  1. What do you want to achieve?

Hey all, I was wondering how I would achieve this camera effect. Games like Doors and JUDY use this and I was wondering how I can do it too.

WHAT I WANT

WHAT I HAVE

If you can’t really tell, in the WHAT I WANT video whenever the camera moves up or down, the camera seems to moves away from the object in front of it and move with the head. Compared to what I have where whenever I move the camera up and down, it moves closer to the object. I’m not experienced when it comes to camera manipulation, so if you can provide any resources that can help me figure this out that’d be awesome, thanks.

If you need anymore info, feel free to ask.

I watched each one about five times. I really don’t see the difference.

It’s hard to explain because I don’t really understand how it works. I drew up this picture of what I think is happening, I could be completely wrong but hopefully it gets the point across.

image_2022-11-19_101930413

The camera in the WHAT I HAVE section seems to rotate around this point in front of it if you look in the video.

Compared to the camera in the WHAT I WANT section seems to rotate around the players’ head

1 Like

Try using the Head 's CFrame and setting the camera 's CFrame to the head’s CFrame.

Like this…

-- use your head and dont forget to set cameratype to scriptable.
local cc = workspace.CurrentCamera
cc.CFrame = head.CFrame


This is what I think it may be happening to you.

So basically, if your using the head’s CFrame, a invisible part or something it might be colliding.

I’m not using a part, I’m using Humanoid.CameraOffset to get my offset. Setting the camera’s CFrame to my head also didn’t work unfortunately, just caused my player to spin around.

I see, Camera Offset gets lots of individual errors around DevForum, I’ve seen a lot of these problems too, but I still don’t know how to fix your problem since I don’t have a lot of information about what your using in the script, I mean I got that your using CameraOffset.

I think what is better to use is, using a first lock script and setting the movimentation smoother, but not a lot.