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

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

So like for example


local valuestosave = {player.Leaderstats}

--The { } brackets what does it do?

what is the point of using it ?

1 answer

✓ Accepted answer

{} 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)

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