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

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

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!

1 comment

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.

1 answer

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

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