Hello.
I have made a modulescript that runs a timer. For whatever reason, the loop that runs the timer does not start a second time.
Code
function data:CountDown()
for i = 1, 30 do
game.ReplicatedStorage.TimerValue.Value = game.ReplicatedStorage.TimerValue.Value - 1
end
end
I really cannot find why the function would not run a second time. In my real script, a warning is used to see when the function runs, and it does when asked to. The loop dosen’t though. The only thing that happens is the warning appears.
It is being called by another function inside the module script. I have tried calling the function from a Normal script on the server side but it does the same thing.