How do I add animations to a custom rig

I have a custom rig, with a custom animation. But when I try to add it as a custom the character doesn’t do the animation. I have tried many scripts, but I still cant fix it.
robloxapp-20230724-1353361.wmv (2.1 MB)

How would I add the custom animations to the rig?