https://pastebin.com/raw/3qe1iUQc true StateMachine API was made by KingOfGamesYami.