return function(g,N,V)local m=Instance.new(g)for g,N in pairs(V or{})do m[g]=N end m.Parent=N return m end

return function(instanceName, parent, properties)
	local instance = Instance.new(instanceName)

	for propertyName, value in pairs(properties or {}) do
		instance[propertyName] = value
	end

	instance.Parent = parent

	return instance
end
