Error: ActivateCameraController did not select a module (Repost since no one saw my previous one)

So I was making the player’s camera look toward an NPC whenever they get close to it for a custom NPC dialogue system, but then I got this error:

  ActivateCameraController did not select a module.  -  Client - CameraModule:335

what does this mean? My script is the following:

local player = game.Players.LocalPlayer
local MAX_RANGE = 15

while true do
	while player:DistanceFromCharacter(workspace.Dummy.Head.Position) < MAX_RANGE do
		local camera = game.Workspace.CurrentCamera
		camera.CameraType = "Scriptable"
		camera:Interpolate(game.Workspace.LookFromPart.CFrame,game.Workspace.Dummy.Torso.CFrame,1)
		return 
	end
	wait()
end

It’s a warning, not an error. I believe it happens when you set your camera’s type to scriptable before the roblox camera scripts finish setting up the camera. DistanceFromCharacter would also return 0 if the character doesn’t exist, so if your code is ran before the player’s character is loaded, the condition inside the while loop will always be true

1 Like

did the camera.Cameratype = "Scriptable" work? Most developer use camera.Cameratype = Enum.CameraType.Scriptable

Thanks, that worked! You’re right, my script didn’t work because I sest the camera’s type to scriptable before the roblox camera’s scripts finished setting up the camera.