The "bad script" error in this context means that the script does not exist. This can be returned if you use $eventid to SendMessage() in the context of a remote event but the script from which it was called no longer exists.