|
| 22 Feb 2017 06:02 AM |
game.Teams["Playing"]:GetPlayers():connect(function(playing) playing:WaitForChild("Humanoid").Died:connect(function() print("boi") end) end)
Not sure why it doesn't work |
|
|
| Report Abuse |
|
|
ryanzlion
|
  |
| Joined: 27 May 2012 |
| Total Posts: 65 |
|
|
| 22 Feb 2017 06:17 AM |
for i, v in pairs(game.Teams['Playing']:GetPlayers() do v.Character:WaitForChild('Humanoid').Died:connect(function() print('boi') end) end |
|
|
| Report Abuse |
|
|
| |
|
ryanzlion
|
  |
| Joined: 27 May 2012 |
| Total Posts: 65 |
|
| |
|
ryanzlion
|
  |
| Joined: 27 May 2012 |
| Total Posts: 65 |
|
|
| 22 Feb 2017 07:05 AM |
| o add a ) at ### end of :GetPlayers() |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2017 07:07 AM |
| Yea I did, it just does nothing and prints nothing rip |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2017 07:14 AM |
| Nevermind I figured it out |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2017 07:14 AM |
--try this local tbl = {}; for i,v in pairs(game.Players:GetChildren()) do if v.TeamColor == game.Teams["Playing"].TeamColor then tbl[v.Name]; tbl[v.Name] = v.Character:FindFirstChild("Humanoid").Died:connect(function() print("boi"); tbl[v.Name]:disconnect(); end) end end wait(4); for i,v in pairs(tbl) do v = nil; end |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2017 07:16 AM |
I just made a really rookie mistake (im a newbie scripter)
forgot to add a wait, so the script ran before the player loaded in smhhhhhhhh |
|
|
| Report Abuse |
|
|