Waypoint script problem

hello everyone
i’ve been working on a little racing game
and it was going quite weel until I realised that there was a problem
my game is a waypoint based race
you have to pass through every waypoint and when you reach the last you win
but my first waypoint whenever I start the game just starts literally going down, its Y position just keeps going down and my car can never collide with it
this is the waypoint script:

// The start waypoint, this is initialized in Awake.
// This variable is static thus all instances
// of the waypoint script share it.
static var start : WayPoint;
// The next waypoint, this variable needs to be
// assigned in the inspector.
// You can select all waypoints to see the
// full waypoint path.
var next : WayPoint;
// This determines where the start waypoint is.
var isStart = true;
// Returns where the AI should drive towards.
// position is the current position of the car.
function CalculateTargetPosition (position : Vector3) {
// If we are getting close to the waypoint,
// we return the next waypoint.
// This gives us better car behaviour when
// cars don’t exactly hit the waypoint
if (Vector3.Distance (transform.position, position) < 6) {
return next.transform.position;
}
// We are still far away from the next waypoint,
// just return the waypoints position
else {
return transform.position;
}
}
// This initializes the start and goal static variables.
// We have to inside Awake because the waypoints need
// to be initialized before the AI scripts use it
// All Awake function are always called before all
// Start functions.
function Awake () {
if (!next)
Debug.Log ("This waypoint is not connected,you need to set the next waypoint!", this);
if (isStart)
start = this;
}
// Draw the waypoint pickable gizmo
function OnDrawGizmos () {
Gizmos.DrawIcon (transform.position, "Waypoint.tif");
}
// Draw the waypoint lines only when you select
// one of the waypoints
function OnDrawGizmosSelected () {
if (next) {
Gizmos.color = Color.green;
Gizmos.DrawLine (transform.position, next.transform.position);
}
}

does it have gravity turned on in it’s rigidbody component?

OMG I feel so ridiculous right now XD
thank you :slight_smile: