for _, child in pairs(workspace.Ruins.RedCastleRuin:GetChildren()) do if child:IsA("Part") then for i = BricksToWin, 1, 1000 do child.Changed:Connect(function() print("Destroyed") end) end end end
I want the inner for loop to only count whenever the child.Changed event runs
For the context here, you don't need a loop, use intvalue