I am creating a way to download my framework from GitHub. I have already got most everything working. It creates all the folders and scripts, with the correct parents, the correct names, and the correct source code. However, all of the scripts our module scripts. I need specific scripts to be LocalScripts and regular Scripts. Assuming that I don’t use string manipulation on a comment in the script to get its type. Is there another way. I was thinking that I could rename the script on GitHub to something like Script.lua.local, but that removes all of the coloring of the text since it is no longer a lua file.
Many projects that sync code into studio opt for script.client.lua and script.server.lua for local and server scripts respectively, regular .lua files being created as modules. This maintains syntax highlighting as the file extension is still .lua, and allows for you to encode the script type in the name for clarity in the code’s repository, and in the filesystem it’s cloned to.
This is the standard use by Roblox’s “Rojo” tool. If you follow this standard, you can use the tool to easily move scripts into Roblox Studio.
Highly reccomend rojo! It’s what I used for all my projects! vscode by microsoft has an integrated terminal and a roblox lua autocomplete extension (by Kampfkarren) which makes creating projects using git (or any other source control system) and rojo a breeze!
@evaera also made a Rojo plugin for VS Code, so really easy setup and integration too Rojo - Roblox Studio Sync - Visual Studio Marketplace
Thanks for the replies! I found exactly what I was looking for.