Creating a Temperature-Based Meltdown

Hello there!
I’m trying to make a meltdown that would happen only when a temperature gauge counts up to a certain number. Let’s say, 3000 degrees. How would I make a surface gui that changes numbers?
Optional answer (I could figure this out after the main question, but feel free to answer to this one, too) How can I make a coolant system that lowers/slows the rise of the temperature?

for the temperuate use an intvalue and to change the temperature just make a surfacegui and code it to make the value higher/lower.

idk what you mean about this part:

Basically, a screen that displays the temperature, and the numbers change.

For the

you can just have a .Changed event to change the text on a surface gui to be the value of the temperature.

no dont use while loops use a changed event

1 Like

for example if the value is stored in workspace, do something like:

game.Workspace.Temp.Value.Changed:Connect(function(newVal)
script.Parent.Text = newVal
end)

Sorry for not indenting im not in studio rn
The code might be different depending where you store your value and where the surfaceGUI button is

Thanks. That’s alright. You can use three of these: ` to make a code box.