As my old dad used to say "they must have seen you coming"! Are you, young, female, blonde and cute? :>D
Engine tick is caused by play in the valve lifters and is an easy repair. It may have been the timing chain, but.... "Elantra's new, maintenance-free silent timing chain enhances engine durability while reducing noise." In normal circumstances, tick is not a reason to put in a new engine.
It sounds like your issue is bad connectors to the ECU. They spraying the connectors with electrical switch cleaning spray.
If that doesn't work, you need a good auto electrician with a professional grade scan tool computer to diagnose the issue. These computers can record exactly what happens to put the vehicle into Limp Mode.
https://www.google.com/search?q=auto+electrician+near+me
..
×