Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

All sorts of Values not changing and script doesn't detect changes?

Asked by
A_Mp5 222 Moderation Voter
4 years ago

I have this thruster model with a TON of values in a configuration folder, and they don't want to change. (Bool values, Object Values, Number Values, String Values) One of my scripts:

01local config = script.Parent.Parent.Configuration
02local acc = config.TempAccel
03local max = config.TempMax
04local min = config.TempMin
05local tempc = config.TempratureC
06--variables
07 
08while tempc.Value <= max.Value and config.On.Value == true do
09    tempc.Value = tempc.Value + acc.Value
10    wait(config.Speed.Value/5)
11end
12while tempc.Value <= min.Value and config.On.Value == false do
13    tempc.Value = tempc.Value - config.TempDeAccel.Value
14    wait(config.TempDeAccel.Value/5)
15end

Second Script:

01local config = script.Parent.Parent.Configuration
02local acc = config.TempAccel
03local max = config.TempMax
04local min = config.TempMin
05local tempc = config.TempratureC
06--variables
07while tempc.Value >= max do
08    config.On.Value = false
09    config.Speed.Value = config.Speed.Value - 10
10    config.Started.Value = false
11    config.Overheated.Value = true
12end
13 
14while tempc.Value <= min do
15    config.On.Value = false
16    config.Speed.Value = config.Speed.Value - 10
17    config.Started.Value = false
18    config.Underheated.Value = true
19end

These scripts aren't local.

Answer this question