Hello there!
I’m trying to make a temperature screen Gui that shows the in-game temperature. I’m not sure why it is not working, though. It is supposed to change the text on two screen gui text labels, and the atmosphere density, but it isn’t working. Here’s the script:
local Fog = game.Lighting.Atmosphere
local FogLevel = game.StarterGui.ScreenGui.Frame.Fog
local Temp = game.StarterGui.ScreenGui.Frame.TextLabel
while true do
wait(30)
Temp.Text = "Temperature: 76 F 24 C"
wait(120)
Temp.Text = "Temperature: 83 F 28 C"
FogLevel.Text = "Fog Level: Almost None"
Fog.Density = 0.243
wait(184)
Temp.Text = "Temperature: 75 F 23 C"
FogLevel.Text = "Fog Level: Light"
Fog.Density = 0.34
wait(200)
end