MainPlayerScript partially documented.