Move character by clicking on the multplayer

guys, I’m trying to configure the clients to walk with a click, but it’s not working, I’m trying this logic, can someone help me?