-
What do you want to achieve? A working temperature system for the fusion core in my game, with a different added value if there are different power levels, fan levels, or coolant levels.
-
What is the issue? The value does not change. It is an IntValue, for context.
-
What solutions have you tried so far? Tried looking up answers, but none of them relate to what I need.
Here is the current script I have:
local Temperature = script.Parent.Temperature
LaserLevel = script.Parent.Levels.LaserLevel
while true do
wait(1)
if LaserLevel.Value == 100 then
Temperature.Value = Temperature.Value + 40
else if LaserLevel.Value == 75 then
Temperature.Value = Temperature.Value + 30
else if LaserLevel.Value == 50 then
Temperature.Value = Temperature.Value + 20
else if LaserLevel.Value == 25 then
Temperature.Value = Temperature.Value + 10
end
end
end
end
end
All help would be grateful! Thank you for helping!
Lasers: Fixed by @paap15
Coolant: In the works
Fans: In the works