So I am making a Owner Only Door that has an open and a close button. This will allows you to let people in your base but then you can then close it to where if someone wants to get in the will die when they touch it. This is the script I currently have.

Owner Only Door script:

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        if game.Players:GetPlayerFromCharacter(hit.Parent) then
            if script.Parent.BrickColor == BrickColor.new("Lime green") then
                print("passed safely")
            elseif script.Parent.BrickColor = BrickColor.new("Really red") then
                hit.Parent:BreakJoints()
                print("you shall not pass")
            end
        end
    end
end)

This works since when you open the door it turns the door to Lime Green and when you close it, it goes to Really red. The problem is that I want the Owner of the tycoon to be able to walk through the Owner Only Door no matter what even if it is red. So like people can get in if you want them to but if you don't want them to they cant when you close it but you can still get in and out but your base is protected. Please help!