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

Camera moves to given point but does not smoothly focuses towards the point?

Asked by 6 years ago
Edited 6 years ago
-- LocalScripts in Player Scripts
workspace.CurrentCamera.CameraSubject = workspace.PartB
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

function lookAt()
    local endLookAt = workspace.PartB.CFrame
    local endCFrame = workspace.PartB.CFrame

    workspace.CurrentCamera:Interpolate(CFrame.new(60, 60, 60), CFrame.new(60, 60, 60), 8)
end

lookAt()

The camera moves to the given point, but it does not rotate smoothly towards the point. Am I doing something wrong or is it just a bug?

Answer this question