So I have am making an Intermission bar in-game, and basically there's a stringVal in replicatedStorage and there's a TextLabel in a ScreenGUI that will update it to the current value of the stringVal. So what i'm confused about, is the script to update the value looks like this:
local status = game.ReplicatedStorage:WaitForChild("Status") status.Value = "Intermission (1 Minute)" wait(60) status.Value = "Round In Progress (3 Minutes)" wait(180)
But whenever the "Round In Progress" 3 minutes run out, it stays at Round in progress. I have tried making a value and setting it to "true" and adding this line of code
local status = game.ReplicatedStorage:WaitForChild("Status") while game.ReplicatedStorage.Looper.Value == "true" do status.Value = "Intermission (1 Minute)" wait(60) status.Value = "Round In Progress (3 Minutes)" wait(180)
but that doesn't work. Can someone please explain how to make the top script repeat over and over
while true do print("hello, i am the magical function of while true do, everyone hates me but I can be useful for you. la la la la") wait() end
Or you could just make a numValue and make the value INF which is a thing so it would be like this
script.Value.Value ---Go into the editor and manually change this to INF in the value section