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