waitaction allows us to make the game wait for a certain amount of
timeor for before continuing. Once the time has passed, the game will automatically continue to the next statement.
waitstatement will make it wait for 5 seconds before the next dialog is shown.
5000instead of just
5in order to wait for 5 seconds, the reason behind it is that the
waitaction accepts the time in milliseconds, therefore we have to make the conversion from seconds to milliseconds for it to work as we want.