This was just working yesterday, but now it is not?
for _, Morphs in pairs(workspace.Morphs:GetChildren()) do
for _, EquipMorphButton in pairs(Morphs:GetChildren()) do
print(EquipMorphButton.Name, EquipMorphButton.Parent)
end
end
https://gyazo.com/4e7a93dbe9a76725e38c4eff1c8a249c
https://gyazo.com/912875ec05ef457743a263febfbf4cdc
Why isn’t it printing EquipMorph?
Instead of 2 in pairs loops use 1 and use GetDescendants instead of getchildren()
It doesn’t change anything to fix the script.
Try this:
for _, Morphs in pairs(workspace.Morphs:GetDescendants()) do
print(Morphs.Name, Morphs.Parent.Name)
end
This is more efficient instead of looping twice.
Mind showing what happens now?
For me it works perfectly.
https://gyazo.com/d32c24a8c284fc6640cfdc6268387672
I find it odd that this script has been working for months, but now doesn’t work at all…
Weird.
Try this:
for _, Morphs in pairs(workspace:GetDescendants()) do
print(Morphs.Name, Morphs.Parent.Name)
end
[You could add if-statements to print specified classes, etc]
https://gyazo.com/d5a3e7211d12efa884e1e06d7b480cf3
It seems like it is not printing any parts in workspace?
I have no clue, it is just not printing certain objects:
https://gyazo.com/f2eda79894b2687478f24ed3b6fe4436
Welds, parts, meshs, etc.
dmksa123
(dmk)
June 6, 2022, 12:32am
#10
Module was not loaded fast enough for anyone else who is having trouble with this!
1 Like