Drag and fling the square. It's a tad glitchy but it works well.
@Scratchuel21439new for the mouse speed sensor DISCLAIMER: There is no air resistance/drag because while making the ground friction part of the script I had to round the x velocity as to avoid large decimals and drifting, so I couldn't get a small enough amount of speed decrease while airborne to make it realistic.