for _, Model in pairs(workspace:GetChildren()) do
if Model.Name = "ButtonModel”
print(“works”)
end
end
✓ ANSWER ACCEPTED
why won't my child finder work the model is located in workspace?
1 answer
✓ Accepted answer
you forgot “then”
for _, Model in pairs(workspace:GetChildren()) do
if Model.Name = "ButtonModel" then
print("ButtonModel”)
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
