function CommonUtil.Create(I)return function(R)local C=Instance.new(I)local y=nil for I,R in pairs(R)do if type(I)=="\110\117\109\098\101\114"then R.Parent=C elseif I=="\080\097\114\101\110\116"then y=R else C[I]=R end end if y then C.Parent=y end return C end end return CommonUtil

function CommonUtil.Create(instanceType)
	return function(data)
		local obj = Instance.new(instanceType)
		local parent = nil
		for k, v in pairs(data) do
			if type(k) == 'number' then
				v.Parent = obj
			elseif k == 'Parent' then
				parent = v
			else
				obj[k] = v
			end
		end
		if parent then
			obj.Parent = parent
		end
		return obj
	end
end

return CommonUtil
