How do you detect a player staring at a part?
I also want to know, if a player stares at a part for 25 seconds then something happens.
How do you detect a player staring at a part?
I also want to know, if a player stares at a part for 25 seconds then something happens.
Please atleast try writing the script before asking for help. DeveloperForum isn’t a code snippet website, only a website to help with your issues.
Yeah, but I don’t know what to do.
Use Raycast, get the player´s head cframe and do a raycast
How do you define “look at”?
Is it “their head is facing the part within some angle”?
Or “the part is anywhere on their screen somewhere”?
Or “the part is within a cone coming out of the camera”?