So I have my code here.
db_value.Value = db
repeat wait(1)
db_value = db_value -1
print(db_value)
until db_value == 0 --> This is supposed to loop it until the value reaches 0, right?
end
This code just loops infinitely even though my goal is to stop it once it reaches 0, how can I fix this?

1 comment
Yeah, I changed it to local db_value = script.Parent.db.Value