This script is the same method with spSynchStoredProcedure but used for views.
To run this stored procedure, you need to create two linked servers for your source server and your target server. You can create them in local SQL Server and then run this to synchronize.
For example, your development server is called DEV and your production server is called PROD, and you create two linked servers in local SQL Server with the same name. Assumed that your database between DEV and PROD have the same name: TestDB.
This procedure may be useful if your function is not over 4000 characters. If it's over 4000 characters, you have to modify it a little.
If you want to synchronize a function called TestFunc between TestDB of DEV and PROD, you can excute like that:
EXEC dbo.spSynchFunction @FunctionName = 'TestFunc', @SourceServer = 'DEV', @SourceDatabase = 'TestDB', @TargetServer = 'PROD', @TargetDatabase = 'TestDB'