array roblox

local array = {1, "Hello World", true} -- arrays can have all kinds of values
-- arrays are also known as tables

4
4

                                    local F = {"your","my","we","yeet",}

--> i stands for Index and v for Value,
--> thats why it is a for index and value loop :)
for i, v in pairs(F) do
	print(i,v)
end

--> Lua Script language --

4 (4 Votes)
0
5
1

                                    -- Construct an array with three items
local testArray = {"A string", 3.14159, workspace.Part}

print(testArray[1])
print(testArray[2])
print(testArray[3])

5 (1 Votes)
0
0
0
Mahdi 100 points

                                    local myTable = {"your","my","we","yeet",}

for i, v in pairs(myTable) do
	print("Index: "..tostring(i))
	print("Value: "..tostring(v))
end

-- i stands for Index
-- v stands for Value
-- You can name these variables as you wish, but you should know,-
-- -the first is Index and the second is the Value
--Lua Script language

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
array in roblox how to find out index of something in a table roblox how to get the index of a value of a table in roblox roblox how to get the index of a table value roblox indexing a table inside an index ROBLOX Array value roblox table find from index how to find index of player in table roblox roblox get index of table value get index of item in table roblox roblox get position in table find index of instance in table roblox how to get an index values position in a table roblox how to get an index value in a table roblox Roblox indexing value from a table how to make an array roblox arrays roblox array roblox roblox studio arrays roblox array make array in roblox how to make new array roblox roblox arrays array.new roblox roblox add to array tables lua roblox roblox get table index select element from array roblox lua roblox studio how to get value from table roblox lua set values in table roblox lua example table how to get the last number in an array roblox studio roblox create array with many values roblox create filled array how to create new table for each thing roblox how to make a list roblox how to access a single item in an array roblox how to check how much things are inside of an array roblox how to get a singel element of a tabel roblox how to get a value in a table roblox add tables to a table roblox roblox table array roblox studio how to get index from table how to get all other items from a table after an index roblox look for data in roblox table how to read a value from an sql table roblox api how to read a value from a table roblox api how to get info from a table roblox roblox iterate using index how to add data to tables roblox inserting nil in a table roblox roblox do table index update how to describe the number of the things in a table in roblox studio how to get the next value in a table lua roblox can you index a table without variable roblox roblox number indexed table insert into array loop roblox roblox loop trough table from first to last how can you use tables in roblox lua how to turn a table into a key roblox studio roblox table scripting roblox table keys arraylist roblox roblox table indexing index roblox roblox lua how to index the variables of a table #table in roblox can you get the length of a table that is both a array and a dictionary roblox list length roblox roblox studio loop for table path Params get value from number table roblox table.create roblox roblox string tables how to get all table numbers roblox roblox table how to get a specific element from a table roblox roblox define in table Is it possible for a table to access other parts inside it roblox how to store multiple values in an array in robloxlua how to store multiple values in an array in roblox roblox studio tables table concat roblox roblox lua are scripts tables tables roblox for i in table roblox table roblox roblox index find value in multiple tables roblox How to add data to an array database on roblox add stuff to table roblox Roblox studio get something form a tabel adding to a list in roblox obtain array values roblox studio array roblox studio add a string to a table in roblox how to read tables in roblox roblox table sintax list of arrays roblox roblox tables roblox add variable to table roblox get values of tables Number Table roblox studio roblox lua get array keys how to take instance and create a table roblox roblox, table:1x1x344b what is that what happens if you print an array in roblox table: 0x9a01cfe87dd43b95 roblox roblox get index position of tables roblox how to make an array roblox make arrays
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source