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

How does several parameters work?

Asked by
MrHerkes 166
7 years ago

I've been figuring this out ever since I started scripting. I'm confused on how several parameters work on one function. like this for example:

local function randomFunction(part, color, size, pos, etc.)
...

I mean, how does that correctly select the right thing? Please give an explanation.

1
It is in order... Too simple, if I turn this into an answer, it becomes spam. httpOmqCxpcake 70 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

It is literally in an order,

function(param1, param2) print("Parameter 1 is: " + param1) print("Parameter 2 is: " + param1) end function("Cupcakes", "Muffins") Output would be Parameter 1 is: Cupcakes Parameter 1 is: Muffins

(Code may be incorrect)

Ad

Answer this question