dannyz24
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 2751 |
|
|
| 06 Jun 2013 12:18 AM |
Is there a script where your head colour changes back to normal?Like when you first join an empty server, you head is 'yellow', and it only changes back when someone else joins.How do you make it so it can be the colour that you customized when you join instead of waiting for another person to join the server?
◙Dαякηєѕѕ тαкєѕ σνєя◙ |
|
|
| Report Abuse |
|
|
dannyz24
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 2751 |
|
|
| 06 Jun 2013 12:20 AM |
Found it I think...
function onChanged() head = script.Parent.Head torso = script.Parent.Torso lleg = script.Parent["Left Leg"] rleg = script.Parent["Right Leg"] larm = script.Parent["Left Arm"] rarm = script.Parent["Right Arm"] wait(0.1) if ((torso.BrickColor == game.Players[script.Parent.Name].TeamColor) and (head.BrickColor == BrickColor.new("Bright yellow"))) then if ((rarm.BrickColor == BrickColor.new("Black")) and (larm.BrickColor == BrickColor.new("Black"))) then if ((rleg.BrickColor == BrickColor.new("Black")) and (lleg.BrickColor == BrickColor.new("Black"))) then color = script.Parent:findFirstChild("Body Colors") if color~=nil then head.BrickColor = color.HeadColor torso.BrickColor = color.TorsoColor lleg.BrickColor = color.LeftLegColor rleg.BrickColor = color.RightLegColor larm.BrickColor = color.LeftArmColor rarm.BrickColor = color.RightArmColor end end end end end script.Parent["Right Arm"].Changed:connect(onChanged)
◙Dαякηєѕѕ тαкєѕ σνєя◙ |
|
|
| Report Abuse |
|
|
dannyz24
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 2751 |
|
|
| 06 Jun 2013 12:20 AM |
But paste that in the Input script which is this one.
function onPlayerRespawned(newPlayer) if (newPlayer:findFirstChild("Humanoid")~=nil) then LOL = script.ColorFix:clone() LOL.Parent = newPlayer LOL.Disabled = false end end game.workspace.ChildAdded:connect(onPlayerRespawned)
◙Dαякηєѕѕ тαкєѕ σνєя◙ |
|
|
| Report Abuse |
|
|
dannyz24
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 2751 |
|
|
| 06 Jun 2013 12:22 AM |
Yes, it works correctly.
◙Dαякηєѕѕ тαкєѕ σνєя◙ |
|
|
| Report Abuse |
|
|