I’m trying to not let the player move the camera at all.I know that the controls module exposes a method that disables the key controls, but when I try the same thing with the camera module it says attempt to call a nil value
.
Here’s my script:
local Player = game.Players.LocalPlayer
local PlayerScripts = Player.PlayerScripts
local PlayerModule = PlayerScripts:WaitForChild("PlayerModule")
local CameraControls = require(PlayerModule):GetCameras()
local KeyControls = require(PlayerModule):GetControls()
KeyControls:Disable()
CameraControls:Disable()
The only problem with this is that last line.