Does anyone know how to make a raycasting shotgun where the bullets ( aka the raycasts) spread around where the mouse is facing?
I already know how to make a gun ( from roblox wiki )
Does anyone know how to make a raycasting shotgun where the bullets ( aka the raycasts) spread around where the mouse is facing?
I already know how to make a gun ( from roblox wiki )
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Cast out like five rays and offset their end points by an incriment based on distance. You could also add the offset onto the unit vector in order to not have to base it on distance
I recommend experimenting with CFrame's rotation functions; they'll do rotation better than manually adjusting unit vectors.