✓ Accepted answer
Why not use a for loop?;
for i = 10, 0, -1 do
script.Parent.Text = i
wait(1)
end
But, if you don't want to use a for loop, then how about taking away the numbers in the Value using the while true do end loop? Heres an example of what I mean;
local Time_Drive = game.ReplicatedStorage:WaitForChild("TIME_DRIVE")
local TimeDrive = Time_Drive:WaitForChild("CurrentTimer")
while wait(1) do
script.Parent.Text = TimeDrive.Value
TimeDrive.Value = TimeDrive.Value - 1
if TimeDrive.Value == 0 then
break
end
end
Sorry if this was not a good explanation, or did not help, because I posted this at 11:57 PM.
EDIT
I just noticed the rest of your problem, theres a way to fix that, or, multiple ways, let me show you one using the WaitForChild method;
local TimeDrive = game.ReplicatedStorage:WaitForChild("TIME_DRIVE")
local CurrentTimer = TimeDrive:WaitForChild("CurrentTimer")
Hope this helped!
1 comment
The way you're doing it would make the timer reset when a player dies, I think he wants to use the separate value so that all timers remain the same.