|
| 11 Apr 2014 09:53 PM |
local PossiblePlrs = game.Players:getPlayers()
function ReplaceChats(DeadPlrs) for i = 1,#DeadPlrs do local cgstuff = DeadPlrs[i]:findFirstChild("ChatGui") for i,v in pairs(cgstuff) do if v.Name == "Base" then repeat wait() until game.Workspace:findFirstChild(DeadPlrs[i].Name).Humanoid.Health> 0-- or PossiblePlrs[i] == nil wait() game.Workspace.Chat:FireClient(DeadPlrs[i], nil, v.Text) end end end end
while script ~= nil do for i = 1,#PossiblePlrs do if PossiblePlrs[i].Character.Humanoid.Health <= 0 and PossiblePlrs[i]:findFirstChild("ChatGui"):findFirstChild("Base") then ReplaceChats(PossiblePlrs[i]) wait() end end end |
|
|
| Report Abuse |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 11 Apr 2014 10:29 PM |
Move this
local PossiblePlrs = game.Players:getPlayers()
In the while loop. |
|
|
| Report Abuse |
|
| |
| |