|
| 06 Sep 2014 02:31 PM |
game.Players.PlayerAdded:connect(function(player) if player:IsInGroup(1172343) then player.TeamColor=game.Teams.Assassins.TeamColor player.CharacterAdded:connect(function(character) local hat=game.Lighting.WhiteAssassinHood:clone() hat.Parent=character end) else local randomTeam=math.random(1,2)--1=Templars 2=Freedom Fighters if randomTeam==1 then player.TeamColor=game.Teams.Templars.TeamColor player.CharacterAdded:connect(function(character) local hat=game.Lighting.Templar:clone() hat.Parent=character end) else player.TeamColor=game.Teams:FindFirstChild("Freedom Fighters").TeamColor player.CharacterAdded:connect(function(character) local hat=game.Lighting.FreedomFighter:clone() hat.Parent=character end) end end end)
The hats don't appear on the character. The other stuff is just controlling who spawns where.
-LordSulfix |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 08 Sep 2014 08:55 PM |
| add a slight wait before parenting the hat and see if it works |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 09 Sep 2014 01:48 PM |
| use hat:WaitForChild("nameOfHat") |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Oct 2014 08:41 PM |
Bumpity BUMP BUMP!
-LordSulfix |
|
|
| Report Abuse |
|
|