IKController rotates the wrong way for custom rig

The script I am using works absolutely fine for a normal character, but for this custom character I made to test monster animations, it doesn’t work right. The character bends the enirely wrong direction, towards the wrong axis. It bends left when it should bend right. I assume this has somethint to do with how I rigged the character, but I don’t know where to start.

The unexpected behavior: robloxapp-20250117-1359004.wmv (1.4 MB)
How it looks on a r15 rig: robloxapp-20250117-1407049.wmv (1.4 MB)

How the custom rig looks:

And here is the model if you’d like to look at it: https://create.roblox.com/store/asset/75788864760100/DemoKaiju?assetType=Model&externalSource=www

The IK is handled local, and starts from the top of the torso to the head.

1 Like

Just in case anyone has this problem: The reason it was bending wrong is that the front facing direction of the parts was incorrect. Instead of facing forward the head was facing left/backwards/right or something like that. The easiest way to fix this and prevent it in the future is mark the front and right facing direction of the part with decals while you block out and rig the model. Rotate it so the front of the rootpart is facing foward, right is facing right, up is facing up, down is facing down etc and try to m match that with the other parts. However, for the tail, arms, legs or anything that is diverging from the lower torso to head where you connected the HRP to the rest of the rig, make it facing outwards towards where the character should bend - so with the tail, it should be that the forward facing position for each part is facing outwards away from the model. I’m not sure if I explained that well but hopefully it helps someone out… I’m going to leave the thread open in case anyone has questions in the future