Nobody reads screenshots of code. That’s not a thing. If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
You need to multiply the input (in a vector form) by the rotation of the thing you want to use for direction.
An example can be seen and operated in my proximity buttons repo:
The rotational multiply of the input vector takes place on line 128 in the above script.
proximity_buttons is presently hosted at these locations:
https://bitbucket.org/kurtdekker/proximity_buttons