getting this error when trying to use in 4.21, looked for a solution for hours but to no avail.
edit-
i found this code works. first i had to find a solution to the lvalue error and then find a completely different alternative method because it still wasnt working. a bit hacky and i hope somebody has a better fix than this.