the debug log i put in to make sure the name was correct. Am I right in thinking that the third line makes the instantiated planet become a child of the current object? Off topic question there but, the main problem is:
It is telling me “The thing you want to instantiate is null”. I have checked prefabName and it exactly matches the name of the prefab I want to instantiate, What am I doing wrong here?