How would I delay 3 functions, each by a second when they are fired at once?

Hello! So, I’ve been attempting to script a popup, but I just hit a roadblock; it is fired nearly simultaneously from like 3 other scripts and I need each one to be delayed by a respective amount of seconds, but I have absolutely zero idea how. Any ideas please?

Note: the 3 functions run at the same time as of right now

task.delay maybe? Can’t make the best assumptions based on the description you gave.

so, do you want all of them to be displayed separately, for a certain amount of time?

or, do you want only one of them to be displayed and the others discarded?

why so many simultaneous fired popups?

There’s that many because it’s a popup for unlocked cosmetics; and accomplishing some things could award more at once. I want them to be displayed a second after one another, but there is no way in my current script to set that.
Here’s a picture of the function and what it’s fired by;


Didn’t really work when integrated into my script

How about this. Have a variable(outside this function) called: busy
set up a wait(some time interval) while busy = true then

set busy = true

after the popup is displayed and a 1 second wait, then set busy = false.

they should eventually all get displayed, maybe not in the actual order received but that might not matter.

1 Like

Seems to work as intended! Thanks lots!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.