Scene loading is not working on collision

Hello! So this is the script that I have on finish line in my game. Do not mind the part that makes it move itself down the screen, that works completely fine. I did set the right script references in the inspector, so you don’t have to worry about that either. What isn’t working is for it to load the different scene on collision(using the main menu as a placeholder before I make the level complete scene). I have already tried directly loading the scene from here(which is why that scenemanagement is there) and that didn’t work either.

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

public class FinishlineMovement : MonoBehaviour {

    public float movespeed = 1.0f;
    private Vector2 direction = Vector2.down;
    public Scorekeep scorekeeper;
    public LevelLoader levelLoader;


    void FixedUpdate()
    {
        transform.Translate(direction * movespeed * Time.deltaTime);

    }
    private void OnCollisionEnter(Collision collisionInfo)
    {
        if (collisionInfo.collider.tag == "Player")
        {
            levelLoader.loadnextmenu();
            Destroy(gameObject, 4);
        }
    }
}

Actually, never mind. I got it to work myself by adding the same script to the player instead of the finish line. Sorry!