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

How do I freeze the camera?

How can I freeze the camera so It stays and the player can't move it around.

This is my code so far:

local cam = game.Workspace.CurrentCamera
cam.CameraSubject = workspace.Cameraf
cam.CameraType = "Attach"
cam.FieldOfView = 90

How do I make it stay in the position?

1 answer

I tried in studio and i found out a way: (Remember to make as default Camera Scriptable)

while true do -- this loop makes sure Camera doesn't change the state
	game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
        game.Workspace.CurrentCamera.FieldOfView = 90
	wait(.1)
end

Hope it helps! If it doesn't, tell me what appears on output or what goes wrong. Thanks, marcoantoniosantos3

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