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

How to detect what face a ray hit?

So I have a script that casts a ray, and want to know how I would be able to tell what face of an object the ray hit? Like if the ray hit the front of a brick, how would I edit the script so that the script will know that the ray hit the front?

1 answer

It depends on what shape that ray hit. It's pretty advanced, thought here is someone else's script: http://pastebin.com/sXZ9FTNz

Try to understand how it works, and you will be able to make it.

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