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

Changing scale positions of a textlabel?

script.Parent.Position.X.Scale = script.Parent.Position.X.Scale - .01

It says I cannot set the scale. I'm not quite sure why not.

1 answer

✓ Accepted answer

You can only set the top-level element of a complex property, not the individual components.

script.Parent.Position = UDim2.new(script.Parent.X.Scale - .01, script.Parent.X.Offset, script.Parent.Y.Scale, script.Parent.Y.Offset)

3 comments

0

Oh so basicly, I can't just change the X.Scale I have to set the offset also?

0

You have to set all four at once, ROBLOX doesn't allow you to set individual components directly.

0

Thank you I got it too work. If you want to check it out its my only active place. Its the +1 numbers floating up.

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