Aloha is a universal salutation that can be a greeting or farewell, so it works for saying bye or hi. You can say “aloha” when you greet someone or when you’re leaving.
It’s a good Hawaiian word to know because it applies in so many situations!