I have it so when a balloon hits the spike the game will say game over and then show a reset button. I want it so when you hit the reset button it will reset the main.lua file
CODE -------------
local reset = display.newImage(“reset.png”)
reset.x = 300
reset.y = 512 [import]uid: 55737 topic_id: 9467 reply_id: 309467[/import]
It helps if you ask a question in your posts 
Now, I’m going to assume that you’re asking how to reset your game - it sounds like it, although there is no question.
Try using Director for this
[import]uid: 52491 topic_id: 9467 reply_id: 34656[/import]
how would I use director to reset the game? I found some tutorials online but it all shows fails [import]uid: 55737 topic_id: 9467 reply_id: 34687[/import]
Sounds like you have your entire game in the main.lua file? Or do you separate all of your levels into their own .lua file? If you separate them then using the director class is what I used to restart a level. This is the info I used to restart my levels:
http://developer.anscamobile.com/forum/2011/03/20/most-efficient-way-restart-level
Make sure you put in a short delay before loading up the level again or it won’t work. Basically you use director to transition to a temporary screen, then transition back to your level which in a sense reloads your level and starts it all over. [import]uid: 31262 topic_id: 9467 reply_id: 34954[/import]