Damage other players when hit with a melee and vice versa?

How would you damage another player when your melee weapon collides with them in a multiplayer game? I have looked all over and there is not a single tutorial on how to do this besides the ones about AI damage, which I don’t want. I just want to know how to create a simple multiplayer melee attack system when you can damage other players and other players can damage you.

Assuming you know how multiplayer works in UE, this is what you need

c++: UGameplayStatics::ApplyDamage | Unreal Engine Documentation

bp: Apply Damage | Unreal Engine Documentation

If you don’t know how multiplayer works, I suggest that you read this: