Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

"xScale is not a valid member of UDim2"?

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

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

2 comments

1

The correct way is Size.X.Scale, Size.X.Offset, etc. depending on what you want.

0

Neither of those two are working.

This discussion is preserved as it was. New answers, comments, and votes are closed.