changing gravity OnTriggerEnter

so basically all i want to do is when a rigidbody enters a triggercollider with the correct tag the gravity will change to how i want to change it. then once it exits the collider gravity will return to normal.

Hello,
are you wanting the gravity bool to be set on and off or are you wanting the mass to be changed? I will attach a script as an example in a minute.