please teach me which sentence is correct in english gammar.

1. It does not have to be a goodlooking.
2. It does not has to be a goodlooking.

1. has a correct verb, "have to be".

However goodlooking is an adjective describing "it", and should not be one word but two.

I would write:

It does not have to be good looking.