I'm trying to change the size of a Frame using a UDim2 value, and the problem is I want some values to remain constant. I'm also trying to use scale instead of offset, so the GUI fits universally.
Here's the script:
coroutine.resume(coroutine.create(function()
time = fuel/10
while not trigger and fuel < 100 do
time = tick() - time
fuel = time*10
if fuel > 100 then fuel = 100 end
fuelbar.Size = UDim2.new(fuel*2,0,Y,0) --I need a way to substitute the y-scale size value in for Y
game:GetService("RunService").RenderStepped:wait()
end
end))

1 comment
I do want the y to be constant, but I want it to be the previous size of the UDim2 value. I figured it out myself though, thanks