My arduino gets hot when us a 12 volt adapter

Remember this does not eliminate the heat generated it just distributes it around the other components. To remove the wasted energy you need to go to a switching regulator.