Scripting Rotation Glitch

Hello. I was designing a door with a rotating ring on it, however, when I went to script the ring rotation, rather than the ring rotating around it’s center, the ring rotated around a foreign center that was several units away. When reversing the rotation using the “reset position/rotation” function, the ring pieces also did not align themselves properly. I would very much appreciate a solution or a bug fix. Thank you.