Waiting is a very important part of scripting, once added to a script, the script will pause for a specified amount of time once it reaces a certain point
You can make a script wait by putting "wait [amount of time in seconds]" at a certain point
Here is an example of a script waiting before continuing to run
print printed instantly
wait 10
print printed after 10 seconds
printed instantly
-0:00
printed after 10 seconds
-0:10