If you have forgotten your Ipad passcode you need to put your Ipad into recovery mode to erase all data and then restore the device. Follow this link https://support.apple.com/en-gb/HT211078
You will require a PC or Mac with Itunes installed and a compatible cable to complete the job