There could be a number of reasons why your 2011 Hyundai Elantra is making a ticking sound. One possibility is that the noise is being caused by a problem with the engine or one of its components. Another potential source of the ticking could be a fault with the car's suspension system. It's also possible that the sound is coming from something else entirely, such as the brakes or the tires.
If you're not sure what's causing the noise, it's best to take your car to a qualified technician for diagnosis. They will be able to determine the source of the ticking and recommend the best course of action to address the issue.