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

UDim2 size changing acting weirdly?

Asked by 7 years ago
Edited 7 years ago
script.Parent.Colours.Red.Size ={sliders, 0},{0.761, 0})

Hi guys!

On printing I can see that "sliders" does equal a value - this just makes the size go to (0,0,0,0) for some strange reason?!

Any ideas why the size won't change?

1 answer

Log in to vote
Answered by 7 years ago

The problem you are having while setting it is a simple one to fix. Roblox doesn't like when you do this

script.Parent.Colours.Red.Size ={sliders, 0},{0.761, 0});

So you have to do this

script.Parent.Colours.Red.Size =, 0, 0.761, 0);

Hope this helps.

Thank you very much! I wonder why ROBLOX imlpleneted it like that ;D jjwood1600 215 — 7y
I always have trouble with this when I copy and paste a position. xD MrLonely1221 701 — 7y

Answer this question