function waitForChild(h,e)local A=h:findFirstChild(e)if A then return A end while true do A=h.ChildAdded:wait()if A.Name==e then return A end end end


function waitForChild(parent, childName)
	local child = parent:findFirstChild(childName)
	if child then return child end
	while true do
		child = parent.ChildAdded:wait()
		if child.Name==childName then return child end
	end
end

