Help with Intermission GUI Script!

I want the GUI to be able to countdown.

The issue is, for some reason my script won’t work and I have no clue why.

Nothing on the DevForum has helped me, nor Youtube.n

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
SERVER SCRIPT

-- 
local status = game:GetService("ReplicatedStorage"):FindFirstChild("Status")
local interTime = 10

while true do
	
	status.Value = "Intermission"..interTime --Status is a ReplicatedStorage String Value
	
	interTime = interTime - 1
	
	wait(1)
	
	if interTime <= 0 then
		break
	end
end

status.Value = "Round Starting.."

Local Script inside of TextLabel
local status = game:GetService(“ReplicatedStorage”):FindFirstChild(“Status”)

status.Changed:Connect(function()

script.Parent.Text = status.Value

end)

1 Like

It works for me. Where are you storing these scripts?

1 Like

The only recommendation i can make is

  1. Change your variable name. Ex. script or math cannot be variables
    and
  2. Maybe Change FindFirstChild to WaitForChild
1 Like

Instead of a while why not use a for loop so you don’t need to break out of the loop.

for interTime = countdownTime,0,-1 do
   status.Value = "Intermission "..interTime
   wait(1)
end

Local Script is inside the Text Label. The Server Script is inside SeverScriptService.

Changing it to WaitForChild workerd. Thanks man. :+1: