the UI Slider component has an OnValueChanged UnityEvent, tldr just have that call into your udon script and update the sync'd variable accordingly, granted you'll want to make sure you transfer ownership and limit the update calls to not clog up the network