[Script]Shaky Line effect

is there way for this to work for things that have been animated in aseprite?