Thank you for your clarification.
In that case, you should apply as soon as possible for further leave to remain in the UK as a person exercising rights of access to a child resident in the UK under Para. 248A of the Immigration Rules. The requirements are set out below:
248A. The requirements to be met by a person seeking leave to remain in the United Kingdom to exercise access rights to a child resident in the United Kingdom are that:
(i) the applicant is the parent of a child who is resident in the United Kingdom; and
(ii) the parent or carer with whom the child permanently resides is resident in the United Kingdom; and
(iii) the applicant produces evidence that he has access rights to the child in the form of:
(a) a Residence Order or a Contact Order granted by a Court in the United Kingdom; or
(b) a certificate issued by a district judge confirming the applicant's intention to maintain contact with the child; or
(c) a statement from the child's other parent (or, if contact is supervised, from the supervisor) that the applicant is maintaining contact with the child; and
(iv) the applicant takes and intends to continue to take an active role in the child's upbringing; and
(v) the child visits or stays with the applicant on a frequent and regular basis and the applicant intends this to continue; and
(vi) the child is under the age of 18; and
(vii) the applicant has limited leave to remain in the United Kingdom as the spouse, civil partner, unmarried partner or same-sex partner of a person present and settled in the United Kingdom who is the other parent of the child; and
(viii) the applicant has not remained in breach of the immigration laws; and
(ix) there will be adequate accommodation for the applicant and any dependants without recourse to public funds in accommodation which the applicant owns or occupies exclusively; and
(x) the applicant will be able to maintain himself and any dependants adequately without recourse to public funds.
If successful, you will be granted 12 months leave to remain after which you may apply for indefinite leave to remain here.
You should make the application on Form FLR(O): https://apply.ukba.homeoffice.gov.uk/iapply.portal?_nfpb=true&_pageLabel=confirmAndDownload&com.sun.faces.portlet.CLEAR_STATE=true&_nfls=false&formId=FLRO&rpl=formList
Good luck and please press Accept