How do i make a Fnaf Animatronic AI

Can someone help me figure out how to do the AI like in the first Fnaf game?

I wouldn’t call it AI.
It’s more like a time - gate system.
If timer == 0, and gate == open = game over.
If timer == 0 and gate == closed = reset

Thanks I hope this might work

HEY guys, how can I make them or…something else.

How can I get them?


How can I get them?

How can I make them?