Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What's the point of the () in :LoadCharacter()?

game.Players.Mr_Unlucky:LoadCharacter() --What's the point of the () in :LoadCharacter()?

1 comment

0

That calls the method.

2 answers

Every function has these, it is so when you call it, you can pass arguments.

4 comments

0

They're arguments, not parameters, but you've got the right idea. Parameters are a function's input variables. Arguments are values passed to a function during a function call, and which get assigned to parameters.

0

So, basically when defining the function, you have parameters... hmmm

0

Yes, parameters appear in the parentheses of a function definition, not a function call. e.g, function add(a, b) return a+b end. a and b in this example are parameters, whereas 2 and 3 in local sum = add(2, 3) are arguments.

0

Thanks for explaining.

That's pretty much just how it works...

Hope this helped you.

1 comment

0

Think of it like this: local new_obj = Instance.new("Part",workspace) -- You see you may need to put arguments in it.

This discussion is preserved as it was. New answers, comments, and votes are closed.