Unable to reference player within an instantiated prefab

You should use code tags , and you should be more explicit about what thing “doesn’t work”. Do you get an error message? If so, when? Does it refer to a specific line of code? Does anything at all happen in your game? Can you confirm that specific parts of your code are or aren’t running by adding Debug.Log calls?