This is just a test/framework for multiplayer games. Make sure that you are a scratcher otherwise this wont work. You can remix this and use it for games. Please give me proper credit in the notes and credits section. There might be bugs in this.
Thanks to the Scratch wiki Multiplayer tutorial.