position not member of System.Type

var Bound2 = Transform;
var Bound1 = Transform;
var target = Transform;
var RespawnPoint = Vector3(0,-1.99,0);
function Update () {
transform.position = target.position;

if(Input.GetKeyDown(KeyCode.Space))
target.position = target.position;


if(target.position < Bound1.position)
transform.position = RespawnPoint;



if(target.position < Bound2.position)
transform.position = RespawnPoint;
}

Why it’s telling me position not member of System.Type?
I really have to hurry up, me and my friend are making a challenge who is ready first with a Keep-The-Ball-Up kinda game. ( We are both really big noobs to Unity3D).

Because you’re assigning the type Transform instead of an instance of type Transform.

My guess is you want the variables to be of type Transform (so you can assign them from the inspector). Change the = into : in the first 3 lines.

Your code is still chock full of errors and lines that don’t do anything however. A Vector3 can’t be less than any other Vector3, and assigning a value to itself won’t change anything.

Okay, I changed the < to = but Unity tells me its wrong.