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

How do you use camera:Interpolate()?

Asked by 10 years ago

Interpolate( CoordinateFrame endPos, CoordinateFrame endFocus, float duration )

1 answer

Log in to vote
0
Answered by 10 years ago
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
game.Workspace.CurrentCamera:Interpolate(CFrame.new(10,0,0),CFrame.new(10,0,0),2)

That will smoothly move your camera to the position of (10,0,0) while facing the position (10,0,0). Note that the Cameratype has to be set to Scriptable for :Interpolate() to work.

Ad

Answer this question