Getting gameplay Tag from line trace Hit actor

Your class needs to implement the IGameplayTagAssetInterface and store a FGameplayTagContainer.
I think this can only be done in C++ (unless it has changed recently).

This article has helpful info for getting started.