function onTouched(V)print("\068\111\111\114 \072\105\116")local y=V.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if y~=nil then if(game.Players:playerFromCharacter(V.Parent)).TeamColor==(game.Teams:findFirstChild(modelname)).TeamColor then Door.CanCollide=true Door.Transparency=0 wait(1)Door.CanCollide=true Door.Transparency=0 print("\072\117\109\097\110 \116\111\117\099\104\101\100 \100\111\111\114")else y.Health=0 end end end connection=Door.Touched:connect(onTouched)

 
function onTouched(hit) 
        print("Door Hit") 
        local human = hit.Parent:FindFirstChild("Humanoid") 
        if (human ~= nil ) then
                if game.Players:playerFromCharacter(hit.Parent).TeamColor==game.Teams:findFirstChild(modelname).TeamColor then
                        Door.CanCollide = true
                        Door.Transparency = 0
                        wait(1) 
                        Door.CanCollide = true 
                        Door.Transparency = 0 
                        print("Human touched door") 
                else
                        human.Health = 0
                end
 
        end 
end 
 
connection = Door.Touched:connect(onTouched)
