Imported from the Apple Support Forums via the Wayback Machine 🔗
The restriction code for Screen Time? If that isn't what you are asking about, more information would help.
To change or turn off the passcode on your child's device, tap Settings > Screen Time > [your child's name]. Then tap Change Screen Time Passcode or Turn Off Screen Time Passcode, and authenticate the change with Face ID, Touch ID, or your device passcode.
If that doesn't work, do a factory reset. You will need to restore the device to factory settings. Do not restore from a backup made when the Screen Time code was active.