CameraService: A New Camera for a New Roblox

:camera_flash: CameraService v2.2.0 is now out! Featuring…

  • Improved readability in the actual code
  • Camera motion for right- and left-arrow keys on keyboard devices!
  • Adjustments to part clipping.
  • RotSmoothness!

I’m also happy to say that separating smoothness values for “rotation” and “motion” is now possible in CameraService with the RotSmoothness property!

However, read below to understand how to use it:

  • RotSmoothness does not override Smoothness: In CameraService, the “motion” of the camera relies on both the position of the host and the rotational information it has on-hand. As such, if you set RotSmoothness to a value lower than Smoothness (i.e. set it to 0), the camera will simply ignore your RotSmoothness, and continue.
    In other words: Your RotSmoothness property must be set to be higher than the typical Smoothness property. With this, you can allow camera panning to be smooth, while ensuring player movements are accurate frame-by-frame!

  • RotSmoothness is only used in first-person (MinZoom = 0, MaxZoom = 0) When smoothness values for rotation and motion differ, they’re out of sync, in a sense. Zooming out (crucial for any third-person view) from the character relies on rotational information. The result for third-person views is a ridiculous amount of jittery motion. Attempting to use RotSmoothness otherwise will be ignored.

Example code for the above:

CameraService:Change("RotSmoothness", 1.2) -- smooth rotation
CameraService:Change("Smoothness", 0) -- static/accurate following of player

Download Here:

5 Likes