Instructions
Converting English with Software
Search the Internet for English to LUA tools and download them. English to LUA programs attempt to convert simple English sentences into lines of code, doing all of the hard work automatically.
Read the program's ReadMe file or the user's manual to familiarize yourself with the software. Every piece of software is different and creates code in slightly different fashions. Some require a specific sentence template, while others have coders fill in words they want to script in a sentence template, much like ad libs.
Write an appropriate English sentence into the software and convert it into LUA. One such example would be "When the player touches a brick, the player's health becomes 0."
Edit the resulting code to make it correspond to "Roblox" standards. For example, make sure that the objects refer to "Bricks" and "Humanoids," two words which might be lost in the English to LUA translation process.
Copy the code, and then open "Roblox" studios.
Expand the "Workspace" folder. Open "Script" to access the level's code.
Paste the code into the script, and save the changes. Test the code by running the game in "Roblox."
Writing LUA Manually
Visit the "Roblox" Wiki and read the scripting tutorials. These guides will tell you how to convert English to LUA in a step-by-step process. Visit the Absolute Beginner's Guide to Scripting and the In-depth Scripting Tutorial.
Create a sentence that you want to replicate in LUA, such as "If the brick touches the player, the brick heals the player."
Search for each relevant word in the "Roblox" Wiki to see if there is code associated with that world. For example, searching for "If" will result in the "If, then" code template.
Incorporate the code from each element in the sentence to create a complete code.