arrays roblox code example
Example 1: array roblox
local array = {1, "Hello World", true}
Example 2: roblox make arrays
local testArray = {"A string", 3.14159, workspace.Part}
print(testArray[1])
print(testArray[2])
print(testArray[3])
Example 3: roblox get index position of tables
local F = {"your","my","we","yeet",}
for i, v in pairs(F) do
print(i)
end
Example 4: roblox get values of tables
local myTable = {"your","my","we","yeet",}
for i, v in pairs(myTable) do
print("Index: "..tostring(i))
print("Value: "..tostring(v))
end