Whenever the number value goes <= 38 it keeps adding then it stops after adding 100 times
This is in a billboard gui
Script:
script.Parent.Parent.stormwinds.Changed:Connect(function()
if script.Parent.Parent.stormwinds.Value <= 38 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0
wait(0.1)
end
end
if script.Parent.Parent.stormwinds.Value >= 39 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.001/10
wait(0.1)
end
end
if script.Parent.Parent.stormwinds.Value >= 74 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.01/10
wait(0.1)
end
end
if script.Parent.Parent.stormwinds.Value >= 96 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.01/10
wait(0.01)
end
end
if script.Parent.Parent.stormwinds.Value >= 111 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.02/10
wait(0.01)
end
end
if script.Parent.Parent.stormwinds.Value >= 130 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.03/10
wait(0.01)
end
end
if script.Parent.Parent.stormwinds.Value >= 157 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.04/10
wait(0.01)
end
end
if script.Parent.Parent.stormwinds.Value >= 500 then
for i = 1, 100 do
script.Parent.Value = script.Parent.Value + 0.05/10
wait(0.01)
end
end
end)

5 comments
Why do you want to break on the first iteration of every for loop?
I was experimenting to see if break does anything, forgot to remove it.
I didn't know such a script was possible.
Whats the fix then?
well?