Making a gui that acts as a progress bar, the errors is shown in the image:
The code is this:
local temperatureScreen = script.Parent
local barFrame = temperatureScreen.BarFrame
local bar = barFrame.Bar
local title = temperatureScreen.Title
local temperature = temperatureScreen.Temperature
local status = temperatureScreen.Status
local config = temperatureScreen.Configuration
local tempValue = config.Temperature
local maxTemperature = config.MaxTemperature
local interval = config.Interval
for i = tempValue.Value, maxTemperature.Value, interval.Value do
tempValue.Value = tempValue.Value + interval.Value
temperature.Text = tempValue.Value .. "°C"
bar:TweenSize(UDim2.new(tempValue.Value / maxTemperature.Value), 0, 1, 0)
wait(1)
end
Why is the Y scaling going to 0 when it is being set to 1 in the script?