Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why won't my child finder work the model is located in workspace?

for _, Model in pairs(workspace:GetChildren()) do
     if Model.Name = "ButtonModel”
 print(“works”)
    end
end

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.