Seaweed effect help!

hi guys, i have to make this object sway like a seaweed. Anyone knows the script for it? i’ve done it frame by frame but was wondering if there’s a more effective and convincing way to do it. thanks a million!!!:pleased: