SetRoll (Method)

From Legacy Roblox Wiki
Revision as of 05:39, 7 April 2012 by >JulienDethurens (All the properties of the camera can be set by a normal script too.. Remember: the server IS a client. And the server HAS a camera. And normal scripts CAN set the properties of that camera.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
SetRoll( float rollAngle )
Returns nil
Description: The roll of the Camera, in radians. This sets how tilted the camera is on the Z-axis. Basically, this function "twists" the camera a specific amount. Note that the Camera's CameraType must be set to "Scriptable".
Member of: Camera


Example
game.Workspace.CurrentCamera:SetRoll(0.1)

The above code makes the camera look like this:

game.Workspace.CurrentCamera:SetRoll(-0.1)

The above code makes the camera tilt like this:

External links