Feel free to use this in any of your projects! If you can, please leave credit, but other than that, do whatever you want!
IMPORTANT UPDATE: Just re-did code using new method; Now causes such a small delay that scratch is unable to detect the delay! (Old code was causing a delay of between one-twentieth of a second and one-tenth of a second; New code causes such small delay that scratch is unable to tell the delay using the timer, or using my other project scratch-speed-checker)