Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would you make a raycasting shotgun?

Asked by 6 years ago

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 )

0
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 NexanianStudios 91 — 6y
0
I recommend experimenting with CFrame's rotation functions; they'll do rotation better than manually adjusting unit vectors. chess123mate 5873 — 6y

Answer this question