function waitForChild(v,C)local H=v:findFirstChild(C)if H then return H end while true do print(C)H=v.ChildAdded:wait()if H.Name==C then return H end end end

function waitForChild(parent, childName)
	local child = parent:findFirstChild(childName)

	if child then
		return child
	end

	while true do
		print(childName)

		child = parent.ChildAdded:wait()

		if child.Name==childName then
			return child
		end
	end
end
