There are plenty of scripts that do that. What specifications are you looking for? What features do you want? There's a lot of options that could be used in such a script.
I would check out
www.hotscripts.com and see if there are any that do what you want them to do. Otherwise I have a few that I've already made that may meet the specifications that you need.