Clicking noise and smoke out of exhaust

Okay so someone (not me) swamped my atv pretty bad and since then it’s been making this clicking sound in the motor. The clicking speeds up with the Rpms and sounds like it’s coming from to top of the motor where the valves are. A buddy of mine says it could just be the valves need an adjustment. Anyone with any suggestions what to check or know what’s wrong is deeply apprieated. And I won’t like anyone ride it from now on lol I have a video of the clicking on my iPhone and it won’t upload it so if you want to watch it I can send it to you via email. Thanks!!