Help needed with table.find

So, what i want to do is to find what is on position 1 in a table called “Cameras”.
What i want to do is to check what is on position 1 in the table.

for i, v in pairs(workspace.Cameras:GetChildren()) do
	if v:FindFirstChild("Base") then
		table.insert(Cameras, v)
	end
end

When doing table.unpack(Cameras) the result would be “RandomCamName”,“SomeOtherCamName”, Which is correct.

I have tried table.find, but was not successful.

I don’t fully understand what you mean. but you could do:

Cameras[1]

But I don’t really know what you want.

Thank you! This was exactly what i was looking for!

1 Like