local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = game.Workspace.TestingPart
The camera just spawns on the floor...
local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = game.Workspace.TestingPart
The camera just spawns on the floor...
I rarily use camera.CameraSubject, and when I do I usually leave the camera as custom (for spectating functions)
The camera has a "CFrame" property (as DeceptiveCaster said). I'm pretty sure you know what CFrame is, but just in case, its a way to position with orientation (smallest breakdown I could think of)
you could try
camera.CFrame = workspace.TestingPart.CFrame - Vector3.new(3, -3, 0) -- subtract a vector 3 to *attempt* to get it looking at the part.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
I have this on a local script, by the way.
camera.CFrame.