Temporarily disable a collider ?

function OnTriggerEnter(hit : Collider){

if(hit.gameObject.tag == "Checkpoint1")
      ckp=ckp +1;

if(hit.gameObject.tag == “Checkpoint2”)
ckp=ckp +1;
if(hit.gameObject.tag == “Checkpoint3”)
ckp=ckp +1;

+++++++++++++++++++++++++++++++++++++++++++++++

This is a piece of my checkpoints and laps script :slight_smile: it works BUT ,I want to stop people going through checkpoint one again and again (cheating) ,can anyone tell me how to disable the object with “Checkpoint1” tag then “Checkpoint2” etc till the last checkpoint is hit and the first checkpoints become enabled again ? .I am hitting my head on a brick wall with this for some reason lol :slight_smile:

Lol it occurred to me to think like an artist XD I been a 3D Nut forever :)and I thought ILLUSION ! ,just move the colliders under the terrain keep the Posts there and raise the collider as its needed BOOM ! Illusion ,:wink: hide them Phsically and raise check 2 after check 1 is opassed then hidden :slight_smile: CHEATPROOF ! :slight_smile: