Change boxCollder2d to Boxcollder


but it says something like "cant put boxCollider beacuse there is a boxCollider2D
i check, and the BOXCOLLIDer2D destroy, but the script dont put the boxCollider…

Destroying things doesn’t happen at that exact moment. You must wait for the next frame to add the new collider. Try doing the destroy and add inside a coroutine.