Hey! I’m just trying to force the player (this is a local script) to disable shiftlock (this is to avoid ragdoll system bugs related to camera) and keep getting that error (on the respective line).
LOCAL SCRIPT PART (player = local player):
local PlayerModule = player.PlayerScripts:WaitForChild("PlayerModule")
local Cameras = require(PlayerModule):GetCameras()
local CameraController = Cameras.activeCameraController
CameraController.activeCameraController:SetIsMouseLocked(true) --ERROR LINE
player.DevEnableMouseLock = false
local PlayerModule = player.PlayerScripts:WaitForChild("PlayerModule")
local mouseLock = require(PlayerModule.CameraModule.MouseLockController)
mouseLock:EnableMouseLock(true) -- Set to true or false
player.DevEnableMouseLock = false
local PlayerModule = player.PlayerScripts:WaitForChild("PlayerModule")
local mouseLock = require(PlayerModule.CameraModule).activeMouseLockController
mouseLock:EnableMouseLock(true) -- Set to true or false
player.DevEnableMouseLock = false