Physics, collision detection, and everything that requires knowledge about the whole level can only run on the server. Client side functions are only for visual effects, like animation etc.