of     1   

yurhomi10
#183003219Thursday, February 04, 2016 10:31 PM GMT

_G.sparring = {player, player2} for i,v in pairs(_G.sparring) do game.Workspace.v.Died:connect(function() print(game.Workspace.v.Name .. " has died") end) is there any other way to find a player in the game instead of making two iterations, kind of confused.
myactivetestplace
#183003370Thursday, February 04, 2016 10:35 PM GMT

one specific player?
yurhomi10
#183003492Thursday, February 04, 2016 10:37 PM GMT

i want all the players in sparring table to get a .died event but i think i would have to iterate twice (sparring table and players:GetChildren()) to apply the event, is there any other way to simplify this or no?
ez_street
#183003590Thursday, February 04, 2016 10:39 PM GMT

game.Workspace[v].Humanoid.Died:connect(function(). Not game.Workspace.v.Humanoid.Died:connect(function().
ez_street
#183003650Thursday, February 04, 2016 10:40 PM GMT

But your script won't work unless there are players in the game with names "player" and "player2"
Happywalker
#183003721Thursday, February 04, 2016 10:41 PM GMT

^ not at all
yurhomi10
#183003746Thursday, February 04, 2016 10:42 PM GMT

i changed the values in my table on this thread for the sake of simplicity, thanks for your help btw.

    of     1