,what's the wrong on my script , and Please give the right answer

var Player = false;
var paper = GameObject;

function paperToWin

if{ player  >  paperToWin }  int = '21'  true;
Destroy(this.GameObject) ;

The if statement expression needs to be contained in parenthesis not curly braces, this would throw an exception/error during build. Your function is not defined correct either, parenthesis are missing as well as the curly braces that defile the functions scope. You’re also declaring your variables incorrect for javascript/unityscript.

Your original script:

var Player = false; // incorrectly declared variable, incorrect syntax
var paper = GameObject; // incorrectly declared variable, incorrect syntax

function paperToWin // incorrect function structure

 if{ player  >  paperToWin }  int = '21'  true; // no, just incorrect, paperToWin is incorrect as it is a reference to the function in this case.  player is defined as a GameObject and can not be greater then a function.
 Destroy(this.GameObject) ; // this is almost correct, lower case "G"

Adjustments to correct to maybe make sense???:

var Player : boolean = false; 
var paper : GameObject; // assigned in the inspector???????

// does this get called from another script?  Should this be Update?
function paperToWin()
{
    // this makes no sense, should paperToWin be a local variable that expresses the winning condition?
    if( player  >  paperToWin )
    {
        int = '21'  // what int? should this be an public variable scoped to the class?
        Player = true; // this makes no sense, but okay
        Destroy(this.gameObject) ; 
    }
}

The above will not compile, but since you have described nothing about the project and the setup and it appears you need to learn more about programming over all i suggest you go through the video tutorials that Unity offers here : Learn Game Development Without Coding Experience | Unity

Then i would read through the scripting forums : http://forum.unity3d.com/forums/scripting.12/

Then i would read up on variable learning posts from the forum: http://forum.unity3d.com/forums/getting-started.82/

This post isn’t really asking for help, the way the script/code is written is in such a way that it doesn’t even even come close to conforming to the correct syntax and the question itself “what’s the wrong on my script , and Please give the right answer” is unfair to the reader given the fact that you have described absolutely nothing whatsoever.

Please go and teach yourself the basics and in the future articulate your questions in such a way that we the community can actually help you. There isn’t a right answer to your post, the code isn’t self describing.