Why use the global variable $$Time instead of a script variable $Time?
I m saving time in $$time in first script and set field in last script.Thats why I used global variable
Does one script perform the second script or are you using two different server schedules, one for each script?
I don't think that values in global variables will persist between runs of server scheduled scripts. It's as though you are opening the file to run the first script, closing it and then re-opening it to run the second--and thus the global variable value doesn't persist.
I don't know for sure if this is the case, but it seems likely based on my understanding of how FileMaker Scheduled scripts work.
I suspect that you'll need to store the time in an actual field instead of a variable if My guesses are correct.