trying to make a little cutscene, the cframe of the camerarig isnt changing and the animation isn’t play either.
Script:
["Cutscene"] = function(Char, Cutscene)
local rig = game:GetService("ReplicatedStorage"):WaitForChild("ReplicatedAssets"):WaitForChild("Cutscenes"):WaitForChild("CameraRig"):Clone()
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://"..Cutscene
rig.Parent = workspace.VFX
game:GetService("RunService").Heartbeat:Wait()
rig.camerarootpart.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(rig.camerarootpart.Position,Char.HumanoidRootPart.Position)
workspace.CurrentCamera.CameraType = "Scriptable"
workspace.CurrentCamera.CFrame = rig.camera.CFrame
local playanim = rig.AnimationController:LoadAnimation(anim)
playanim:Play()
playanim.Stopped:Wait()
workspace.CurrentCamera.CameraType = "Custom"
--rig:Destroy()
end,
CameraRig:
Video Proof: