Ahh, there we go. I know how to prevent it from glitching.
Code: ags
function on_key_press(eKeyCode keycode)
{
if (keycode == eKeyF9)
{
int i;
while (i<1)
{
if (test[i]!=null) test[i].Delete();
i++;
}
RestartGame(); // F9
}
}