Skip to main content
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.
LRM_INIT_SCRIPT(function()
    print("Hello, world!")
    -- this wait is very important!!!
    task.wait()
end)
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()
    end
end)
LRM_INIT_SCRIPT(print("Hello, world!"))
LRM_INIT_SCRIPT("print('Hello, world!')")
local function init()
    print("Hello, world!")
    task.wait()
end
LRM_INIT_SCRIPT(init)
I