So earlier this evening I wanted to see if I could possibly make some of the syntax highlighting animated in Roblox Studio’s script editor. I wrote a script that looks a bit like this:
while wait() do
settings().Studio["Built-in Function Color"] = Color3.fromHSV((tick()/5)%1,1,1)
end
When I run this code from the command bar, Roblox Studio crashes.
I turned on the “Show QT warnings in output” Studio setting, and this is what I see in the output when the crash happens:
Oddly enough, if you just paste this line into the command bar and hold down enter to spam the command, the effect works as intended:
settings().Studio["Built-in Function Color"] = Color3.fromHSV((tick()/5)%1,1,1)
I suspect there is some sort of threading issue here, where Lua and Qt are trying to change stuff at the same time and they run into conflicts with each other.
While this isn’t technically a pressing issue, this crash can be replicated inside of a plugin, so a malicious user could crash Roblox Studio using this if they wanted to.