Need help with rigging. How can I prevent a rig from behaving like this

I recently just rigged a cat for my game. But whenever i play the game. The rig automatically gets up and stands in the wrong way!

Any help is appreciated :3

some more photos. (Feel free to ask for more information if needed)

rigging:

workspace:
Screenshot 2025-04-27 162902

Update: I fixed the problem. I had to resize and rotate the root part