How could I make Players unable to shoot through walls?

How could I make Players unable to shoot through walls? I use Raycasting for my bullets and it starts at the muzzle of the weapon. Because I already have bullet hit effects here is an example from Phantom Forces of what I want it to look like.

1 Like

offset the raycast relative to the muzzle backwards a few studs.

2 Likes

at first i didn’t know how to do this then i remembered look vector, thanks!