detach parent through script not working

function OnTriggerStay (other : Collider)
{
if (other.tag == “Platform”)// = wont work. Needs to be ==
{
transform.parent = other.transform;
}
}
function OnTriggerExit (other : Collider)
{
if (other.tag == “Platform”)
{
transform.parent == null;
print(“jumped off”);
}
}
the print message works so I know the function is working

I had transform.parent == null; it was supposed to be transform.parent = null; with only one equal(=) sign. The console didn’t give me any errors though which threw me off.