How to assigne motor groups to joysticks

I am trying to use motor groups with the command motor.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct); but it doesn’t work. I would appreciate if this could be solved today because i need to show it to some younger students.