function Create(k,f)local v if type(k)=="\115\116\114\105\110\103"then v=Instance.new(k)else v=k end for k,f in pairs(f)do if type(k)=="\110\117\109\098\101\114"then f.Parent=v else v[k]=f end end return v end local k=false local f={}function createDDown(v,w,...)if k then for k,f in pairs(f)do f:Destroy()end f={}k=false return else k=true end local b={...}local N=v for c,y in pairs(b)do local h=N:Clone()h.ZIndex=5 h.Name="\079\112\116\105\111\110 "..tostring(c)h.Parent=N.Parent.Parent.Parent h.BackgroundTransparency=0 h.ZIndex=2 table.insert(f,h)h.Position=UDim2.new(-0.4,v.Position.X.Offset,v.Position.Y.Scale,v.Position.Y.Offset+#f*v.Size.Y.Offset)h.Text=b[c]h.MouseButton1Down:connect(function()v.Text=b[c]w(b[c])for k,f in pairs(f)do f:Destroy()end f={}k=false end)end end


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

local barActive = false
local activeOptions = {}

function createDDown(dBut, callback,...)
	if barActive then
		for i,v in pairs(activeOptions) do
			v:Destroy()
		end
		activeOptions = {}
		barActive = false
		return
	else
		barActive = true
	end
	local slots = {...}
	local base = dBut
	for i,v in pairs(slots) do
		local newOption = base:Clone()
		newOption.ZIndex = 5
		newOption.Name = "Option "..tostring(i)
		newOption.Parent = base.Parent.Parent.Parent
		newOption.BackgroundTransparency = 0
		newOption.ZIndex = 2
		table.insert(activeOptions,newOption)
		newOption.Position = UDim2.new(-0.4, dBut.Position.X.Offset, dBut.Position.Y.Scale, dBut.Position.Y.Offset + (#activeOptions * dBut.Size.Y.Offset))
		newOption.Text = slots[i]
		newOption.MouseButton1Down:connect(function()
			dBut.Text = slots[i]
			callback(slots[i])
			for i,v in pairs(activeOptions) do
				v:Destroy()
			end
			activeOptions = {}
			barActive = false
		end)
	end
end
