There are 2 ways to fi this.
# To reset it with your Apple ID
# To erase your device.
# How to reset with an Apple ID
# Step 1. Open settings, then tap screen time.
# Step 2. Tap change screen time password.
# Step 3. Tap change screen time password again on the pop \-up
# Step 4. Tap Forgot passcode?
# Step 5. Enter the Apple ID information of the Apple ID you have linked to the device or the one you used when setting up a screen time passcode.
# Step 6. Tap OK
# Step 7. Reset the code
# Step 8 Done
#