https://discuss.eroscripts.com/t/makevibrations-lua-script-for-ofs/70639
This might be what you’re looking for. It’s what I use for vibrations. For that particular scene, I manually scripted the top/bottom of each stroke and then adjusted the frequency/amplitude until I got what I needed.