if you don't know what your own scripts do, you've probably copy/pasted them.
Anyway, I'm quite sure it either freezes and unfreezes a certain player
Didn't you see I wrote that I found it in Useful Functions? It's not my script, it's by some guy (credits at the top of the code), so I am asking what does this code do?