Maybe disable 200 local variable limit on local scripts?

There are some crazy epic cases, where someone might write a cloth physics script auto-generates an optimized script that uses loads of upvalues. Even then, it’s possible to efficiently use 200 upvalues, then take advantage of another 200 upvalues by passing rope end points to another function.

Edit: by crazy stuff I mean scripts that look like this:

1 Like

I mean I probably have 25 variables such as Main=script.Parent, Control=Main.Control, Interface=Main.Interface, etc, but those are for convenience, and one could potentially have 100 of those GUIs inside Main, without it making the person a bad coder.

1 Like

The only one I could think of is if you are cross compiling from a different language and the lua output is really rough.

But in that case you could also just use one giant array.