function GetChildByClassName(parent,string) local c = parent:GetChildren() for i = 1, #c do if c[i].className == string then return c[i] end end return nil end