First person camera drop-in script

3 years ago, I created a post asking for help with recreating a camera effect from a game.
Then, a few months back I revisited the attempt and create my own first person camera script, and today I decide to share!

https://create.roblox.com/store/asset/116218362341671

Vision

Just a simple, drop-in camera script. Put into StarterPlayerScripts, and leave it there. The only difference? A really-nice-to-look first person game!

Libraries

The script integrates and uses Spring and CameraShaker as the main powering systems of the overall script, Spring providing smooth movement while CameraShaker providing consistent shakes.

Features

ALL features below is customizable in the configuration section of the script. You should learn about using springs as a way to ease, here’s a good intro!

  • First person
    • Optionally show limbs (torso, arms, etc), and third-person when sitting
  • Constant subtle camera shake
  • View bobbing
  • Camera drift (Spring-driven)
  • Camera tilt (Spring-driven)
  • Motion/dynamic blur
    • Blurring based on how fast the camera is turning
  • Dynamic DOF (Depth of field)
    • Automatically adjusting focus by raycasting from the player’s head, optionally ignoring glass
    • FOV can optionally adjust accordingly too, zooming in for focusing far away objects and vice-versa
  • Camera squish
    • Just try it and see:)

Important Caveats

  • I don’t write good code. The script was not made with publishability in mind and was supposed to just be an internal thing.
  • Not really optimized ?
  • Not scalable

RobloxStudioBeta_Z0rDExBa5m-ezgif.com-optimize
(Do apologize for the low-quality showcase, don’t have access to a relatively strong computer)

10 Likes

Perfect for what I need, much simpler than the Realism camera script.

1 Like