Further work on autopilot asset uploading and other improvements

This commit is contained in:
Lewin Kelly 2024-03-19 23:57:53 +00:00
parent b9b47c1771
commit 717e87254b
1 changed files with 3 additions and 7 deletions

View File

@ -78,13 +78,9 @@ print "newHealth declarations finished"
local function billboardHealthChange(dmg) local function billboardHealthChange(dmg)
local textLabel = Instance.new "TextLabel" local textLabel = Instance.new "TextLabel"
if dmg > 0 then textLabel.TextColor3 = dmg > 0 and Color3.new(0, 1, 0)
textLabel.Text = tostring(dmg) or Color3.new(1, 0, 1)
textLabel.TextColor3 = Color3.new(0, 1, 0) textLabel.Text = tostring(dmg)
else
textLabel.Text = tostring(dmg)
textLabel.TextColor3 = Color3.new(1, 0, 1)
end
textLabel.size = UDim2.new(1, 0, 1, 0.0) textLabel.size = UDim2.new(1, 0, 1, 0.0)
textLabel.Active = true textLabel.Active = true
textLabel.FontSize = 6 textLabel.FontSize = 6