Luarmor uses Luraph™️ as the obfuscation provider, so their macros can also be used with Luarmor - along with Luarmor macros.
For more information on what a constant function is and is not, view this.
This macro allows you to run a piece of code before your script is ran. It accepts a constant function.
You must yield somewhere, even if it’s just a task.wait() at the end. Otherwise, script_key will read as nil.
Copy
LRM_INIT_SCRIPT(function() print("Hello, world!") -- this wait is very important!!! task.wait()end)
Copy
LRM_INIT_SCRIPT(function() -- some code -- wait for the user to put the key in or something while HasUserCompleted == false do -- but this wait is needed!! task.wait() endend)
Copy
LRM_INIT_SCRIPT(print("Hello, world!"))
Copy
LRM_INIT_SCRIPT("print('Hello, world!')")
Copy
local function init() print("Hello, world!") task.wait()endLRM_INIT_SCRIPT(init)