Problem with mouse hit and bullet direction

Hello devforum, I am having some trouble with shooting bullet to the mouse Position when the mouse is on the plane which is shooting the bullets:

https://gyazo.com/eaa737142cf6df9fb4958cfed6d3654f

Is there any way to solve this?

Thanks for reading :slight_smile:

Ah yes, mouse detection
Where the mouse will hit will also depend on where it’s gonna be shooting at, so I see from the GIF that some of the times it’s shooting at the plane alone. I think to fix this you can use Mouse.TargetFilter, which basically ignores a certain Instance of a part, and I don’t know if it ignores more but I guess you could look at this and see?

1 Like