I want to ask something about songwriting, when I am writing a song, should I use/build from scales or should I just try to find some riff on the guitar?

Well, please read the rules + faq of any forum you visit first.

This is for original pieces only. Please use the techniques forum for technique questions. There are already threads aplenty in there that take into account what you are asking.

Reported, for moving or closing.