Spring in Platformer

Hi guys, I’m making a platformer, and I’m trying to make a spring to launch the character upwards, and im using this script:

_root.player._y -=300

The code works, but it just teleports the character 300 pixels upwards, but I need a fluid motion. Any way to resolve this? Thanks in advance.