I have created a float variable (transparency) inside my character BP and cast to it from widget function. Alpha value determines transparency (in fact it determines translucency).
Check and make sure the “return” variable is of type “linear color”. There are multiple variable types that have the dark blue bean and you may not have the correct one. If you try and connect them and it won’t let you it usually tells you why.