Making tween restart

Hi there, I have a small circle that moves when you click on it however I am having trouble making the circle move back when you click on the circle again. Here is the code:

Menu.switch = this.add.circle(25,25,10,0xffffff).setInteractive();

    var tween = this.tweens.add({
        targets: Menu.switch,
        x: 60,
        ease: 'Power2',
        paused: true,
    });


    Menu.switch.on("pointerdown", function () {
        tween.play();
    });

I want to restart the tween when clicked on again.

Hi @Faizan_Ali, tween.restart() should do the trick.

   Menu.switch.on("pointerdown", function () {
        tween.restart();
    });