Im sure this scirpt still works for 9.81. If not....ugh....send me you're lib-string
50-functions
data>lib>lib-string.lua
server>doc>lua_functions
But if it does work, just replace this local where you see it in script. Then it should work.
local magicEffects = {1, 2, 3, 4, 5, 6, 7, 8, 9...