Script performance in builds Vs Editor

So i have this problem where I have scripts that work just fine in the unity editor but dont work at all in any of my builds.

I cant begin to find what would cause this

can anyone tell me the difference between how scripts work in the editor vs builds

I am having this problem at the moment. See my post for a very simple example. Its driving me nuts. Any help would be great!