function BlockDefenceRetry() local Event = EventClass.Event; Event:Pause(); Event:LockPlayer(); coroutine.yield(); Event:Print("/vnYou will restart from/r"); Event:Print("the beginning. Okay?/b/co"); Event:WaitContinue(); coroutine.yield(); Event:Select(); coroutine.yield(); if ( Event:GetSelect() == 0 ) then Event:CloseMessage(); coroutine.yield(); Event:Wait(1.0) coroutine.yield(); Event:FadeOut(); Event:Wait(1.0) coroutine.yield(); Event:ContinueMiniGame(); Event:RestartMiniGame(); Event:Play(); Event:UnlockPlayer(); Event:FadeIn(); coroutine.yield(); return; end Event:CloseMessage(); coroutine.yield(); Event:Play(); Event:UnlockPlayer(); end