Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make this round GUI repeat itself?

Hi everyone. I am making a simple PvP game, and I need this script to loop continuously. I am very new to scripting, so I am probably making a simple mistake. Here is the script -

while 2+2==4 do local status = game.ReplicatedStorage:WaitForChild("Status")

status.Value = "Intermission"
wait (9)
status.Value = "Round in Progress"
wait (9)
status.Value = "Game Over!"
wait (9)

end

2 comments

0

btw you can change 2+2==4 in your while loop to just true

0

https://developer.roblox.com/en-us/articles/Intro-to-GUIs you can use that link to learn about GUIs and create a textbox and set the text instead of changing a StringValue. Also make sure the script is a normal script not a locla script

2 answers

while true do
	status.Value = "Intermission"
	wait (9)
	status.Value = "Round in Progress"
	wait (9)
	status.Value = "Game Over!"
	wait (9)
end

1 comment

0

That's the same thing

Don't use a string. Use a text label and put it in StarterGui. Put a LocalScript in the TextLabel.

local status = script.Parent

while true do
wait (9)
status.Text = "Intermission"
wait (9)
status.Text = "Round in Progress"
wait (9)
status.Text = "Game Over!"

end

My sincere apologies if this does not work.

This discussion is preserved as it was. New answers, comments, and votes are closed.