Scale gui script doesn't work properly

Hello!

So I added a NumberValue, and made a script that increases the value to +.0005
every 0 seconds.

And I attached this GUI frame to the NumberValue value, it don’t seem to be working, Support is appreciated!

script:

local loading = script.Parent

local scale = loading.Size

local number = script.Parent.Parent.Parent.Value

scale.X.Scale = UDim2.new(number.Value)

image

I want to make this green frame scale as I want it to, like a loading screen, it don’t seem to be working…

Try loading.Size.X.Scale = number.Value, but I think that doesn’t work so you can try
loading.Size = UDim2.fromScale(number.Value,loading.Size.Y.Scale)

1 Like