Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to disable the camera from moving around?

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

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 comment

1

^^ just to note, using "workspace" instead of "game.Workspace" is faster

This discussion is preserved as it was. New answers, comments, and votes are closed.