Duplicated Scripts Aren't debugged properly

If I duplicate a script, and the new script has an error in it, the debugger will bring up the old script and show the line that threw the error. For example if I make a script A and then duplicate it to create script B, if I move B to another location such that a line in script B now throws an error, when I run the game, the debugger will bring up script A and show the line of code that threw the error in script B. If script B is open in the tab, it will also be closed.

Hey There!

Thanks for bringing this to our attention.
A ticket was filed, but we need more information about it.

Please provide a Log File and a Repro Placefile so we can investigate it right away!

If you need assistance or info on how to get these files, please refer to the How to post a Bug Report - Bug Reports - Developer Forum | Roblox

Thanks for understanding!
Have A Nice Day!