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 lock the into place so that mouse movement wouldn't affect it?

I'm trying to make a cutscene, but as it happens, I am very new and bad at the whole scripting thing.

1 comment

0

I'm going to assume you mean lock the camera, although I can't be sure what exactly you mean here, but if my wild guess was correct I recommend starting here: http://wiki.roblox.com/index.php?title=API:Class/Camera

1 answer

Your question could use some more context, but i assume you want to lock the camera into a certain position.

Doing this is quite simple.

Step 1: Set the camera type to scriptable

workspace.CurrentCamera.CameraType = "Scriptable"

Step 2: Set the CFrame of the camera to where you want it to be:

workspace.CurrentCamera.CFrame = CFrame.new(Vector3 Position, Vector3 LookAt)

That's all thats required!

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