How do I make a gun stabilizer?

My tank is a bit “glitchy” so i need a way to stabilize my gun so I can aim and fire on a traget, how would i do that?

A video of the current state of the tank:
You can see how hard it is to aim currently

1 Like