Go to the BP_MasterMeleeWeapon and open the Find Melee Animation function.
Next create a new bool variable called “Use Random Attack Montage”
Next create a new integer variable called “Current Index TP” and set default value to -1
Next create a new integer variable called “Current Index FP” and set default value to -1
Next create a new Anim Montage variable called “Selected FP Melee Montage”
Next create a new Anim Montage variable called “Selected TP Melee Montage”
After creating those variables copy the image shown below, you will need to create a highlighted nodes.


Now if you want the melee weapon to use a random melee animation set the “Use Random Melee Montage” to true.