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.

10 comments
Hi I dont fully understand your question what are you trying to do are you trying to get all the players who clicked the gui or that are in the server
all players in the server
O you do not need a click detector for that
well im making a dont press the button game and im checking all players if a bool value i put in them is true and if its true it means they died and itll put them in a table
but it only gets the player who clicked when i do
You can get an array of all players using
game.Players:GetPlayers(). This will return a table of all the players in the game. From there, you can use afor loopto check if the bool is ticked true or false.You can get an array of all players using
game.Players:GetPlayers(). This will return a table of all the players in the game. From there, you can use afor loopto check if the bool is ticked true or false.You can get an array of all players using
game.Players:GetPlayers(). This will return a table of all the players in the game. From there, you can use afor loopto check if the bool is ticked true or false.You can get an array of all players using
game.Players:GetPlayers(). This will return a table of all the players in the game. From there, you can use afor loopto check if the bool is ticked true or false.You may want to reword your question to ask how to detect players who did not press the button since a click detector will only help you detect who pressed it you have to do further work if you want to see who did not press