Oh, I see it now, he is right. Try copy:
addEventHandler("onClientGUIClick", root,
function()
-- Check if "set" and "pass" is GUI elements, you can remove two lines:
outputChatBox("(set) Is GUI-Button?: " .. (isElement(set) and getElementType(set) == "gui-button") and "true" or "false"))
outputChatBox("(pass) Is GUI-Edit?: " .. (isElement(pass) and getElementType(pass) == "gui-edit") and "true" or "false"))
if (source == set) then
local password = tonumber(guiGetText(pass))
if (password == nil) then
guiSetText(pass, "Only Numbers")
return
end
triggerServerEvent("setpassword", getLocalPlayer(), password)
outputChatBox("Password has been set to " .. password, 0, 255, 0)
guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]))
showCursor(guiGetVisible(GUIEditor.window[1]))
end
end)