Whenever attempting to scale an ImageLabel based on the percentage of your health, it gives the error Scale cannot be assigned to
What am I doing wrong? I’m correctly defining the humanoid and it’s health, the exact same definition works in another local script I made
Code:
local percentage = hum.Health/hum.MaxHealth
print(percentage)
script.Parent.Size.Y.Scale = percentage*0.2
print(script.Parent.Size.Y.Scale)