Set Multiplayer Name

Using delays for this kind of thing is not really good programming standard. Sure it will work for you 90% of the time but when you are running things on actual servers that 90% may drop down to 50% for people with poor internet connection. What you want to do is use timeouts and callbacks to make sure that something has happened on the server before allowing the user to perform another action. It could be as simple as setting a bool on the server to send to the client.