Why doesn't my camera focus toward a part I've set as the target?
Essentially, I want a camera to be at a part named 'point' that is fixed, meaning that the player cannot move it around using right-click, and also having the camera at 'point' facing another part called 'target'.
My current code is as follows:
1 | local cam = workspace.CurrentCamera |
2 | local point = game.Workspace.point |
4 | cam.CameraSubject = game.Workspace.point |
5 | cam.CameraType = "Scriptable" |
6 | cam.Focus = CFrame.new(game.Workspace.target.Position) |
7 | cam.CoordinateFrame = CFrame.new(point.Position) |
Currently, the camera is facing the wrong direction of the 'target' part, which I've set as the focus. Consult with this picture just in case you don't understand: http://i.imgur.com/cAuWsDg.png
The camera should face towards the light that you can kind of see on the left side of the picture, not towards the wall. There is nothing out of the ordinary in the output.
Why doesn't my camera focus towards the part I've set as the target? Everything else seems to be working fine.