✓ Accepted answer
The reason why this doesn't work is that the text isn't changing every time the value is changed. It was a small error but can be simply fixed by doing:
local Timer = game.ReplicatedStorage.Timer
script.Parent.TextLabel.Text = (Timer.Value)
while wait(1) do
game.ReplicatedStorage.Timer.Value = game.ReplicatedStorage.Timer.Value -1
script.Parent.TextLabel.Text = (Timer.Value)
end
If you wanted the timer to stop at zero, you could do something like this:
local Timer = game.ReplicatedStorage.Timer
script.Parent.TextLabel.Text = (Timer.Value)
repeat wait(1)
game.ReplicatedStorage.Timer.Value = game.ReplicatedStorage.Timer.Value -1
script.Parent.TextLabel.Text = (Timer.Value)
until
game.ReplicatedStorage.Timer.Value == 0
1 comment
I made edits to my answer so it could work a little better.