Also look at the 2nd comment which shows how to set up the speed of motor with joystick.
When controlling multiple motor with one joystick you have to make a variable that’s outside the while loop and make the variable equal the joystick value
Then put the variable inside the motor speed.