local name = 1 for i = 1, #players do templateclone = template:clone() templateclone.Parent = game.Players.Player.PlayerGui.NominationGUI templateclone.Position = UDim2.new(0.5, -100, num, 0) templateclone.Name = name templateclone.Text = players[i].Name num = num +0.1 name = name +1 local function onClicked() nom1clone.Parent = game.Players.Player.PlayerGui.NominationGUI nom1clone.Text = templateclone.Text end templateclone.MouseButton1Click:connect(onClicked) end
okay, so this code is to make a list of clickable buttons with the names of all the players on each of them, and when you click on them, the name of the person you clicked on will be on the gui. because of multiple people on the server, the names of the buttons(templateclone) will be named(1 ,2 ,3 ,4, 5 etc). My question is, with the onClicked function, how would i say nom1clone.Text = the text's of the 1,2,3,4,5 etc. (the new names of templateclone). If that makes any sense