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

AnimationID Invalid, script erroring, please help! (?)

Asked by 3 years ago

I am making a cutscene. This is my script.

game.ReplicatedStorage.CutsceneStart.OnClientEvent:Connect(function()
    local player = game.Players.LocalPlayer
    local anim = player.Character.Humanoid.EndCutsceneIdleAnim
    anim.AnimationId = 7215500726
    local ator = player.Character.Humanoid.Animator
    ator:LoadAnimation(anim)
end)

Whenever I run the script, it gives me this error:

Invalid animation id '<error: unknown AssetId protocol>'

Does anyone know how to fix this?

P.S. This is in a LocalScript.

Answer this question