Fine, but only because I'm bored. I don't normally respond to such bossy requests, though.
Put it in a part
local kill = {
"Bright green",
"Bright violet",
"Bright yellow",
"Bright red",
"Bright orange",
"Bright blue",
}
script.Parent.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and not player.Neutral then
for _, team in pairs(kill) do
if player.TeamColor == BrickColor.new(team) then
pcall(function() player.Character.Humanoid.Health = 0 end)
end
end
end
end) |