This is like the weirdest thing I have encountered. I have defined everything above the script, and the “EndCutscene” was a model that was Cloned from ReplicatedStorage but I can’t seem to see what the problem is.
for i, char in pairs(EndCutscene:GetChildren()) do
print(char.Name)
if char.Name ~= "Go" or char.Name ~= "Cameras" then
char.Helper:LoadAnimation(char.Idle):Play()
end
end
The issue is caused by the or, if the object is named "Go" the char.Name ~= "Cameras" makes the condition true, and if the name is "Cameras" the char.Name ~= "Go" makes it true. Instead replace the or with and so if it isn’t one of them, it runs.
Sorry if I was a bit unclear, but the error here is that even though the Name of a child of EndCutscene is “Cameras”, it works as if there is a == instead of ~=.
The error it shows in the console is
Helper is not a valid member of Model “Workspace.EndCutscene.Cameras”