This is what I am currently working with but i feel as if its not optimal and it could be done in a better way (like if i should be using enhanced IA instead of just the key)
The goal is to also implement this to work for any direction (w, a, s, or d) when my camera isnt locked to the typical over the shoulder pov you get like in fortnite for example, and instead when its in a free orbit third person where the character can rotate 360 degrees like in gta or elden ring
(press image for better view)

