How can I make a specific button run a specific loop?

Hi @edrillz ,

welcome to the arduino-forum.

to make your project work much quicker
directly after registering you have been presented a tutorial that explains how to use this forum.

You can move a car by going to the tail and try to push it with your hands and feet,
Very very ineffictive.
Much more effective is to learn

  • there is an igintion key to start the motor
  • there is a clutch, throttle, brake and gears
    and if you use them in this ..... way
    you can be 100 miles away from here within one hour.

Similar thing in using this forum and in programming.
Invest some time to learn how things can be used in a much more effective way.

How to post code in this forum

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

best regards Stefan