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

How do I make camera movements?

Asked by 9 years ago

I am clueless about this... I looked it up, nothing, I looked on ROBLOX Wiki, nothing... Any help?

1 answer

Log in to vote
0
Answered by 9 years ago

You change the camera's CoordinateFrame:

workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, 5, 5)

If you want to position the camera a certain way using a script, do this:

Step 1: In Studio edit mode, position the camera in any way you want.

Step 2: Open the command bar and type "print(workspace.CurrentCamera.CoordinateFrame)" (remove quotes). Copy whatever comes in the output.

Step 3: In the script, when you need the camera to be positioned, use this code:

workspace.CurrentCamera.CoordinateFrame = CFrame.new(whatever you copied in the output, you may have to edit it to remove symbols)

And that's that! Hope this helped!

1
For smooth camera tweening, http://wiki.roblox.com/index.php?title=Interpolate Perci1 4988 — 9y
0
True. I was talking about initially positioning the camera and finding its current position bobafett3544 198 — 9y
Ad

Answer this question