You'll need to script it yourself. The catch is that the script only runs inside a game you own, so don't expect to hop on one in someone else's place — unless you're exploiting, which is a ban risk you don't want.