So I wanna make it so you can get all players in a click detector script instead of just the one who clicked. The code below:
script.Parent.MouseClick:Connect(function(plr)
Only gets the player who clicked. Is it possible to fix this? The reason is because im using table.Insert to make a player who survived gui, and it unpacks the table after, so I wanna get all players instead of the one who clicked.
Based on what you said in the comments I beleive what you want to do is get all the players in the server to do this you may want to do
PlayersService = game:GetService("Players") Players = PlayersService:GetPlayers() --Though this would store the player object of every player in a table instead you may want to print all the names of the players like this for i, player in pairs(Players) do print(player.Name) end --or to add the names to a table playertable = {} for i, player in pairs(Players:GetPlayers()) do table.insert(playertable, player.Name) end