I made this in five minutes so don't be surprised by how garbage this is. (Yes the whole thing)
Thanks to @Chipmonk for the idea!