Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

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

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

you forgot “then”


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

Answer this question