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

Help with making drop down menu through client side?

Asked by
waifuSZN 123
7 years ago
Edited 7 years ago
local Players = game:GetService("Players")
local RbxGui = LoadLibrary("RbxGui")
local gui = script.Parent
local i = 1
local playerTable = {}

--When a new player joins, add them to the table

Players.PlayerAdded:Connect(function(Player)
    playerTable[i] = "Player.Name"
    i = i + 1
end)

local playerList = RbxGui.CreateDropDownMenu(playerTable,onPlayerSelected,false,true)
playerList.Parent = gui
playerList.Size = UDim2.new(0,150,0,30)
playerList.Position = UDim2.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?

0
You will need to make a new drop down menu each time as you cannot update the existing items in the list, also you have "Player.Name"?? User#5423 17 — 7y
0
How should I store the name then? waifuSZN 123 — 7y

Answer this question