Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Get the SurfaceType of the part my mouse is hitting?

Asked by 5 years ago

For example, I have an ordinary rotated part, I then hover my mouse over the part. Is it possible to get the SurfaceType I'm hovering over? Like FrontSurface, BackSurface, etc.

0
This is that kind of question you ask in chat, because you didn't leave a script. Also, I don't know. MakeYourEscape 334 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

You can use ZIndex, a property of Gui objects. Higher values are at the front.

0
Sir, I'm talking about Parts... You know? The one that has physics and the one's that your player's character can collide with. tobyjing2005 107 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Never mind I have found the answer. There's a property of Mouse called TargetSurface.

Answer this question