How to make anim work with a different character

Hey, so I have this animation that works very well on the default manequin, however, when I switch to another mesh, a robot I have, it gets a little off, even though it has the same skeleton. Please help me find a way to make this animation work. Thanks in advance!
-Josh

Hello, the process you are looking for is called “retargeting”
Here is a rather recent tutorial, there are plenty of other ones, as well as documentation from Epic :