From 717e87254be55244638bd943a03846b05427f679 Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Tue, 19 Mar 2024 23:57:53 +0000 Subject: [PATCH] Further work on autopilot asset uploading and other improvements --- luau/38037565.luau | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/luau/38037565.luau b/luau/38037565.luau index e37dfdc..d2a0d99 100644 --- a/luau/38037565.luau +++ b/luau/38037565.luau @@ -78,13 +78,9 @@ print "newHealth declarations finished" local function billboardHealthChange(dmg) local textLabel = Instance.new "TextLabel" - if dmg > 0 then - textLabel.Text = tostring(dmg) - textLabel.TextColor3 = Color3.new(0, 1, 0) - else - textLabel.Text = tostring(dmg) - textLabel.TextColor3 = Color3.new(1, 0, 1) - end + textLabel.TextColor3 = dmg > 0 and Color3.new(0, 1, 0) + or Color3.new(1, 0, 1) + textLabel.Text = tostring(dmg) textLabel.size = UDim2.new(1, 0, 1, 0.0) textLabel.Active = true textLabel.FontSize = 6