Credits to Pixeltherandomguy for the coding, he's a cool dude.
I used some of Pixeltherandomguy's (advanced fr) coding to make this