Trying to make a drone in Unity3D but the stabilization is not working right when rotated on Y axis

Here’s how to use code-tags .