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

How to determine which side of a part mouse.hit lands on?

Couldn't find this anywhere.

1 answer

✓ Accepted answer

Just use the property TargetSurface.

local player = game:GetService("Players"):GetPlayerFromCharacter(character)
local mouse = player:GetMouse()
print(mouse.TargetSurface.Name)

1 comment

0

Damn it, where was this? Checked the API page 10 times.

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