I'm Trying to spawn a projectile in front of my character but when it moves to the left the spawn of the projectile remains same but the direction changes

Fixed it! I saw it on youtube where a guy uses the arrow component to spawn the projectile. Thanks anyways