Hi, erm, I have loads of scripting that needs to be done for a project I'm doing. What I seriously need done is, so, you have a partner in this project, and I want to make it so at the beginning you can choose between five partners. Like, function on click, and then that partner follows you and yadda. So, can anyone help? I seriously need this. qq
01 | local library = assert (LoadLibrary( 'RbxGui' )) -- load our RbxGui library |
02 |
03 | function onItemSelected(item) -- create our callback that gets called when an item gets selected |
04 | -- arguments: item (string) |
05 | print ( "'" .. item .. "' was selected!" ) |
06 | end |
07 |
08 | local listOfItems = { "This" , "is" , "a" , "list" , "of" , "items." , "For" , "Your" , "Partners" } -- our list of items |
09 | local dropDownList, updateSelection = library.CreateDropDownMenu(listOfItems, onItemSelected); -- create the drop down list with our list and the callback |
10 | dropDownList.Size = UDim 2. new( 1 , 0 , 1 , 0 ) -- this is to make the drop down list fit in our GUI correctly |
11 |
12 | local holderGui = Instance.new( 'ScreenGui' ) -- make the screen gui that holds everything |
13 | local holderFrame = Instance.new( 'Frame' ) -- make a frame to hold the drop down list |
14 | holderFrame.Size = UDim 2. new( 0 , 200 , 0 , 26 ) -- make it the size you want |
15 | holderFrame.Position = UDim 2. new( 0.5 , - 100 , 0.5 , - 20 ) -- position it the way you want (right now it's in the center) |
Is this what your looking for?