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

Whats the difference between Mouse.Hit & Mouse.Target?

Having trouble understaning the differences between these two.

2 answers

✓ Accepted answer

mouse.Hit refers to the position that the mouse was touching. mouse.Target refers to the part that the mouse was hovering on.

While for many things mouse.Target.Position will be pretty close to mouse.Hit.p they are not the same position (for instance, on a baseplate, which is large, so its center is far from points on its surface).

If you are looking for the position of the mouse in the world, use mouse.Hit. If you care about what they are hovering over, use mouse.Target.

1 comment

0

Thanks aswell!!

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