You've gotta give us a bit more information. First thing that came to mind is that your battery fell below 20%, and the stock battery saver for MIUI goes in to effect at 20%. IIRC, the settings in this are initially set for a few different things to be disabled, one of which being haptic feedback. Again, not sure entirely of your situation, but yeah..
i acidently toggled the switch i feel dumb and thank you for the help guys and in the future i will give more help for you to help me find my answer and thank you again for helping me