#child inside table is being removed for some reason

1 messages · Page 1 of 1 (latest)

static surge
#

i have too many lines to fit here, but this will sum it up

local function unequipPet(petFrame)

end)

local function unequip(All)

print(equipped)

for i = 1,#equipped
unequipPet(equipped[1])
end


end)```
#

when i print equipped everything is there, but if i were to print inside the for loop, all of a sudden something is removed, am not removing it anywhere else in the script

crimson harbor
#

is this issue that you're putting lua [1] instead of lua [i]?

static surge
#

so, any idea what the issue is

#

?

crimson harbor
#

I do not

#

Because if you do this then should work fine

#

if ur using table.remove on it then will cause issues with the loop

static surge
crimson harbor
#
static surge
#

k nice its working

#

tysm for helping me out, appreciate it