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?

2 comments
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"??
How should I store the name then?