public string[] levelTags;
public GameObject[] locks;
public bool levelUnlocked;
void Start (){
for (int i = 0; i < levelTags.Length; i++)
{
if(PlayerPrefs.GetInt(levelTags*) == null)*
levelUnlocked is a bool. You cannot index a bool, so all your levelUnlocked references make no sense. I suspect you meant to declare levelUnlocked as an array of bools, on line 5… public bool[] levelUnlocked;
PlayerPrefs.GetInt() returns integer, and you cannot compate int to null (i.e. 0 == null is not valid expression). To check if your tag is defined in playerPrefs use
if(!PlayerPrefs.HasKey(levelTags*))*
instead of if(PlayerPrefs.GetInt(levelTags*) == null)*