Didn't delete any scripts or edit any, and this happened.

I was publishing my game to unity play and after it was done, I played it in unity play. After a while I did some changes to it in unity. When I played the game, that happened. Can someone please help me fix this? Also, all the player’s UI had disappeared. Why?

Be sure you’re passing all the objects/prefabs to scripts. It seems in one of your object the script CompassElement.cs is missing an object, since it says there’s a null reference.