|
| 02 Jun 2016 04:07 AM |
function waitForChild(parent, childName) while true do local child = parent:findFirstChild(childName) if child then return child end parent.ChildAdded:wait() end end
game.Players.PlayerAdded:connect(function(newPlayer) if newPlayer:IsInGroup(2662724) then newPlayer.TeamColor = BrickColor.new("Black") else newPlayer.TeamColor = BrickColor.new("Fossil") end while true do char = newPlayer.Character if char then break end wait(1) end local humanoid = waitForChild(char, "Humanoid") humanoid.Health = 0 end)
--What did i go wrong??
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 02 Jun 2016 04:31 AM |
game.Players.PlayerAdded:connect(function(Player) if Player:IsInGroup(2662724) then Player.TeamColor = BrickColor.new("Black") else Player.TeamColor = BrickColor.new("Fossil") end if Player.Character then Player.Character:LoadCharacter() end end)
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 07:34 AM |
| why does nobody use output... |
|
|
| Report Abuse |
|
|
MetaCoder
|
  |
| Joined: 16 Apr 2016 |
| Total Posts: 52 |
|
|
| 02 Jun 2016 08:08 AM |
| @The_Governator Is there a need for it now? |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2016 10:51 AM |
@Chim
Thanks a bunch mate, you're a life saver :D!
|
|
|
| Report Abuse |
|
|