Use your mouse or finger if you are on a Surface device to slide to unlock. Much simpler scripting, but no bouncing effects.
Credit to @GreenConsole