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

Scale cannot be assigned to (blank)?

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?

1 comment

0

You cannot set the individual values of UDim2, you need to do it as a whole: UDim2.new(xScale,xOffset,yScale,yOffset)

1 answer

✓ Accepted answer

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.