How to temporarily save a String value?

I maybe over thinking this, but how would you temporarily save a String value? In my game, if a player wins it displays their name as the winner. But, if they leave before the timer is over, the game crashes.

while (wait < time) do
    countDown:FireAllClients(game.Players:FindFirstChild(v).Name .. " has won!");
end

How would you save their name?

You could do this:

local PlayerThatWon = game.Players:FindFirstChild(v).Name

while (wait < time) do
    countDown:FireAllClients(PlayerThatWon  .. " has won!");
end

Maybe this.

Yeah. I’m an idiot. Wasn’t even thinking lol.

We all have those days, I have good day :slight_smile: