extends HBoxContainer @export var bus: int = 0 # Called when the node enters the scene tree for the first time. func _ready(): find_child("Button").connect("value_changed", pls) func pls(val: float): if val < 50: AudioServer.set_bus_volume_db(bus, -5 + (100 - val) / 2 * -1) if val > 50: AudioServer.set_bus_volume_db(bus, -5 + (100 - val) / 10) #print(AudioServer.get_bus_volume_db(bus)) #print(val, " ", 100 - val)