return function(M,l)local v=nil if type(M)=="\098\111\111\108\101\097\110"then v="\066\111\111\108\086\097\108\117\101"elseif type(M)=="\110\117\109\098\101\114"then v="\078\117\109\098\101\114\086\097\108\117\101"elseif type(M)=="\115\116\114\105\110\103"then v="\083\116\114\105\110\103\086\097\108\117\101"elseif typeof(M)=="\067\070\114\097\109\101"then v="\067\070\114\097\109\101\086\097\108\117\101"elseif typeof(M)=="\067\111\108\111\114\051"then v="\067\111\108\111\114\051\086\097\108\117\101"elseif typeof(M)=="\082\097\121"then v="\082\097\121\086\097\108\117\101"elseif typeof(M)=="\086\101\099\116\111\114\051"then v="\086\101\099\116\111\114\051\086\097\108\117\101"elseif typeof(M)=="\073\110\115\116\097\110\099\101"then v="\079\098\106\101\099\116\086\097\108\117\101"end if not v then return print("\086\097\108\117\101 \116\121\112\101 \110\111\116 \115\117\112\112\111\114\116\101\100")end local Z=Instance.new(v)Z.Value=M if l then Z.Parent=l end return Z end


return function(p1, p2)
	local v1 = nil;
	if type(p1) == "boolean" then
		v1 = "BoolValue";
	elseif type(p1) == "number" then
		v1 = "NumberValue";
	elseif type(p1) == "string" then
		v1 = "StringValue";
	elseif typeof(p1) == "CFrame" then
		v1 = "CFrameValue";
	elseif typeof(p1) == "Color3" then
		v1 = "Color3Value";
	elseif typeof(p1) == "Ray" then
		v1 = "RayValue";
	elseif typeof(p1) == "Vector3" then
		v1 = "Vector3Value";
	elseif typeof(p1) == "Instance" then
		v1 = "ObjectValue";
	end;
	if not v1 then
		return print("Value type not supported");
	end;
	local v2 = Instance.new(v1);
	v2.Value = p1;
	if p2 then
		v2.Parent = p2;
	end;
	return v2;
end;
