This script is good. There's a few minor bugs with it, for example when teleporting it doesn't wait for the teleport to complete. It keeps trying to teleport over and over again.
I have a bigger project Idea I'd like to discuss with you, PM me if you are interested :P Trust me it'll be worth...