What is "{}" and how can i use it?

Hi,
I recently saw somewhere that users using for example local something = {}, and i was trying to search in internet to know what is this but didnt found anything. Anyone know what is this and how to use it?

That’s how you declare an array or dictionary
https://www.lua.org/pil/2.5.html

1 Like

For example,

local players = {} -- Makes a blank table
for i, v in pairs(game.Players:GetPlayers()) do -- Loops through the players
if v:FindFirstChild("Inside") then -- Checks to see if they have a certain value inside of them
table.insert(players,v) -- If they do, then they are inserted into the table
end
end

I don’t doubt there are working tutorials out there for this.