After typing a letter at the end of a line in a certain script, Roblox studio will just crash without any error message.
The script
local NewComponent = function()
local data = {}
data.Tab = {}
return data
end
comp = NewComponent()
comp.Tab.
--Error occurs when trying to type a letter at the end of the above line
comp = NewComponent()
I’ve never been able to do it without it crashing. A friend, @Aresko, didn’t run into the problem at first, but later started crashing as well. The two other people I asked to try reproducing it both said that they crashed.
Attached is a place file that demonstrates the crash (or just copy paste the script above into a new map, either works).
Below is a gif demonstrating it, however it probably isn’t too useful considering you can’t see what I’m typing.
https://i.gyazo.com/7d75ae82a190331939c7c512a37d4b77.mp4
I’m thinking it has something to do with Intellisense. Typing a character that isn’t alphanumeric causes it to respond like normal (with a red line showing an error). And deleting the last line of the script will cause the red line to appear on the comment.
With the last line deleted, the script will still crash like normal. However if you close and open the script back up again, you’ll be able to modify the line without any problems. However, if you add it back in, and try to add another character at the end of the problematic line again, it’ll crash as expected.
https://i.gyazo.com/d106da5a776d40dc8826e49f72f7d72c.mp4
Also, trying to add another line after line 3, i.e.
data.Tab2 = {}
will crash studio as well as soon as you enter the ‘.’ after data.
https://i.gyazo.com/7f0b94cd16a2ce1c1a05bebf794ab55f.mp4
Finally, copy pasting something instead of pressing a letter/number won’t crash. But if you press something to add onto whatever you copy pasted, it’ll crash.