Example of how to do a spread shot for a top down shooter in Godot
Assets can be found here, they are free for personal use. https://thomasgvd.itch.io/top-down-shooter
I stretched out the background image, so it doesn't look very good, but I just wanted to show the funcionality of the gun.
To use: Just run the Main.tscn. The gun in the characters hand will follow the players mouse position. If you press left mouse button, the gun will shoot.
The result will be somewhat like this: