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

"xScale is not a valid member of UDim2"?

Asked by 3 years ago

So I'm trying to move a GUI using tweening, and I've got most of it together, but for some reason, I keep getting this error "xScale is not a valid member of UDim2." This is the exact code I'm using

local FuelLeftProperties = {

        size = UDim2.new(CurrentFuelGUI.Size.xScale,CurrentFuelGUI.Size.xOffset - FuelDecreaseNum, CurrentFuel.Size.yScale,CurrentFuel.Size.yOffset)

    }

I can't figure it out, then again I have not done much work with UDim2 values so maybe im doing something really stupid.

1 answer

Log in to vote
0
Answered by 3 years ago

the property is Size.X, i dont think it is Size.xScale

1
The correct way is Size.X.Scale, Size.X.Offset, etc. depending on what you want. Benbebop 1049 — 3y
0
Neither of those two are working. generalYURASKO 144 — 3y
Ad

Answer this question