Use the logical operator “or” in the conditional statement.
script.Parent.Button2.ClickDetector.MouseClick:Connect(function(plr)
if DoorStatus == "Closed" and Debounce == false and plr.Team == Teams["Delta Division"] or plr.Team == Teams["TeamName"] then
Debounce = true
Door.Button2.Click:Play()
DoorMain.Sound:Play()
Open()
wait(1)
DoorStatus = "Opened"
Debounce = false
elseif DoorStatus == "Opened" and Debounce == false and plr.Team == Teams["Delta Division"] or plr.Team == Teams["TeamName"] then
Debounce = true
Door.Button2.Click:Play()
DoorMain.Sound:Play()
Close()
wait(1)
DoorStatus = "Closed"
Debounce = false
end
end)