I've looked around for an answer but I can't find much. I need to know how to get the position of where a ray hits or ends in the workspace. My guns use the raycast script from the roblox wiki.
BasePart, HitPosition, RayPosition, HitmaterialOrTerrain = workspace:FindPartOnRay(ray)