Check the error.log file, it's in your game's root, there should be some error.
In case, when you move something from an rpk to another you have to make sure to copy all the 4 main sections of anything(aka part, object or whatever you're copy-pasting), they are:
Scripts(the one you posted above)
Render
Mesh
Click
And with them you have to copy-paste the relative files, .scx, .cfg and .java/class.
If you miss any of these, they game will most probably crash or just not do what you're expecting it to do, so just make sure you copied all these.
You gotta also check that the cfg you copy-pasted have unique IDs, otherwise it'll conflict with the other rpk object that uses the same IDs(but this seems quite obvious).