Why will the thing below not work?
Asked by
3 years ago Edited 3 years ago
01 | local temp = script.Parent.Value — starts at 0 |
02 | local heat = game.Workspace.H.Value —- also starts at 0 |
03 | local cool = game.Workspace.CoolantOn — starts at 0 |
06 | temp = temp + 5 — adds to the temp |
07 | if heat = = 1 then — checks if the heat is on |
08 | temp = temp + 20 - adds 20 to temp |
11 | if cool = = 1 then — checks if cool is on |
12 | temp = temp - 25 — takes away 25 from temp |
14 | until 1 = = 2 — makes a never ending loop (unless math is changed) |
If you can solve this, it would be GREATLY appreciated, and yes, those values WERE checked using developer console. They are = to 1.
The main point of this code is to change the “temp” Number value, either up or down.