Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Heya! How could I write a script that...?

How could I write a script that broadcasts a message every 5 minutes telling which team got the most kills and resets the leaderboard? I have kills and deaths (KOs, Wipeouts) stored in a server script. It's for a round type game.

1 comment

0

SH is not for requests, make an attempt first then ask if you have issues.

1 answer

Since you didn't attempt this first, I'm only going to give you a theory on how to do it.

So basically you need to have a recursive function that waits 5 minutes and then broadcasts a message telling which team got the most kills, then you need to reset the leaderboard, start a new round, and then the function can call itself.

You can mark this as the right solution if it helped you start.

1 comment

0

you technically don't need to have it be a recursive function, but a for loop would be less elegant for this purpose.

This discussion is preserved as it was. New answers, comments, and votes are closed.