Having trouble understaning the differences between these two.
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
.
Mouse.Hit returns the CFrame position of the mouse:
http://wiki.roblox.com/index.php?title=Hit_(Property)
Mouse.Target returns the part or object that the mouse is currently pointed at:
http://wiki.roblox.com/index.php?title=Target_(Property)/mouse
Closed as Primarily Opinion-Based by youtubemasterWOW and JesseSong
This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.
Why was this question closed?