So it turns out the script doesn't work now. Thankfully, I've fixed it.
You see, I was making a script pack, and this script was supposed to be a part of it, but I forgot to remove the code to look for a toggle variable, which I removed. And it didn't work at all, but I've removed the code, changed a teeny bit of stuff, and now it should function properly again.