guiSetText(statsLabel["name"],"Name: "..string.gsub(namenohex)), "#%x%x%x%x%x%x", "" )
You don't understand what you are copying, do you ?
guiSetText(statsLabel["name"],"Name: "..namenohex )
namenohex is the name of the localPlayer without the hexa colors, so there is no need to use that string.gsub again.
I only copy row 492, however, you wanted to or not? .. Like, the name will change and there is no written hexov but when he changed his name so that the name does not change ..