Gun Bullet Ray realign to tip of gun

How will I make the ray shoot from the point of the gun, when I shoot it in game it just shoots from the handle

local ray = Ray.new(tool.Handle.CFrame.p is the line where the ray comes from.
You can offset the Ray Position CFrame to the tip of the gun, or you can change that line to shoot from a Part that’s at the end of the gun’s barrel.

Thanks dude, I’ll try to do the first one, but if it doesn’t work, I’ll do the second one, thanks.

1 Like

Can I do a script like

local ray = Ray.new(tool.guntip.p)

If the name of the Part is guntip then yes.
Your CFrame angle may not be aligned though if the Part has been rotated.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.