I went to get the relays but they didn't have them so a guy told me that it could be the freon.So I bought a kit.I measured it and it showed almost zero so as I was charging it the compressor started so definitely it's not the relays.
I have a feeling that there is a leak somewhere though because the gauge would fluctuate.