Need help in Multiplayer Function

Updated answer