so i got this script and everytime i put in my scripts and reload i get this error
scripts\clearcooldowns.lua:5: function arguments expected near 'end'
Plz Help! +rep!
Code:local ITEMID = 137003 function OnClick(item, event, player) player:ClearAllCooldowns end RegisterItemGossipEvent(ITEMID, 1, "OnClick")