This code is from the Roblox wiki on how to create a simple drop down menu:

local RbxGui = LoadLibrary("RbxGui")
local gui = script.Parent
 
local items = {"Test1","Test2"}
local function onItemSelected(itemSelected)
	print(itemSelected)
end
 
local dropDown = RbxGui.CreateDropDownMenu(items,onItemSelected,false,true)
dropDown.Parent = gui
dropDown.Size = UDim2.new(.5,0,0,30)
dropDown.Position = UDim2.new(0.45,-75,0.5,-15)

However, this code is deprecated , and there for, it's not a good idea to use it. But was wondering if there could be any other alternative to creata a drop down menu without using deprecated code. Thanks.

6 comments

0

since the RbxGui library is deprecated you might have to make your own entire library for this type of thing.

0

How does one do that?

0

I recommend using the UIlistLayout

0

Would it be a problem if there are over a thousand things? Lmao

0

Deprecated not depreciated

1

ur unappreciated incaspaz