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

How do I lock the into place so that mouse movement wouldn't affect it?

Asked by 6 years ago

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

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 theCJarmy7 1293 — 6y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
6 years ago

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!

Ad

Answer this question