It's impossible to see what's going on in your code, your naming convention should have some representation of what the variables are doing
SJ, js and rt mean nothing to me and won't do to you in a couple of weeks after you close this file.
use [ code ] [ /code ] tags when you post that much code so it stays indented
remove everything you don't need and just get the basics working
and ensure you've attached the player_script to the player.
once you've done that I'll have another look