------------------------------------

 
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)
