CameraSubject (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875 No edit summary |
>Trappingnoobs fixed |
||
Line 6: | Line 6: | ||
|description = A [[Model]], [[Part]], or [[Humanoid]] for the camera to look at. Setting this property will override the [[Focus]] property. | |description = A [[Model]], [[Part]], or [[Humanoid]] for the camera to look at. Setting this property will override the [[Focus]] property. | ||
|object = Camera | |object = Camera | ||
}} | }}</onlyinclude> | ||
{{clear floats}} | {{clear floats}} | ||
Revision as of 20:21, 1 February 2012
CameraSubject | |
Property | Instance Camera subject |
Description | A Model, Part, or Humanoid for the camera to look at. Setting this property will override the Focus property. |
Member of | Camera |
Example
In a LocalScript inside the player's character or player's PlayerGui we can dogame.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part
Makes the player's camera point towards 'Part'.
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
Reverts the camera to pointing back towards the character.