:ChangeState() not working

I tried to use the same script on a different game and it worked for some reason.