local intermission = script.Parent.intermission local val = Instance.new('StringValue') val.Parent = game.ReplicatedStorage val.Name = 'intermission' val.Value = 30 while true do if val.Value == 30 then val.Value = val.Value - 1 repeat until val.Value == 0 end end
this script wont do anything and it does not show any errors in output
Try using a NumberValue rather then a StringValue. It might not be seeing the StringValue as a Number so it won't subtract anything from it.