様に
1
like;as
トムは気が狂ったように働いた。
Tom worked like a madman.
2
so that;in order that;so as to;in order to
みんなに聞こえるようにもっと大きな声で話しなさい。
Speak louder so everyone can hear you.
3
be sure to
at sentence end
4
I hope (that);I pray (that);may
at sentence end after the -masu form of a verb
早く病気がよくなりますように。
I hope you'll get well soon.