Use your mouse cursor to move the magnet and use the slider to change the magnetic strength.
Check out this cool project: https://scratch.mit.edu/projects/545346825/