UI events no seaming to trigger

So i made a button ui that is built into unity and i have added the object with the script that has the function that should run when the button is pressed BUT for some god damn reason it doesn’t and the toggle UI just straight up don’t work either when pressed nothing happens anyone know why?
I am using unity 2019.4.19f1

Do you have a game object with EventSystem on it?

Is the button set as interactable?

Do you have any components on the game object or children, that have ray cast target set to true?