I put that script into a linked prim (window) and when I clicked it the whole build dissapeared. Later, on the mini map, I saw a blue dot in the void outside the sim next door. It was the prim I put the script in. I took a copy and deleted the prim, went back and tried to rez the copied prim a couple of times... Nothing.
Came back 2 hours later.. 3 blue dots, same place, out in void of sim next door. Turns out the previous rez attempt worked but placed the build 100 meters above me and the single prim out in the void, 3 times.
I created 5 prims, linked them and put the script into a child prim. Same thing happened.
Dunno if Im clear enough about what happened but I wouldnt link anything with that script in it.
Do you know why it goes wild?