uhhh, scale cannot be assigned to??????
Asked by
4 years ago Edited 4 years ago
uh, i made a healthbar script that changes size in comparison to the players health and on the last line above end it says scale cannot be assigned to;
01 | local player = game.Players.LocalPlayer |
02 | local health = player.Health |
03 | local Denominator = 100 |
06 | game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false ) |
08 | health.Changed:Connect( function () |
09 | script.Parent.Frame.TextLabel.Text = health.Value .. " / " .. Denominator |
10 | script.Parent.Frame.Size.X.Scale = health.Value / 100 |