After researching and trying to figure this out I couldn't come up with a possible solution to create this. I am creating a horror game and I made an animation for a humanoid NPC that will peek around the corner of a doorframe when the player touches a certain part.