I need help fixing gun clipping in a top down shooter

I’m new to this forum and I’m using Godot 4.5.

I’m working on a project for school and I decided to make a top-down shooter similar to CoD: Zombies. I’ve made a resource-based weapons system and I’m wondering if there’s any way I can stop the guns’ sprite from clipping into walls.

Thanks!

Draw it over walls.