macos – Applescript to copy/sync dropped folders to a destination folder

Hello using Applescript on Macos I want to copy/sync dropped folders (onto the applescript app) to a predefined destination folder.

I have this script I’ve written, but it’s not working:

on open theFiles
    tell application "Finder"
        set destFolder to "/Users/Username/Desktop/My Files"
        do shell script "/usr/bin/rsync -a  'theFiles' 'destFolder' "
    end tell
end open

Can anyone please help fix my script to work? Thanks much!