Download

Shoot Towards Mouse Location not working

Okay so I am trying to make it so when I shoot it goes towards the mouse location I have done it before and it worked but right now it is just shooting to this one default point. The first photo is of the code that checks where the mouse is I believe this is where my problem is. The second photo is of the code to make the thing shoot and this works just fine from what I can tell. and I had a picture of the bullet moving to the one default point as I am calling it but its to big for this so yeah if anyone has any idea what I am doing wrong please tell me PS: I did try to use get mouse location and this made it so I could aim but only on the X or Y axis