I am trying to make a screen gui for my nuclear reactor that says the core status... it wont work?!?
heres the screen gui text changer script:
while true do
script.Parent.TextBox.Text = "Core Status : " .. game.Workspace.GuiValue
wait(.1)
end
heres the core temp monitor and value changer script:
while true do
if game.Workspace.Temp.Current.Value > -276 then
game.Workspace.GuiValue.Value = "Core too cold!"
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.b = 255
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.g = 0
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.r = 0
end
end
while true do
if game.Workspace.Temp.Current.Value > 0 then
game.Workspace.GuiValue.Value = "Core stable"
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.b = 0
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.g = 255
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.r = 0
end
end
while true do
if game.Workspace.Temp.Current.Value > 0 then
game.Workspace.GuiValue.Value = "Core Overheat!"
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.b = 0
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.g = 0
game.StarterGui.CoreStatusGui.TextBox.BackgroundColor3.r = 255
end
end
This may be the dumbest script EVER, i dont know, i am bad at scripting, please help!

1 comment
thank you!!! it worked!! :D