How would I make my script work and instead of wait how would I make the npc animation play when another animation stops.

Here is the script for some reason doesn’t work Xd

1	Wait(23)
2	script.Parent:WaitForChild("Npc"):LoadAnimation