Programming 2 motors with one button

I’m trying to program joystick button one the run two motors at the same time…I have one motor hooked up to a spike relay and the other to a jaguar

Can you post code of what you’ve got so far so we can help you along?