array roblox
local array = {1, "Hello World", true} -- arrays can have all kinds of values
-- arrays are also known as tables
array roblox
local array = {1, "Hello World", true} -- arrays can have all kinds of values
-- arrays are also known as tables
roblox make arrays
-- Construct an array with three items
local testArray = {"A string", 3.14159, workspace.Part}
print(testArray[1])
print(testArray[2])
print(testArray[3])
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
-- 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
roblox get index position of tables
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 --
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us