How to force shiftlock on and off?

How can i force overshoulder camera on and off?

I’ve been trying to find some tutorials but im pretty lost.

1 Like

You can do it by patching the CameraModule and using its API, use this module. Or you can just fork the PlayerModule script.

I can’t check rn since I’m not at home but both the CameraController and MouseLockController have functions that are supposed to enable MouseLock.

You’re gonna basically be getting the controller from the module, something like this:

local PlayerModule = ...
local CameraModule = PlayerModule:GetCameras()

local MouseLockController = CameraModule.activeMouseLockController
local CameraController = CameraModule.activeCameraController

CameraController is the BaseCamera module
MouseLockController is the MouseLockCamera module

You need to patch or fork the module otherwise you won’t be able to access anything from the CameraModule.

1 Like