local minutes = 5 -- What the timer starts from
local seconds = 00 -- What the timer starts from
local min = minutes
local sec = seconds
function killPlayers()
local a = game.Players:GetChildren()
for _,v in pairs (a) do
v.Character:BreakJoints() -- Kills the player
end
end
while true do
wait(1)
sec = sec - 1
if sec == 0 then
min = min - 1
if min == 0 then
killPlayers()
min = minutes
sec = seconds
else
sec = 59
end
end
local count = min.. ":" ..sec
Gui.Text = count
end
I previously received help with this script, to act as a countdown for when all humanoids die. Do I need to make a GUI for this, with another script? Can someone help me figure out my problem?

4 comments
It really make it difficult for us to help you when people like yourself don't put their codes inside the Code Block.
fixed!
Oh, I was going to post an answer with it code blocked... I removed it!
You didnt make gui a variable.