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

I don't get what the difference between () and {} is?

Asked by 5 years ago

So like for example


local valuestosave = {player.Leaderstats} --The { } brackets what does it do?

what is the point of using it ?

1 answer

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

{} are used for making tables which can store more than one value and is seperated by a comma. You don't have to use a comma at the last value.

local myTable = {
2013,
"hello",
true
}

() are used for a variety of things, for example used in functions

print(1)
Ad

Answer this question