I doubt many people will support this, mainly because not many people will completely understand what a header file is, but lets try anyways...
This would be a decent idea for a Service or something, or mabey just add it to ScriptContext. The point is having a single script that would be able to run before any other scripts in the game, which could do things like define Global variables before scripts are trying to use them, or search workspace for a certain object, before other scripts manipulate its location.
Here are some ideas of it's features:
-can access the source of other scripts(read and edit)
-has a locked source(no other scripts can read/edit it)
-can only be edited in studio(cannot be changed during test/play modes)
-runs one frame or so before all other scripts
-after first frame, it runs at the same speed as any other scripts
And here's a possible location:
game:getService("ScriptContext").HeaderScript
If anyone actually understood that, I hope I get _some_ suppot...
And I know this is not the true definition of a header file, it just seemed convenient because this this feature could be used similarly, so call it whatever you like. |