wait, i didn't understood you now.
1) when you comment this line: if(me == kruiscorrecter1){temp5 = kruisdraaier1;} - does it work or it gives you an error again?
It gives the same error.
2) when you comment this line: vec_for_vertex(temp,temp5,2);
- does it work or it gives you an error again?
It does work without error, but the entity is not attached to the place where it's belong (the vec_for_vertex script)