Don’t use an array if you want to dynamically add elements to it. Use a collection like List.
List<memberScript> members = new List<memberScript>(someTransform.childCount);
foreach (memberScript child in someTransform){
members.Add(child);
}
Notice that I am using someTransform.childCount in the constructor. This is a small performance optimization if you know the element count you want to add in advance. If you don’t specify it, the list will grow dynamically (this also happens if you exceed the prespecified count).
Everything else works just like you know from arrays except that you use members.Count instead of members.Length to get the size of the list.
Why would you bother enumerating the array manually? List has a constructor that takes an IEnumerable.
MemberScript[] members;
List<MemberScript> memberList = new List<MemberScript>(members);
Edit: As an aside - and the trend continues - this is not a Unity specific question and an answer could have easily been derived from some searching and research on your part.
Thanks,
So I switched the array to a list, however I can not seem to assign the looped variable to the list tho it is declared as the same class as the list.
foreach (FEMemberScript child in moverTransform){
members.Add(child);
}