local aButtons = { GUIEditor.button[1],GUIEditor.button[2],GUIEditor.button[3],GUIEditor.button[4],GUIEditor.button[5],GUIEditor.button[6] }
addEventHandler('onClientGUIClick',root,
function ( )
for i,v in ipairs ( aButtons ) do
if source == v then
if getElementData ( source,'AntiButtonFlood' ) == true then return outputChatBox('Wait 1 Minute!!') end
setElementData ( source,'AntiButtonFlood',true )
setTimer ( setElementData,60000,1,source,'AntiButtonFlood',false )
end
end
end
)
Try this .