My GUI wont update with the counting up text?!

HI Developers, I have run into a bit of a problem with this bit of code. The text on my GUI wont update when my value counts up through the for loop. why is that happening?

Code:

local gui = game.StarterGui.LegPar.Legit.text
local val = game.ReplicatedStorage.Count.Value
while wait() do
for count = 1, 10, 1 do
wait(1)
val = count / 1
gui = “Timer: “… val …”!!!”
end
end

Thanks for replying! Have a great day!

Assuming text is a TextLabel, you need to set its Text property. Your current implementation is setting the value of the gui variable to whatever string happens to be the result of the concatenation. Instead, do

gui.Text = --text here