Issue Importing blender animation

Essentially i made a animation on blender and after watching a few tutorials I’ve learnt how to export it however when i try to import the animation onto the rig the script closes itself and an error saying “You were kicked from the live scripting session: Script was Deleted” Pops up and the animation says it was loaded however it just does not play.