local dis = "# * + = % € $ ! ^ & * ( ) - + =" -- Seperate with space
function cleanDisabledWords( str )
local result = str
for i, v in ipairs( split( dis, " " ) ) do
result = string.gsub( result, v, '' )
end
return result
end
function acceptedNames ( element )
local text = guiGetText ( element )
local nt = cleanDisabledWords( text )
guiSetText ( element, nt )
end
addEventHandler ( "onClientGUIChanged", theEdit, acceptedNames, false )
Not tested but should work.