Well my problem is this. I made a textButton that “Destroy” all descendant LocalScript, but doesn’t let me get an error of
"Players.NUTRICORP.PlayerGui.MenuDeMap.Adjustes.Graficos.ScrollinGraficos.ZSave.LocalScript: 35: invalid argument # 1 to 'pairs '(table expected, got Instance) "
local aceptar = script.Parent:WaitForChild("Aceptar")
aceptar.MouseButton1Click:Connect(function()
local descendientes = script.Parent.Parent:WaitForChild("EArbol"):WaitForChild("Abrir")
for index, descendant in pairs(descendientes) do
if descendant:IsA("LocalScript") then
descendant:Destroy()
end
end
end)