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