How to see if a character is moving forward relative to it's rotation?

I’ve replied to the other comment why this does not work for me, anything else?