As far as I understand, there is no problem in selling script.
I just don't think it should go under asset, but under "game development"