I legit already provided it, when i reset it gives me Cannot load animationClipProvider service
The other guy told me to put the track load before the connect function which removed the error but the error occured where when i reset the animation refused to load
Line 10 is where the animation is loaded using the LoadAnimation method of the Animator object. If youâre receiving an error on this line, it could be because the animator variable is nil . This could happen if the Humanoid object doesnât have an Animator object as a child. You can add a check before line 10 to make sure that the animator variable is not nil before trying to use it.
try moving the code that loads the animation and connects the MouseButton1Click event of the stop button inside the MouseButton1Click event of the wavebutton . This will ensure that a new reference to the Animator object is obtained each time the wavebutton is clicked, even if the character was reset.
add some debugging statements to your code to see whatâs happening when the NPC âfreaks outâ. For example, you could print the NPCâs position, the playerâs position, and the current waypointâs position to the output to see if there are any discrepancies.