All pastes #898313 Raw Edit

GetChildByClassName(Instance obj

public lua v1 · immutable
#898313 ·published 2008-02-10 06:26 UTC
rendered paste body
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 nilend