Eclipse Collectibles

Do you understand what this script does?