Tables
-- Construct an empty table assigned to variable "t"
local t = {}
print(t)Arrays
Creating Arrays
-- Construct an array with three items
local testArray = {"A string", 3.14159, workspace.Part}Reading From Arrays
-- Construct an array with three items
local testArray = {"A string", 3.14159, workspace.Part}
print(testArray[1])
print(testArray[2])
print(testArray[3])lWriting Into Arrays
Iterating Over Arrays
Inserting Items
Last updated
Was this helpful?
