Attempt to call a string value

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
1 Like

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
1 Like

You did miss 2 dots. GE_0E is all over it.

2 Likes