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

UDim2 size changing acting weirdly?

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

✓ Accepted answer

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.

2 comments

0

Thank you very much! I wonder why ROBLOX imlpleneted it like that ;D

0

I always have trouble with this when I copy and paste a position. xD

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