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

Changing scale positions of a textlabel?

Asked by 10 years ago
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

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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)
0
Oh so basicly, I can't just change the X.Scale I have to set the offset also? YellowoTide 1992 — 10y
0
You have to set all four at once, ROBLOX doesn't allow you to set individual components directly. adark 5487 — 10y
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. YellowoTide 1992 — 10y
Ad

Answer this question