ok I'm a total noob at Lua so if someone can point out my stupid mistake I'd be grateful!
I wrote a simple delay function to basically do-nothing for a given period of time. I've placed a call to my delay function in between 3 different function calls. But it doesn't seem to delay in between each function - instead it still seems to call all 3 functions AFTER waiting the combined amount of delay of time. Here is my delay function:
local startTime = os.timer()
while (os.timer() - startTime) < seconds do
And here is how I am trying to use it:
But what seems to happen is the system waits 10 seconds and THEN calls all 3 functions.
Is there a better way of doing this? I know about timers but they seem to be set up to call the SAME function at set intervals which isn't quite what I want.