I tried all methods. Installing it as an addon and appending it in text but it didn’t work in 2.91. I went and tried it in 2.8 which worked. Then I tried to do it again in 2.91 and this time it worked. Probably some bug with blender. It’s working now tho.