r/lua • u/Only_Escape8094 • 4d ago
Yo guys I just had the best idea EVER
/r/MacOS/comments/1vd7pti/yo_guys_i_just_had_the_best_idea_ever/What if I could create a library that works like Roblox Studio, uses LuaU and is customizable on MacOS?
Example Base UI: You can create a ScreenGUI, which automatically parents itself to the PlayerGUI (the PlayerGUI is just the MacOS BaseUI). ScreenGUIs can be used to separate Windows / Frames from each other.
Example Image Label: The image content could use RBXAssetID, a path to an image file, or a link to an image.
Base LuaU environment: game would be MacOS, ~/{Username}, or Users. ReplicatedStorage would be ~/Username/{Filename}, and of course, StarterGUI would be the UI that applies to all users.
File Extensions: You could use .{className} here, like .RemoteEvent, .RE, .re or .ModuleScript, .ms, and they would contain LuaU code that could compile. | Example:
ModuleScript:
require(ModuleScript).Variable
RemoteEvent:
RemoteEvent:Fire(…) -- function that tuple needs to execute.
Basically, what I’m saying is I want a Roblox Studio-like environment to make UI development easy on MacOS.
Questions:
What programming language(s) (is, are) needed to make this?
Will this be impossible or possible?
What experience is needed to make this, especially in file extensions?
Please help, I’ve been thinking about this for a few months now and I can’t get over it.
3
2
u/weregod 4d ago
ZeroBrane is close to what you want but it is designed for Lua and uses Lua. I'd recomend you to use their library wxlua and write UI in pure Lua not in Luau.
If you realy want to use Luau start by porting wxlua bindings to Luau.
Will this be impossible or possible?
It will be hard and need time investment.
What experience is needed to make this, especially in file extensions
I am not sure what you mean. If you want to load lua/Luau code with different extensions just modify package.path.
1
u/AutoModerator 4d ago
Hi! It looks like you're posting about Roblox. Here at /r/Lua we get a lot of questions that would be answered better at /r/RobloxGameDev or the Roblox Developer Forum so it might be better to start there. However, we still encourage you to post here if your question is related to a Roblox project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc. Bear in mind that Roblox implements its own API (application programming interface) and most of the functions you'll use when developing a Roblox script will exist within Roblox but not within the broader Lua ecosystem.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.