The listen server works fine but why is my dedicated server not working right?

nope, that shouldn’t be the problem… Not sure where your problem is coming from there. It looks like the spawn implemenation isn’t continuing after getting control of it and it is sitting at spectator mode. Can’t tell where it fails. Best bet is to debug it from the point it is suppose to spawn the player and work backwards.