No, all you need is a unlocked bootloader and TWRP that support toybox/busybox.
If TWRP don't support nothing will happen so the script wont even install.
About the Kernel Tweaks, no, it wont brick your device.
As long you are running MIUI and has these requisites i said above, it's safe and...