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

How do I freeze the camera?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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

Ad

Answer this question