PleasE! What am i doing wrong?!!!! Java Script for Jumping + add animation!

I want to add 2 simple animations when my Character jumps
var PlayerBossController : GameObject;
var JumpAnimSec : GameObject;
function PlayAnims()
{
if(PlayerBossController.isGrounded)
{
JumpAnimSec.animation.Play(“Jumpingliftoff Animation”);
}
if(PlayerBossController.isGrounded)
{
JumpAnimSec.animation.Play(“Jumpingland Animation”);
}
}

What am i doing wrong? He doesnt make any animation :face_with_spiral_eyes::face_with_spiral_eyes::face_with_spiral_eyes::face_with_spiral_eyes:

firstly I’d go with [ code ] and [/ code ] tags (without the spaces) on your code section… and then I’d go with only making one thread and not 2 inside 15 mins of each other…

lastly… are you sure it’s not “PlayAnim()” without the s? I can’t find anything in searches for it with an s…