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
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
also you may wanna use tables and in pairs loops https://www.youtube.com/watch?v=nRS255_y8rM https://www.youtube.com/watch?v=Jim-NPFSAFg&list=PLXX6hhg4CysbJWPZTFBxCxutohhKNrHKU&index=2
still not works
bar.ShadeDown.Size = bar.ShadeDown.Size + UDim2.new(0, bar.ShadeDown.Size, 0, 0)
and you would want to learn more about this in order to fully understand
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() endTHANKS!!!!!
did it worked? which ones?
one