Close to phase transition, MA cations display an anti-parallel polarization pattern due to BA-MA interactions. Beyond the phase transition temperature, the polarization pattern of MA vanishes due to the melting of MA and BA cations. Additionally, the simulations show that constraining the rotation of MA cations increases the phase transition temperature, indicating the role of MA in the phase transition through the interactions with BA cations.