Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- plr.Neutral = false
- plr.TeamColor = BrickColor.new("Lavender")
- plr.Character.Torso.BrickColor = plr.TeamColor
- for _,v in pairs (plr.Character:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- for _,v in pairs (v:children()) do
- if v:IsA("Part") then
- v.BrickColor = plr.TeamColor
- for _,v in pairs (v:children()) do
- if v:IsA("SpecialMesh") then
- v.TextureId = ""
- end
- end
- end
- end
- end
- end
- plr.Chatted:connect(function(message)
- if message:sub(1, 5) == ";team" then
- plr.Neutral = false
- plr.TeamColor = BrickColor.new(message:sub(7))
- plr.Character.Torso.BrickColor = plr.TeamColor
- for _,v in pairs (plr.Character:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- for _,v in pairs (v:children()) do
- if v:IsA("Part") then
- v.BrickColor = plr.TeamColor
- for _,v in pairs (v:children()) do
- if v:IsA("SpecialMesh") then
- v.TextureId = ""
- end
- end
- end
- end
- end
- end
- end
- if message == ";team none" then
- plr.Neutral = true
- plr.TeamColor = BrickColor.new("White")
- plr.Character.Torso.BrickColor = plr.TeamColor
- for _,v in pairs (plr.Character:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- for _,v in pairs (v:children()) do
- if v:IsA("Part") then
- v.BrickColor = plr.TeamColor
- for _,v in pairs (v:children()) do
- if v:IsA("SpecialMesh") then
- v.TextureId = ""
- end
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement