May I have some help? it would be appreciated, I really dont understand why this isnt working.
Here is the script for the timer.
local Time_Value = game.Workspace:WaitForChild('Time')
local TimeText = script.Parent
TimeText.Text = Time_Value.Value
repeat
wait(1)
Time_Value.Value -= 1
until
Time_Value.Value == 0
Time_Value.Changed:Connect(function(val)
if val then
TimeText.Text = Time_Value.Value
end
end)
That’s because the repeat loop is yielding the entire thread and the connection does not occur until the loop is finished. Encase the loop in a coroutine or use task.spawn
Or reorganize your code such that the .Changed connection happens before the loop starts