"Reset Passcode" function does not work

I have the same problem.
I forgot my passcode and I tried to change it, but when i enter the passcode says it’s incorrect.
Please, help me