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