Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you announce which team won the round after the game clock expires? [closed]

Asked by 7 years ago

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)

This is my working timer script (I do NOT need help with this script, it works, I just thought it might be needed to help with the requested script):

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

Thank you, Skyraider5

0
Please ask me if you need more information about the game to answer my question, you can post your question here or message me on Roblox, I will check both and get back to you as soon as I can. Thanks for your help. Skyraider5 -21 — 7y
0
please put this in codeblock oSyM8V3N 429 — 7y
0
Do you need a full script or just help in creating one? FazNook 61 — 7y
0
Hey, thanks for responding, either really, a full script would be extremely helpful but hey in creating one would be great too. Thanks Skyraider5 -21 — 7y

Marked as Duplicate by RubenKan

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
FazNook 61
7 years ago

How you could achieve this is that you could do Team:GetPlayers to find the players inside the blue and red teams. Then use it to change the announce text. Finally, you could get their character and change their health inorder for them to reset. Please do not ask for a full working script, thank you!

Ad