I'm not sure if there is a pre-built Pac Man-ish script or not, but it can be made.
Honestly though, your best bet would be to request help and make the script yourself. That way, you will know how it works, and how to properly implement it into your game.
You can also try and get a partner to help you, but they'd probably like to know more about yourself and your intentions before making any firm commitment.
Cornbread Chemist