UI displayed through randomness and code

Makes sense to me, how can I get the “rarity” value out from the “RollRarity” call?
image
I am guessing some form of return statement?

Edit: I made a work around for my RollRarity event which set an integer correlating to the rarity’s position in the array, now it all runs smoothly. Massive thanks for all your help!