CameraMode (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Removed CatUp; we already have categories listed at the bottom of the page, and, at least, they're not contained an ugly red box. |
>JulienDethurens →External links: new section |
||
Line 19: | Line 19: | ||
[[Category:Properties]] | [[Category:Properties]] | ||
== External links == | |||
*[https://en.wikipedia.org/wiki/First-person_%28video_games%29 Wikipedia: First-person (video games)] |
Revision as of 19:54, 7 April 2012
Local: This item should be used with a LocalScript in order to work as expected in online mode.
CameraMode | |
Type | CameraMode |
Description | Changes mode of camera - either first/third person or first person only |
Member of | Player |
Example
This code, put in a LocalScript, would lock the camera of the player it is running for to first person.
game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
Notes
If you use this property in a Script, it will set the property, but it will not work as expected. The property must be set from a LocalScript.