Hello!
Back with another issue.
Basically I am making a warning for when a reactor is overheating but when the temperature is below overheating I want to hide the text.
However I can’t figure a way to do that becuase if I try my way then it will hide the text even when the reactor goes below 499
Script (this is rushed 'cuz im running out of time)
local Temperature = workspace:WaitForChild("Values").Temperature
Temperature.Changed:Connect(function()
if Temperature.Value > 4500 then
script.Parent.BackgroundColor3 = Color3.fromRGB(223, 0, 0)
script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
script.Parent.Text = "DANGER - REACTOR DEGRADATION POSSIBLE"
elseif Temperature.Value > 3100 then
script.Parent.BackgroundColor3 = Color3.fromRGB(221, 147, 0)
script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
script.Parent.Text = "REACTOR CRITICAL - MINIMIZE PL INPUT"
elseif Temperature.Value > 1954 then
script.Parent.Visible = true
script.Parent.BackgroundColor3 = Color3.fromRGB(212, 212, 0)
script.Parent.TextColor3 = Color3.fromRGB(0, 0, 0)
script.Parent.Text = "REACTOR OVERHEATING - ENGAGE COOLING SYSTEMS"
elseif Temperature.Value < 500 then
script.Parent.Visible = true
script.Parent.BackgroundColor3 = Color3.fromRGB(0, 134, 218)
script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
script.Parent.Text = "REACTOR STALL POSSIBLE - DISABLE COOLING SYSTEMS"
end
end)
by the time i am posting this i am offline and im going to be online again tommorow 16:59 EST