In fact, a word can be an adjective or an adverb, it just depends on the sentence where it's placed in.
In
That line is straight.,
straight is an adjective because it tells more about
that line. In
She went straight to him.,
straight is an adverb because it tells more about how
she went to him. Right?