Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This code is deprecated , any alternatives?

Asked by 5 years ago
Edited 5 years ago

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.

0
since the `RbxGui` library is deprecated you might have to make your own entire library for this type of thing. EpicMetatableMoment 1444 — 5y
0
How does one do that? XviperIink 428 — 5y
0
I recommend using the UIlistLayout User#20388 0 — 5y
0
Would it be a problem if there are over a thousand things? Lmao XviperIink 428 — 5y
View all comments (2 more)
0
Deprecated not depreciated User#24403 69 — 5y
1
ur unappreciated incaspaz Gey4Jesus69 2705 — 5y

Answer this question