Sometimes dreams come true.

Literal

Dream [topic-は] sometimes come-true.

時として ('sometimes, at times') is a more literary alternative to 時々. あたる here means 'to come true' in the sense of a prediction or guess hitting the mark — the same verb used for winning a lottery or guessing correctly.