Have you assigned the script to the character you are testing this on?