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

Gui Grow Line, won't grow. Why?

Asked by
thePyxi 179
8 years ago

The error is par.Size.XScale, yet I don't know what other alternative there should for to fill that spot. The error says "XScale is not a valid member."

par = script.Parent

script.Parent.Visible = true
print("Act. Completed. Activating movement.")
repeat
    wait(0.1)
    par.Size = UDim2.new(par.Size.XScale + 0.05, 0,0.005,0)
until par.Size.XScale == 0.5

1 answer

Log in to vote
1
Answered by 8 years ago

gui.XScale isn't a valid property, to get the X scale it's just

par.Size.X.Scale

If you want the offset

par.Size.X.Offset
0
Of course, I am not much of a Gui developer. No wonder I couldn't see the issue. Kurieita 125 — 8y
Ad

Answer this question