code after waitforsecends won't work

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class hallucinations : MonoBehaviour

    public static int wow = 0;
    public bool loop = false;

    void Update()
        if (hallucinateTimer.firstDidget == 0)
            wow = 1;

    IEnumerator Test()

            yield return new WaitForSeconds(1);
            print("one sec in space");


Well, of course ^^. You call SceneManager.LoadScene(1); which loads a new scene and all gameobjects from the previous scene (the object this script is attached to included) will be destroyed at the end of the current frame. So your coroutine will die with the gameobject / script it’s running on.

Since your “Test” coroutine seems to be just a “test” we don’t know what you actually want to do, so we won’t start guessing what your actual issue is.