Stuck Camera Position but Rotation Allowed

What’s the most optimal way to force a camera to be stuck at a certain position but be allowed to rotate?

You could set the camera subject to a part at the desired position

repeat
  game.Workspace.CurrentCamera.CameraSubject = Part
  wait()
until game.Workspace.CurrentCamera.CameraSubject == Part

if you want to bring camera back to the player just do

repeat
  game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  wait()
until game.Workspace.CurrentCamera.CameraSubject == game.Players.LocalPlayer.Character.Humanoid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.