function onTouched(part)
local player = game.Players:playerFromCharacter(part.Parent)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil and player.TeamColor==script.Parent.TeamColor.Value then
script.Parent.CanCollide = false
script.Parent.Transparency = 0.5
wait(0.4)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
else h.Health = 0
end
end
script.Parent.Touched:connect(onTouched)
--Insert a value and rename it too TeamColor |