function onCreated() { event(player, "UpdateHealth").connect(this); } function onUpdateHealth(newVal) { Health_Bar.width = newVal; }