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

How would i make something detect if a player is looking at it?

Basically im making some sort of monster, and when you look at her, she chases you. i know i need to use WorldToScreenPoint or something but i literally have no idea how

1 answer

✓ Accepted answer

Maybe, you can make a part weld on to the face to represent its vision, if the monster is in that reigon3 then it can chase you. (just an idea)

2 comments

0

im pretty much new when it comes to scripting, so i have no clue what reigon3 is, i did give her a click detector and used a script that detects if the mouse goes or hovers over her

0

Sorry for the late response! This link has A LOT of info on how you would need to use reigon3's: https://developer.roblox.com/api-reference/function/Workspace/FindPartsInRegion3

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