2D platformer squashed

private void OnCollisionStay2D(Collision2D collision)
{
if (collision.gameObject.tag == “MovingPlatform” && collision.gameObject.tag == “Ground”)
{
StartCoroutine(die());
}
}

I need help with a few lines of code that kill the player if they touch

You need to explain what you are trying to accomplish and show all your code. Why are you calling a coroutine? Also your OnCollisionStay2D Should probably be OnCollision2D, otherwise your coroutine may be called multiple times…