How would i go on to make a thermometer?

  1. I want to display the temperature on a screen. (That I can control)

  2. I don’t know how would I go on to change the temperature in certain rooms and change it smoothly

I have only made code to turn on the thermometer

local UserInputService = game:GetService("UserInputService")

local turnedOn = false
local turnedOffColor = Color3.fromRGB(17, 17, 17)

local model = script.Parent.Thermometer
local screen = model.Screen

local text = model.ScreenGlass.SurfaceGui.TextLabel

UserInputService.InputEnded:Connect(function(input, Chatting)
	-- Checking if event is already processed by an Gui or the ContextActionService
	if (Chatting) then
		return
	end

	if (input.UserInputType == Enum.UserInputType.MouseButton2) then
		-- Code that needs to be run if right mouse button is released
		turnedOn = not turnedOn
		if turnedOn then
			screen.Color = Color3.fromRGB(255,122,0)
			screen.Material = Enum.Material.Neon
			text.TextTransparency = 0
		else
			screen.Color = turnedOffColor
			screen.Material = Enum.Material.Plastic
			text.TextTransparency = 1
		end
	end
end)

robloxapp-20240715-1326228.wmv (919.1 KB)

I would like to make something like this

robloxapp-20240715-1334192.wmv (1.2 MB)

Please give me ideas on how to make something like this.

Nevermind, I found out how to make one.
Contact me if you have a similar problem.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.