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

I can't do a math addition in a UDim2 Vector Matrice. How can i do this?

Asked by
Volt3Z 40
7 years ago

I have this line of code:

while wait(0.01)do
    second.Rotation = second.Rotation -1
    third.Size.X.Scale = UDim2.new(third.AbsoluteSize.X + 0.002,0,0.05,0)
end

and when i play it says:

Scale cannot be assigned to

PLZ can i have a solution cause i tried a lot of things!

0
You can't go beyond the size of the GUI. You can do third.Size, but you can not change any other property of it unfortunately. M39a9am3R 3210 — 7y

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
7 years ago

All attributed of Size are read-only values. You may manipulate the Size completely, or not at all - you can't individually maniulate values of the size.

while wait(0.01)do
    second.Rotation = second.Rotation -1
    third.Size = third.Size + UDim2.new(0.002,0,0.05,0)
end
Ad

Answer this question