Subject: 2004 mitsubishi lancer 2.4 liter
Question:

Whenever I push the gas pedal to take off I hear a clicking sound and then
it will take off.

Answer: Jacob,
This could be any number of things. It could be a relay that controls the fuel flow that could be getting stuck. You may want to have a mechanic inspect your relays and replace any that are faulty.
Good luck!