How to do individual countdowns for clients serverside?

Hello,

I’m currently working on a game where I need when a player is clicked for a UI to appear over their head. I have got this far and am able to do all this except for the countdown bit. I need it so multiple countdowns can run at once (as multiple players may be clicked)

I’ve kind of got this far but with a messy while true loop which waits (0.1) seconds then minuses 0.1 from a table with all the players times and if its zero, removes it.

Is that still the best way? As I’d prefer a way to count down by one instead but i actually want the timer to be accurate (say for example it is activated half way through a wait, so that player only waits 0.5 seconds for 1 to be taken away)

Any helps appreciated,

Pyxrien.

Do you mean you want to be able to have a cool down for each player? Couldn’t you just do that on the client side. When they click check if a debounce is set to true, and if it is true then run the code and then wait(1) and set the debounce back to false?

No no, sorry my explanations are pretty bad! I need a billboard UI with a text label in it to update every second to the players time, (from this countdown) and when the countdowns zero I need the billboard GUI to disable. I cannot do this clientside as the UI needs to show for all players.

(I do know how to do it all, except for the countdown bit which is where I’m getting confused!)