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
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.
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