Hi! How can I make a lobby countdown for multiple people without having more instances of it? I used the timer example but made it work in only one class without all the added things.
I tried giving the UI to all the players with this but it only gave it to one player:
StartCountdown<public>() : void =
for (Player : GetPlayspace().GetPlayers()):
if (PlayerUI := GetPlayerUI[player[Player]]):
PlayerUI.RemoveWidget(WaitingTextBlock)
PlayerUI.AddWidget(CountdownCanvas)
UpdateUI()
spawn:
RunCountdown()
UpdateUI<private>() : void =
if (IntTime := Int[RemainingTime]):
RemainingTimeTextBlock.SetText(RemainingTimeText(IntTime))
Is there a better way of doing it without using another instance of it or something like it?