Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is the difference between Rays and Mouse.Hit.p?

I can't tell the difference and what I should use for firing a gun. They both print the position but i dont know what to use

1 answer

A ray is a point between 2 objects. Great for guns. The Mouse.Hit just returns a vector3 value of where you clicked.

1 comment

0

I think he means ray.Direction, which is the Vector3 that the ray points towards to go on forever in the direction of the vector.

This discussion is preserved as it was. New answers, comments, and votes are closed.