Hello everyone ,
I’m new to the DevForum, and also a amateur scripter, so I have one Question, that I couldn’t find a Answer on. So I’m here.
I often saw people using {} after using local.
Like “local … = {}”
Why do I need this and what can I do with it?
1 Like
{}
is a table , there are resources out there:
Data type which can store multiple values of any non-nil type, including booleans, numbers, strings, functions, and other tables.
https://www.lua.org/pil/2.5.html
You should be able to find lots of info on tables all over the dev forum, the wiki or just on google in general now that you know what they are called.
2 Likes
Yeah, I was looking for a name but i couldn’t find one, so i asked here, an you also gave me a link how to use them I appreciate it a lot
2 Likes