I need to know how to keep this if statement from looping until a condition is met where it stops looping
But I have tried repeat ... until and while script.Parent.Value >= 40 do and they do not work.
repeat
wait(1) -- this is to prevent game script time out from occuring
script.Parent.Parent.tornadowinds.intensify.Disabled = false
script.Parent.Parent.tornado.ParticleEmitter.Enabled = true
script.Parent.Parent.tornado.suckcloud.ParticleEmitter.Enabled = true
script.Parent.Parent.tornadowinds.Value = 65
script.Parent.Parent.cloudmain.Stats.Frame.StormName.Text = "Tornado 1"
script.Parent.Parent.tornadowinds.control.Disabled = false
until script.Parent.Value >= 40

1 comment
the while loop should work. what you have in the script and your explanation are contradictory though, do you want it running before 40 or after 40?