regen script