EDIT: I found the error, and I think is good for sharing: usually when I wanted to for example teleport from a florest with fog to a house with no fog I would just set a fog with "nothing" like this:

But with this script, you can't, so the best way to do the same thing with no injuries is just set the opacity of the fog to 0



