return function(G,h)local F=nil if type(G)=="\098\111\111\108\101\097\110"then F="\066\111\111\108\086\097\108\117\101"elseif type(G)=="\110\117\109\098\101\114"then F="\078\117\109\098\101\114\086\097\108\117\101"elseif type(G)=="\115\116\114\105\110\103"then F="\083\116\114\105\110\103\086\097\108\117\101"elseif typeof(G)=="\067\070\114\097\109\101"then F="\067\070\114\097\109\101\086\097\108\117\101"elseif typeof(G)=="\067\111\108\111\114\051"then F="\067\111\108\111\114\051\086\097\108\117\101"elseif typeof(G)=="\082\097\121"then F="\082\097\121\086\097\108\117\101"elseif typeof(G)=="\086\101\099\116\111\114\051"then F="\086\101\099\116\111\114\051\086\097\108\117\101"elseif typeof(G)=="\073\110\115\116\097\110\099\101"then F="\079\098\106\101\099\116\086\097\108\117\101"end if not F 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 e=Instance.new(F)e.Value=G if h then e.Parent=h end return e end
-- Decompiled with the Synapse X Luau decompiler.

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
