Scale object with slide bar widget

Hi guys,

please i am trying to do widget - slidebar on the wall in game, that will be used for scale object - for example BOX. I already did widget but i am totally lost in graph setting for this action. I am just the begginer and will be glad for all helping hands, Thank you.