Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my timer getting faster?

Asked by 9 years ago

Each round of my game I disable and enable a script called Tick, that increases an IntValue by 1 every 0.1 seconds. This works fine until a few rounds later when the script is increasing the time at a massively increased rate.

while wait(.1) do
    workspace.GameStatus.GlobalTime.Value = workspace.GameStatus.GlobalTime.Value + 1
end

I feel as though this might be something to do with enabling and disabling the script? Otherwise I'm clueless. No other scripts interfere with this one and it is just a normal script in the workspace.

After more testing I can say:

The script becomes disabled but continues running, like there are multiple active copies but they cannot be seen. I've searched all scripts using Ctrl-Shift-F and theres no other script altering the value of Global Time.

MD

Answer this question