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:


local config = script.Parent.Parent.Configuration local acc = config.TempAccel local max = config.TempMax local min = config.TempMin local tempc = config.TempratureC --variables while tempc.Value <= max.Value and config.On.Value == true do tempc.Value = tempc.Value + acc.Value wait(config.Speed.Value/5) end while tempc.Value <= min.Value and config.On.Value == false do tempc.Value = tempc.Value - config.TempDeAccel.Value wait(config.TempDeAccel.Value/5) end

Second Script:


local config = script.Parent.Parent.Configuration local acc = config.TempAccel local max = config.TempMax local min = config.TempMin local tempc = config.TempratureC --variables while tempc.Value >= max do config.On.Value = false config.Speed.Value = config.Speed.Value - 10 config.Started.Value = false config.Overheated.Value = true end while tempc.Value <= min do config.On.Value = false config.Speed.Value = config.Speed.Value - 10 config.Started.Value = false config.Underheated.Value = true end

These scripts aren't local.

Answer this question