I have a function that gets the player ref from array via Select in UI or trace. It passes the reference to the Spectate Player event.
Spectate Player