Hello, I am making a script where is changes the temperature every 30-45 seconds… I was wondering, how do I make my script so when the game is started it will set a temperature so when someone joins they don’t have to wait for the 30-45 seconds… Could someone please help?
while wait(math.random(30,45)) do -- waits for 30-45 seconds before changing..
local tempature = math.random(20,25).." °C" -- does the math for the new tempature
print("Tempature Changed, Current Tempature: "..tempature) -- prints to the server what the new tempature is
game.ReplicatedStorage.SendData:FireAllClients(tempature)
end