Good chance the cam chain is rattling but it is likely to be a good chunk of clutch rattle too.
Get things cleaned up good first. From there, pull of the cam chain tension unit. There is a gasket here, it is not very important just do not tear it. hold your hand over the open and and slowly loosen the lbolt that holds the tensioner. The rod might be stuck but if not, it will spring out. If stuck, twist and pull and it will pop out. Clean it and put it back together. Stick it on the bike and loosen the bolt to give it a base line tension.
From here the next thing is to pull the carbs off and clean them. Now the air box gives people trouble, remember that it splits in half! You have 2 bolts that hold it to the frame, well immediately below those bolts are 2 more bolts, 1 on each side. It you loosen these, the bottom half will come off.
Once the air box is off, loosen the manifolds on the carb side so they stay on the engine.
Now at this time, download the manual here for the 78k/f and clean them carbs till you would drink out of them and then clean them again. Clean EVERYWHERE, the fuel lines, the accel pump unit(might need to be replaced if any tears), clean everything! I can't stress it enough on the 77/78 bikes. I have seen many times where even a shop cleans them and there is crud left over. A very common place is the idle jets. Being pressed in, many think they cant be removed. BUT they can! Just wrap a cloth, piece of rubber, something, around the jet and grip with pliers. Twist and pull. You might have to twist back and forth a bit. Do not wiggle them side to side if you can help it, You could crack the housing and that means in most cases, replacing that carb.
Now get a couple strands of fine copper and gently clean each and every hole twice and spray with carb cleaner to wash out.
From there, follow the manual and it will tell what all your base settings should be.
This is your starting point for tuning the bike.
Above all, get the manual. It will save you some head beating!
The ride IS the adventure. The destination is just to get gas!