Help with making drop down menu through client side?
Asked by
8 years ago Edited 8 years ago
01 | local Players = game:GetService( "Players" ) |
02 | local RbxGui = LoadLibrary( "RbxGui" ) |
03 | local gui = script.Parent |
09 | Players.PlayerAdded:Connect( function (Player) |
10 | playerTable [ i ] = "Player.Name" |
14 | local playerList = RbxGui.CreateDropDownMenu(playerTable,onPlayerSelected, false , true ) |
15 | playerList.Parent = gui |
16 | playerList.Size = UDim 2. new( 0 , 150 , 0 , 30 ) |
17 | playerList.Position = UDim 2. new( 0.5 ,- 75 , 0.5 ,- 15 ) |
The purpose of this script is to add each player to the drop down menu upon joining, as you see.
However, since you cannot do anything w/ GUIs in the server, I am unsure how to do this script from the client side.
My question is:
How would I alter this so that this will run from the client side?