Trying to get a GUI button above a gameobject but it will just show in the corner

So this is my rellavant code:

var Point : Vector3;
var Clicked : boolean = false;

 function Update () 
        var Point = Camera.main.WorldToScreenPoint(gameObject.transform.position);

 function OnGUI ()

So can you guys please tell me what’s going on the Button just appears in the top left corner.

In your update funtion you have var Point which shadows the global variable Point, so that one is never written.