Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Health Gui Decoartions (Shading) wont change their size.X.Offset?

Asked by 5 years ago
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.

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 starmaq 1290 — 5y
0
still not works SunxLightz 30 — 5y
0
bar.ShadeDown.Size = bar.ShadeDown.Size + UDim2.new(0, bar.ShadeDown.Size, 0, 0) starmaq 1290 — 5y
View all comments (5 more)
0
and you would want to learn more about this in order to fully understand starmaq 1290 — 5y
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 ``` goreacraft 1 — 5y
0
THANKS!!!!! SunxLightz 30 — 5y
0
did it worked? which ones? goreacraft 1 — 5y
0
one SunxLightz 30 — 5y

Answer this question