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?
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?
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thank you very much! I wonder why ROBLOX imlpleneted it like that ;D
I always have trouble with this when I copy and paste a position. xD