Wait for x seconds on a frame

I just want to stop my timeline for 5 seconds after an animation completes.

I try with SetInterval, but i do mistake somewhere,

can anyone gives me code for this.

Paste this on the frame:

function unpause() {
	gotoAndPlay(_currentframe+1);
	clearInterval(my_interval);
}
my_interval = setInterval(unpause, 5000);
stop();