Stop Animator:LoadAnimation() from erroring if the Humanoid/AnimationController isn't a descendant of game

As a developer it is extremely frustrating to have your whole script stopped by an error like this. This function should not behave like this. Instead it should yield / wait a few seconds for the Animators parent object, then give a warning stating that the parent is not a descendant of game.

Current Behavior:
image

Wanted Behavior:

This would be extremely helpful as we won’t have to add any yield of our own to make sure our animations can play properly without stopping our scripts.

12 Likes