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.
✓ ANSWER ACCEPTED
How do I get the position that a ray hits when raycasting?
1 answer
✓ Accepted answer
BasePart, HitPosition, RayPosition, HitmaterialOrTerrain = workspace:FindPartOnRay(ray)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thanks. I got what I needed to work. RayPosition seemed to be where the ray hit. Or the second value in other words.
Ya, I just knew it was instance,pos,pos,normal. Fixed it