I am trying to make a script that animates a bunch of NPCs all at once. However, in the output, it says:
attempt to call a nil value
It is on line 4 and I cannot figure out what is wrong with it
This is the code:
local char = script.Parent:GetChildren()
for i = 1, #char do
local hum = char:WaitForChild("Humanoid")
local animation = hum:LoadAnimation(game.Workspace.CultistAnimations.Cheer)
animation:Play()
end
Any help is appreciated

2 comments
Are all of these NPCs in a model? Or are they free objects in the workspace?
They're in a model