Help Making a Rebirth System

Hi, Im working on a rebirth system for my game and id like it to be that if a certain rarity or higher is unlocked then it allows the player to rebirth.

This is the script im trying to use at the minute, which works without the or statement but when i add the or statement it no longer works as it obviously checks for both. Is there a way I can make it so that if either of the two are no longer 0 then it will update

if ServerData[Player].Folder1.Secret == 0 or ServerData[Player].Folder1.Omega == 0 then
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rarity.Text = "Secret"
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rarity.TextColor3 = Color3.fromRGB(20, 20, 20)
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.Interactable = false
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.TextButton.Text = "Not Unlocked Yet"
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.TextButton.Interactable = false
			else
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rarity.Text = "Secret"
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rarity.TextColor3 = Color3.fromRGB(20, 20, 20)
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.Interactable = true
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.TextButton.Text = "Rebirth"
				Player.PlayerGui.Main.Frameaa.RebirthFrame.BG.Rebirth.TextButton.Interactable = true
			end

The issue is that your condition checks if either rarity is equal to 0, but what you actually want is to check if both are still 0, meaning the player hasn’t unlocked either one yet.

Just change the or to an and:

if ServerData[Player].Folder1.Secret == 0 and ServerData[Player].Folder1.Omega == 0 then
    -- not unlocked
else
    -- one of them is unlocked, allow rebirth
end

As soon as either one is no longer 0, it will go to the else and enable rebirth.