More errors I dont understand.

I have almost no knowledge and I have no skill in scripting/coding.

I was setting up a re-spawn system and to start it off I was making sure it worked by using a debug test. If only the script worked. I have an error which says:

Assets/Scripts/BallHealth.js(7,15): BCE0020: An instance of type ‘UnityEngine.Transform’ is required to access non static member ‘position’.

This is the current script:

#pragma strict

var MaxFallDistance = -10;

function Update ()

{

if (Transform.position.y <= MaxFallDistance)

{

Debug.Log(“Test”);

}

}

Please use code tags whenever you post code in the forum:

You are using Transform instead of transform. Transform is the class name, while transform is the actual transform for the game object to which you attached the script.

1 Like

Ok thanks