So, uhm, I’ve never actually seen or played The Purge, but from what you’re asking for, I’m going to assume it’s something like this;
function StartPurge(startmins, endmins)
– do your shit here when the purge starts
timer.Create(“PurgeCountdown1”, startmins * 60, 1, function()
– do your shit here when the purge countdown 1 ends, and the purge countdown 2 starts!
timer.Create(“PurgeCountdown2”, endmins * 60, 1, function()
– do you’re shit here when the purge countdown 2 starts?..
– do your shit here when the purge ends??
Then, to start this you would just run StartPurge(30,10) – Which is what you described?.. So, if you then want to draw this on a HUD, you need to use timer.TimeLeft which returns a number as stated above.
timer.TimeLeft(“PurgeCountdown1”) – for countdown 1…
timer.TimeLeft(“PurgeCountdown2”) – for countdown 2…
The rest is pretty obvious. (Don’t blame me if I understood The Purge wrong in any way)