In my experience clunking while pedaling is either a loose or worn out bottom bracket or a loose pedal. You should check both right away and not ride the bike until you figure it out because often the problem can be solved by just tightening the loose part, and often can ruin other things if continued to ride in that condition.