Answers for "roblox loop through list"

1

roblox loop through list

local array = {"a", "b", "c", "d"}

for i, v in pairs(array) do
	print(v)
end
Posted by: Guest on May-03-2022
1

roblox loop through list

local array = {"a", "b", "c", "d"}

for i = 1, #array do
	print(array[i])
end
Posted by: Guest on May-03-2022
0

roblox loop through a list

local playerArray = {}
 
-- #playerArray means the size of the array
 
for playerIndex = 1, #playerArray do
	playerToTeleport = playerArray[playerIndex]
	teleportToStart(playerToTeleport)
end
Posted by: Guest on December-05-2021

Browse Popular Code Answers by Language