Hello, I am trying to make a horror game and make some “sudden” jumpscares, this one is something like “when a player turns around, and if on the screen there is a scary figure” I want the scary figure to rapidly move and unload, however, I can do it, I just want to know how could I trigger it, it should trigger even if the figure is on a corner of the screen. Thanks for any help!
To clarify, I tried looking everywhere, but I do not understand it fully as none asked a question like mine.
Try raycasting using the Head.CFrame.lookvector, then you can see if it faces within the certain direction or hits the part, then you trigger the jumpscare.
You could also send a raycast from the camera’s position with a direction of the camera’s lookVector instead, if you want to see where the player is actually looking and not where their character is looking.