Focus (Property)
From Legacy Roblox Wiki
Jump to navigationJump to search
![]() | |
Type | CFrame |
Description | Sets the position the Camera is pointing towards. If the CameraSubject is defined, it is set automatically to a CFrame at the position of the CameraSubject pointing towards the camera's CFrame. |
Member of | Camera |
Example
The following example only works in a LocalScriptgame.Workspace.CurrentCamera.Focus = CFrame.new(game.Workspace.Part.Position)
The above example will set the position the camera is pointing towards to the position of the Part in Workspace.