@Fuzzycat117 saw me use this code in a game and started putting it into their project. I noticed a mistake and told them about it - they wanted a tutorial, so here we are! Sorry for getting it wrong :D
Coding: @MountainMints