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

UDim2 size changing acting weirdly?

Asked by 7 years ago
Edited 7 years ago
script.Parent.Colours.Red.Size = UDim2.new({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
3
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 = UDim2.new({sliders, 0},{0.761, 0});

So you have to do this

script.Parent.Colours.Red.Size = UDim2.new(sliders, 0, 0.761, 0);

Hope this helps.

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

Answer this question