Ray going away from where mouse i pointed when camera is outside an invisible part

I want to get it so that my guns do not shoot away from the mouse when the player’s character is within the invisible part with their camera outside the part, at the moment it does this if you don’t quite get it:
https://medal.tv/games/roblox/clips/gLgLTcSn5niqr/d1337aJyxq54?invite=cr-MSxBa0ssMTIyOTcwODgs

I have put the folder containing these parts in the ray’s ignorelist, any ideas on what else I could do?

Are you using the new Raycast or old style?

Can you show us the script? New Raycast params should block this out with a blacklist.

Thanks

1 Like

figured this out really late last night, it was due to the old style raycast