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

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by
Fad99 286 Moderation Voter
5 years ago

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)

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 Bylli_Oruze 38 — 5y
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 Fad99 286 — 5y
Ad

Answer this question