2001 Hyundai XG300 stalls and won’t start

My stall and will not start. Something goes tick when I turn the ignition switch

Do you mean… My car stalls…? And won’t restart, just a click click? How many red or yellow lights were lit up on the dash when this car stalled? I’m guessing at least one, the battery symbol. Is that right? Could be bad alternator, could be bad battery.

Not battery or alternator

How do you know? How would we know? Your entire original post was 15 words with next to no informationat all. If you want some help, lets see some info. Engine, miles on it, Check engine light on? Batt light on? How have you tested the alternator? Voltage? How have you test the battery? Voltage?