How do i instantly zoom in/out

How can make the player instantly zoom into/out of first person when their head is close to their camera?

Example:

I tried doing stuff like setting the camera to scriptable and then setting it at the player’s head, and then setting the camera back to normal, but nothing has worked. There is also the issue of your body parts fading in/out instead of being instant that I couldn’t fix

1 Like

easiest way is to fork the default Roblox camera module.

I did it for you so you can put this in StarterPlayer → StarterPlayerScripts.
The module has an attribute called “FirstPersonThreshold”. You can change that to customize it.

1 Like

For the transparency, there is a module inside of the PlayerModule called Invisicam that you can edit.

Yeah, already made transparency instant when transitioning to first person.

Thanks, this works pretty well. Unfortunately the camera transition to first person isn’t instant, but it’s quick enough for me.

I did try using your solution to fix the fading transparency issue and attempted to make an instant zoom by setting camera type to scriptable, then updating the camera’s cframe to the player’s head every render step, but there were some issues like the player not facing your mouse now and it just felt like a big headache. But if anyone else knows an easier way then please let me know

Updated for instant snap

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.