The server is never locally controlled?

no, in the case of a client calling this, the spawning would execute on both the client and the server since both of them pass the if statement