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

Is it possible to have you camera locked on object when spawned?

Also I am trying to make it so you can't move the cameraat all it is locked on the object.

1 comment

0

It's possible to do that.

1 answer

Yes. Simply set the Camera's CameraType to Enum.CameraType.Scriptable, and manipulate the CFrame.

Be wary of the following facts:

  • You may only manipulate the Camera from a LocalScript.

  • You need to manually reset it in order to track the character again.

local cam = workspace.CurrentCamera;

cam.CameraType = Enum.CameraType.Scriptable;
cam.CFrame = CFrame.new(vector3origin,vector3look);

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