Saving data

Hi can some one help me save local data on this code i need help i have tried everythin there is i just need somre saving the highscore.

displayMode(FULLSCREEN)
supportedOrientations(LANDSCAPE_RIGHT)

function setup()
   count=60    -- set count
   hit=0    --set hit
   miss=0  --set miss
   lives=5
   parameter.color("Ball",255, 0, 187, 255)
end

function draw() 
   background(40,40,50)    -- clear screen
   if miss == 5 then
       fill(255, 0, 0, 255)
       text ("Good Work You got "..hit, WIDTH/2,HEIGHT-110)
       text ("Tap On The Ball The Play Agian", WIDTH/2,HEIGHT-255)
   else
       fill(108, 255, 0, 255)
       text("Hit  "..hit,WIDTH/2,HEIGHT-50)    -- show hit count
       text("You Have "..lives.." Left", 875,HEIGHT-50)
   end
   count=count+1    -- add 1 to count
   if count>45 then    -- count greater than 45, new x,y position
       count=0    -- set count to 0
       if miss >= 5 then
               x=WIDTH/2  -- x
               y=HEIGHT-600  -- y
           else
               x=math.random(50,WIDTH-50)    -- random x position
               y=math.random(50,HEIGHT-50)    -- random y position
       end
   end
   fill(Ball)
   ellipse(x,y,100)    -- draw ellipse aka the circle
end

function touched(t)
   if t.state==BEGAN then    -- touch began
       v1=vec2(t.x,t.y)    -- set v1 to vec2 value
       if v1:dist(vec2(x,y))<50 then    -- touch inside circle
           if miss >= 5 then 
               hit=hit+0
               restart()
           else
           hit=hit+1    -- add 1 to hit
           sound(SOUND_EXPLODE, 40387)    -- play sound
           end
       else
           if miss >= 5 then
           miss=miss+0
           else
           miss=miss+1
           lives=lives-1
           end
       end
    end
end

@Dantheman2001 See the link below. That should give you an idea.

http://codea.io/talk/discussion/1874/how-s-your-reflexes#latest