For instance, my mouse.
If I hover over the back of the part, I should be able to determine it is the back. Any suggestions?
PlayerMouse.TargetSurface
is exactly what you want!
1 | --LocalScript |
2 |
3 | local mouse = game.Players.LocalPlayer:GetMouse() |
4 |
5 | mouse.Move:connect( function () |
6 | if mouse.Target then |
7 | print (mouse.TargetSurface.Name) |
8 | end |
9 | end |
If you're not used to working with EnumItems, there is a page for them on the wiki as well.