Output duplicate messages count cleared messages

If duplicate messages are printed in succession to the output, instead of printing the same message over and over e.g.:

Test
Test
Test
Test

it combines them like so: Test (x4)

However, when I clear the output, this counter persists. For instance, if I run the following code in the output:

for i=1,5 do wait(1) print("Test") end

and clear the output after the third iteration, the fourth and fifth iteration will print Test (x4) and Test (x5) instead of Test and Test (x2). Expected behavior is that the duplicate counter does not account for messages purged from the output.

2 Likes

Just ran into this bug, which caused me to believe that my script was running twice, leading to an inefficient use of my time.

Reproduction

  1. Open a new, empty place in Studio.
  2. Ensure that the clear-output setting is enabled.
    • settings().Studio["Clear Output On Start"] = true
  3. Insert a Script, which will have a default source of print("Hello world!"), into ServerScriptService.
  4. Continually run and stop the game multiple times.
  5. Observe that Hello world! is appended with a multiplier (e.g. (x2)) indicating that it was grouped with previous cleared messages.