Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What does the parentheses in a function do?

Asked by 4 years ago

function LavEnFirkantAdam() So when you make a function you have to make the parentheses and you can write things in them but what difference could it make and why would I do it?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

It is the place to put arguments and parameters.

local function foo(text)
    print(text)
end
foo("Hi")

Result: Hi

Ad

Answer this question