Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do I get a specific value in the table?

im basically trying to say if the 1st value in a table is [1] then print first value. how would I do this? it needs to stay in a for loop because its needed to get the children of some of the values in the table

for i,v in pairs (parts) do
			
		if v == [1] then
			
			print("first value]
			
	end
			end

1 answer

✓ Accepted answer

You can simply do

if i == 1 then

Accept the answer if it helped

This discussion is preserved as it was. New answers, comments, and votes are closed.