-- Compiled with roblox-ts v1.2.7
local function waitForChildWhichIsA(parent, className)
	local existing = parent:FindFirstChildWhichIsA(className)
	if existing ~= nil then
		return existing
	end
	while true do
		local newChild = parent.ChildAdded:Wait()
		if newChild:IsA(className) then
			return newChild
		end
	end
end
return {
	waitForChildWhichIsA = waitForChildWhichIsA,
}
