my headlights wont stay on on my car unless switch is held

Give them the year, make and model too.

i have a 19995 pontiac sunfire

have a 19995 pontiac sunfire

What is the warp speed of that one?

That would tend to indicate a bad switch. Do you mean the regular driving lights or the brights

On a GM, the first suspect is the multi-function switch in the steering column. This switch controls all the functions located on the left side stalk. Turn signals, headlight switch, high/low beams, and windshield wipers.