So, i’m trying to make a Metrocop Nextbot, and as you may know, when the normal NPC Metrocop dies, sometimes the Dispatcher will say something like “Lost Biosignal from Protection Team Unit, Patrol 6” after the Metrocop plays its death sound.
I’m trying to do that with my bot; make it emit a series of sounds that do not interrupt each other, but i can’t seem to find out how to get the function to pause or sleep in any feasible way.
I can’t use coroutine.wait, because it only works in the RunBehave function, and i need this to run in the OnKilled Function
I can’t use a busywait, because that pauses the ENTIRE GAME for the given time.
timer.Simple dosen’t seem to work without a function inside it, and it doesn’t seem to like functions that contain “self” anywhere in them, but i’m not sure i’m using them correctly.
Anyone know a way to play a series of sounds, or to make a function pause or sleep for a given time?