Script error: The function "loop" does not exist.