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

How do you make the game announce the winner of each round after the game clock runs out?

Hey, I am making a game and it has 5-minute rounds. The leaderboard tracks something called team kills which is basically the number of kills the entire team got combined. My goal is to make it so that when each round ends, the game will figure out which team has more team kills and announce in a screen GUI who won. I have scripted the clock, leaderboard, weapons, arena, GUIs, and everything else successfully I just need help with the determining who won the game, announcing it after every game, then restarting the round (resets all players). If someone could help me with this that would be really appreciated. Thanks for your time.

Pertinent Details: The two teams are called Red and Blue (This might change later on but those are the names for right now)

VERY IMPORTANT This is my working timer script if you could use this script, or even add on to it, to create the script I am asking for because I don't want to, and kind of can't change the time script because of the way my game is set up. So please just tell me what lines of code I need to add in and where to make this work.

repeat
	while true do
	    wait(1)
	    if script.Parent.Value == 0 then
	        local map = game.Workspace.LaserArena
	    map:Clone().Parent = game.Workspace
	    wait(5)
	    game.Workspace.LaserArena:Destroy()
	    wait(5)
	        script.Parent.Value = 300
	        script.Parent.Value = script.Parent.Value -1
	    else
	        script.Parent.Value = script.Parent.Value -1
	    end
	end
	until character == nil

A full script would be extremely helpful but help to create one would be just as good. If you have any other questions regarding my question or if you want to see any of my other scripts from the game (like my leaderboard script, etc...), just ask in the comments or message me on Roblox, I will check both often so it probably won't take long for me to respond.

Thank you, Skyraider5

1 answer

You've already asked this at least 4 times now, and you've gotten multiple answers. You need to stop reposting the same question over and over again, nobody can give you a script that will do exactly what you want it to. Moderation actions will most likely take place if you continue doing this.

1 comment

0

Well, clearly your answer didn't work so please, if you aren't going to answer, let other people answer instead of wasting an answer slot with a pointless comment that could have bee posted in the comments section.

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