Let's say I have multiple functions like so:
local function1 = function()
local printMessage = "Hi! This is function 1"
return printMessage
end
local function2 = function()
local printMessage = function1()
print (printMessage)
end
Would this be just as efficient as doing:
local function1 = function()
local printMessage = "Hi! This is just a function!"
print (printMessage)
end
I'm trying to keep my code as clean, but as efficient as possible. Thanks in advance for any advice.
edit:
I know you're probably thinking, "why not just do one function?"
This is just an oversimplified version of what I'm doing using print as an example.
