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

Get the SurfaceType of the part my mouse is hitting?

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.

1 comment

0

This is that kind of question you ask in chat, because you didn't leave a script. Also, I don't know.

2 answers

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

1 comment

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.

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

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