for some reason this gives a “Attempt to call a string value” error.
function menu()
for i = 25, 0, -1 do
gameGUI.MenuFrame.TextLabel.Text = "Next Round starting in "..tostring(i)" seconds..."
task.wait(1)
end
startMatchE:FireServer()
end
for some reason this gives a “Attempt to call a string value” error.
function menu()
for i = 25, 0, -1 do
gameGUI.MenuFrame.TextLabel.Text = "Next Round starting in "..tostring(i)" seconds..."
task.wait(1)
end
startMatchE:FireServer()
end
you are using concatenation incorrectly you should add … after tostring() too
updated version
function menu()
for i = 25, 0, -1 do
gameGUI.MenuFrame.TextLabel.Text = "Next Round starting in " .. tostring(i) .. " seconds..."
task.wait(1)
end
startMatchE:FireServer()
end
or a more cleaner way is to use ``
function menu()
for i = 25, 0, -1 do
gameGUI.MenuFrame.TextLabel.Text = `Next Round starting in {i} seconds`
task.wait(1)
end
startMatchE:FireServer()
end