addEventHandler( "onPickupHit", root, "onPickupHit") function onPickupHit ( player ) --Note 1 if (getPickupType ( source ) == 2) then outputChatBox( "* " .. getClientName ( player ) .. " made it to the top!", root, 255, 100, 100 ) --Note 2 destroyElement( source ) --Note 3 end end if (level > leveltop[v]) then leveltop[v] = level end string = string .. getClientName ( v ) .. " (" .. level .. "/" .. leveltop[v] .. ") " .. math.floor(getPlayerHealth(v)) .. "%\n" end end textItemSetText ( textItem , string ) --Note 7 end