local bar = script.Parent.Parent.Frame.Bar

while true do
bar.ShadeDown.Size.X.Offset = bar.Size.X.Offset
bar.FlareUp.Size.X.Offset = bar.Size.X.Offset
bar.ShadeDown.Size.X.Scale = bar.Size.X.Scale
bar.FlareUp.Size.X.Scale = bar.Size.X.Scale
wait()
end

The Error is Offset cannot be assigned to

Players.SunxLightz.PlayerGui.HealthGui.System.Fix Line 4 (default script) (not local)

I wanna make the decorations move with health When health moving left (minus) the decorations isnt moving.

9 comments

0

i think Size.X.Offset is a read only property, so try just changing the size and only changing the X offset instead of doing that

0

still not works

0

bar.ShadeDown.Size = bar.ShadeDown.Size + UDim2.new(0, bar.ShadeDown.Size, 0, 0)

0

and you would want to learn more about this in order to fully understand

0

can you try while true do  bar.ShadeDown.Size = UDim2.new(bar.Size.X.Scale, bar.Size.X.Offset, bar.ShadeDown.Size.Y.Scale, bar.ShadeDown.Size.Y.Offset) bar.FlareUp.Size = UDim2.new(bar.Size.X.Scale, bar.Size.X.Offset, bar.FlareUp.Size.Y.Scale, bar.FlareUp.Size.Y.Offset) wait() end

0

THANKS!!!!!

0

did it worked? which ones?

0

one