Advertisement
HenloMyDude

teams

Aug 26th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1.  
  2. plr = owner
  3.  
  4. plr.Neutral = false
  5. plr.TeamColor = BrickColor.new("Lavender")
  6.  
  7. plr.Character.Torso.BrickColor = plr.TeamColor
  8.  
  9. for _,v in pairs (plr.Character:children()) do
  10. if v:IsA("Hat") or v:IsA("Accessory") then
  11. for _,v in pairs (v:children()) do
  12. if v:IsA("Part") then
  13. v.BrickColor = plr.TeamColor
  14. for _,v in pairs (v:children()) do
  15. if v:IsA("SpecialMesh") then
  16. v.TextureId = ""
  17. end
  18. end
  19. end
  20. end
  21. end
  22. end
  23.  
  24. plr.Chatted:connect(function(message)
  25. if message:sub(1, 5) == ";team" then
  26. plr.Neutral = false
  27. plr.TeamColor = BrickColor.new(message:sub(7))
  28.  
  29. plr.Character.Torso.BrickColor = plr.TeamColor
  30.  
  31. for _,v in pairs (plr.Character:children()) do
  32. if v:IsA("Hat") or v:IsA("Accessory") then
  33. for _,v in pairs (v:children()) do
  34. if v:IsA("Part") then
  35. v.BrickColor = plr.TeamColor
  36. for _,v in pairs (v:children()) do
  37. if v:IsA("SpecialMesh") then
  38. v.TextureId = ""
  39. end
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end
  46.  
  47.  
  48.  
  49. if message == ";team none" then
  50. plr.Neutral = true
  51. plr.TeamColor = BrickColor.new("White")
  52.  
  53. plr.Character.Torso.BrickColor = plr.TeamColor
  54.  
  55. for _,v in pairs (plr.Character:children()) do
  56. if v:IsA("Hat") or v:IsA("Accessory") then
  57. for _,v in pairs (v:children()) do
  58. if v:IsA("Part") then
  59. v.BrickColor = plr.TeamColor
  60. for _,v in pairs (v:children()) do
  61. if v:IsA("SpecialMesh") then
  62. v.TextureId = ""
  63. end
  64. end
  65. end
  66. end
  67. end
  68. end
  69. end
  70. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement