Idea for making a recoil spread patterns

I need an idea on how to make Roblox spread patterns. I’m having a raycast gun and I wanted to make recoil for it(the bullet spreads like CSGO or other FPS game).