function ReturnWorkspace()
for i,v in pairs(workspace:GetChildren()) do
return {Index = i , Value = v}
end
end
print(ReturnWorkspace().Index) -- Only prints 1 and prints Camera if I do v
-- Since I have 6 things in workspace it should return 6 for index but its returning only 1
Why does this not return everything in workspace
it only returns camera and prints it for some reason?
Anyone know a fix to this?
So I can return every single thing in workspace
