So, I have this gui to appear when certain requirements are met, and when it gets up to
Frame.Position.X.Scale = (0.45 + (currentMedals.Value / 10))
it breaks and says Scale cannot be assigned to (blank)
What's wrong here?
So, I have this gui to appear when certain requirements are met, and when it gets up to
Frame.Position.X.Scale = (0.45 + (currentMedals.Value / 10))
it breaks and says Scale cannot be assigned to (blank)
What's wrong here?
These properties are read only, you must set a new UDim2 each time.
This is an example only:-
local curUdim = Frame.Position
curUdim = UDim2.new(0.45 + (currentMedals.Value / 10), curUdim .X.Offset, , curUdim .Y.Scale, curUdim .Y.Offset)
Hope this helps
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You cannot set the individual values of UDim2, you need to do it as a whole: UDim2.new(xScale,xOffset,yScale,yOffset)