Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to disable the camera from moving around?

Asked by 4 years ago

I really want to be able to lock the camera I have looked again and again for a good source of information but I can't find the right thing and by locked I mean I want to camera no matter what the player does it will not move.

1 answer

Log in to vote
1
Answered by
Abandion 118
4 years ago

The camera in Roblox has a number of states that determine its behaviour that can be set with Camera.CameraType. To make it completely stationary (as in the camera script is suspended), you'd use the cameratype Scriptable

--From a localscript

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

Here's a general reference for the Roblox camera- https://developer.roblox.com/en-us/api-reference/class/Camera

1
^^ just to note, using "workspace" instead of "game.Workspace" is faster SerpentineKing 3885 — 4y
Ad

Answer this question