BoxCollider.isTrigger doesn't work

I’m trying to create a BoxCollider in the script and then make it a Trigger but BoxCollider.isTrigger doesn’t work. Is isTrigger not the right way to make a BoxCollider a Trigger in code? Does it only check if something is a Trigger or not? I don’t know what I’m doing wrong!

Never mind, it works now, I don’t know what that was all about.