How to get names of objects inside table

i can’t seem to find any posts that answer my question

local guns = gunfolder:GetChildren()

gunfolder is a folder that contains objects, aka the guns

how would i get the names of these objects

something like this:

for _, gun in ipairs(gunfolder:GetChildren()) do 
1 Like

i’ve tried that, but using table.insert and inserting the gun name into the guns table and then printing the table prints this

click the arrow on the left side of the {...}

ohhh my bad, i see now. thanks alot

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.