As a Roblox developer, it is currently a pain in the [ Content Deleted ] to traverse the DataModel to reach the ModuleScript libraries that we use frequently. When we’re in a networked game, we can’t guarantee the objects will immediately be there, so we usually have to go through WaitForChild chains in every single script that we want to use a library in.
This results in a lot of redundant code having to be typed, and if we move anything around, we have to go back and adjust the code to correctly reference the libraries we’re looking for, and ultimately makes me hate having to write code in Lua with a burning passion.
So this got me thinking, if we have the LinkedSource feature in universes, why can’t we just add our library code into there, and then load it in remotely by it’s name, via require?
How it would work in practice:
Roblox’s old LoadLibrary function is a FANTASTIC example of how something like this makes things so much less painful in Roblox development.
If you wanted to use Roblox’s RbxGui library, all you had to do was:
local RbxGui = LoadLibrary("RbxGui") -- BOOM! There it is.
And that was it. Really! No hierarchy traversal, no WaitForChild chains on the client, it was really that easy.
I want advanced game development on Roblox to be this easy and streamlined for libraries I use, without having to worry about the ugly quirks of Roblox’s DataModel and network replication.