Check to make sure the line of code is firing, and ensure you are referencing the correct script. The script should disable and value should stop rising.
I checked.
If I destroy the script, the value stops rising. However, when I disable it, it continues to rise.
It’s being referenced right, and the code is firing.
Yeah, I checked that as well. If I had those running, if I destroyed the script, the temperature would still rise. It only rises if I disable it. On destruction, rising stops.
I had to put a check in the while true do function to only run if the script wasn’t disabled. This seems to have fixed it. Thanks for the help everyone .
I can’t think of anything else that could be causing this, but you could make your code more efficient by using either a bindable event or a .Changed event from a bool value to stop the heater.