Camera Animation Script Not Working

So, I have made a few games in the past, this one is a story game, to animate the camera, I always use this script:

    local Workspace = game:GetService('Workspace')
    local TweenService = game:GetService('TweenService')

    local CurrentCamera = Workspace.CurrentCamera

    game.ReplicatedStorage.Camera1.OnClientEvent:Connect(function()
    CurrentCamera.CameraType = Enum.CameraType.Scriptable
    local TI = TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0)
    local Goal = {CFrame = workspace.End111.CFrame}
    local Animation = TweenService:Create(CurrentCamera, TI, Goal)
    Animation:Play()
    wait(15)
   CurrentCamera.CameraType = Enum.CameraType.Custom
end)

It has always worked since now, where the camera becomes scriptable(It Doesn’t follow the player anymore)
I get no errors in the output, I have checked my code about 100 times, and I cannot seem to find any errors in it.

Any Ideas?

1 Like

Can you rewrite this sentence to make it more clear.

It has always worked since now, where the camera becomes scriptable(It Doesn’t follow the player anymore)

I think you’re saying the script was following the player but now it isn’t. What is it doing now?