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

How to lock a camera?

Hello,

I have the below piece of code. Would it be possible to lock the camera in that position until the player clicks a GUI, and returns back to the humanoid? (I have the humanoid script)

local cam = workspace.CurrentCamera
cam.CameraSubject = workspace.BasePlate
cam.CameraType = "Fixed"
cam.CoordinateFrame=CFrame.new(-187, 90.5, 55.4)
cam.Focus=CFrame.new(-2.155, 59.062, 326.3)

Thanks.

1 answer

Sure! The reason your camera isn't currently locked, is because you've got it set to the mode "Fixed" where it should actually be "Scriptable". This'll keep it in the same position until you change the script.

You already have the humanoid part, but yeah, you just put it back to "Custom"

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