Currently i have this code to play a moon animator cutscene, it works good, the problem is, that the animation instantly begins, if you noticed, on some games, like tsb for example, the Camera cutscene smoothly transition to the first frame (i assume) , how could i do this?
local function Cinematic(CinematicsFolder)
local CurrentCameraCFrame = workspace.CurrentCamera.CFrame
local FrameTime = 0
local Connection
character.Humanoid.AutoRotate = false
Camera.CameraType = Enum.CameraType.Scriptable
Connection = RunService.RenderStepped:Connect(function(DT)
FrameTime += (DT * 60)
local NeededFrame = CinematicsFolder.Frames:FindFirstChild(tonumber(math.ceil(FrameTime)))
if NeededFrame then
Camera.CFrame = Character.HumanoidRootPart.CFrame * NeededFrame.Value
else
Connection:Disconnect()
character.Humanoid.AutoRotate = true
Camera.CameraType = Enum.CameraType.Custom
Camera.CFrame = CurrentCameraCFrame
end
end)
end
note : this plays the cutscenes relative to the character