Numbers = game.Workspace.PlayerList.SurfaceGui.ScrollingFrame.Numbers:GetChildren()
for i = 1, #Numbers do
if Numbers[i].Name == “List” then
table.remove(Numbers,i)
end
end
https://gyazo.com/feb15044ee4bba995d30d289969f3b68
Numbers = game.Workspace.PlayerList.SurfaceGui.ScrollingFrame.Numbers:GetChildren()
for i = 1, #Numbers do
if Numbers[i].Name == “List” then
table.remove(Numbers,i)
end
end
https://gyazo.com/feb15044ee4bba995d30d289969f3b68
Fixed(i used a break) I thing this is an engine bug
This is possibly happening because when you use table.remove
, it moves all the elements down by 1.
Therefore, the last iteration will be indexing a nil value (Numbers[7] is nil).