I got the source code from the old Roblox Animation Plugin to modify It, and add some useful features such as automatic leg bending. The issue is whenever you stop the animation after playing It, Roblox Studio crashes.
This version is that one where whenever you play the animation, It automatically runs Studio test mode with this code line:
game:GetService('RunService'):Run()
However, when you click on the Stop button on the plugin GUI, this other code line is executed, and this is the exact moment Roblox Studio freezes:
game:GetService('RunService'):Stop()
I have added several prints betwen each line, and I can confirm this is the line that causes Roblox Studio to stop working. The rest of the code is fine. Do anyone know what's the issue?
(Sorry for my English)