i’ve been trying to make a slenderman type game on roblox but i want to get the static overlay gui out of the way before anything else so i don’t stress about it later. any ideas on how to do this? basically what i’m trying to do is: when the player looks at Slenderman, a static overlay will cover the screen
i already have the GUIs ready and everything. I just need a bit of help with the whole looking at thing
It will return the position in ui offset and will return a boolean if the player’s screen is pointing in the vector3’s direction. Combined with raycasting, you can determine if the player sees an object, even if they are not directly looking at it.
i’m still actually really new to scripting so i have little to no knowledge on any of this. i can see what it does but i just don’t know how to actually execute it
if the function returns a point within the semi-transparent bounding box, it sends a ray to detect if the vision is occluded. The raycasting is not too difficult either. I’d love to share some bits of code to help you.