CameraSubject (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875 No edit summary |
>SoulStealer9875 No edit summary |
||
Line 12: | Line 12: | ||
{{Example|In a LocalScript inside the player's character or player's PlayerGui we can do<br/><pre> | {{Example|In a LocalScript inside the player's character or player's PlayerGui we can do<br/><pre> | ||
game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part | game.Workspace.CurrentCamera.CameraSubject = game.Workspace.Part | ||
</pre> | </pre> | ||
Makes the player's camera point towards 'Part'. | Makes the player's camera point towards 'Part'. | ||
}} | |||
==See Also== | ==See Also== |
Revision as of 16:16, 14 July 2011
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'.