GranCount = 0 function onGrab() GranCount = GranCount + 1 print("Grab : "..GranCount) --Determine whether the number of times grabbed is a multiple of 3 local num = GranCount % 3 if num == 0 then print("Multiple of 3") end end function onUngrab() --Accessible print(GranCount) --Inaccessible print(num) end