Skip to content
Untitled Sandbox - Developer Documentation
docs/types/CameraMove

CameraMove

A smooth camera movement for players, which you get back from camera.move_to so you can wait for it or cancel it.

Events

completedEvent<()>

You listen to these with :connect, which the Event page covers.

CameraMove:wait

method

Pauses the script until the camera move's time is up, then carries on.

CameraMove:wait() -> ()
example
camera.move_to(player, { position = math3d.vector3.new(0, 20, 30), duration = 2 }):wait()

Use it forplaying cutscene shots one after another, in order.

CameraMove:cancel

method

Stops the camera right where it is, partway through the move.

CameraMove:cancel() -> ()
example
move:cancel()

Use it forletting players skip a cutscene they have already seen.

↑ ↓ moveEnter openEsc close