This is a module I’ve had in my toolbox for a while, and I decided to share it here in this post.
All it does is wrap around a modified version (see modifications below) of Roblox’s PlayerModule and provide detailed & accurate types for the classes contained within.
Modifications
Made CameraModule return the actual CameraModule instead of an empty table (it does this by default, idk why)
Added a zoomController field to CameraModule
Added a Popper field to ZoomController
Added a SetOcclusionCheckFn function to Popper (this controls what parts your camera can pass through or not)
Download:
PlayerModule.rbxm (149.4 KB)
(and yes all the types are hand written
)