So when the game time counts down, when I try to change the value, it immediately reverts back to what it was, further continuing the countdown.
local GameTime = game.ReplicatedStorage.GameRequirements.GameTime for v = 60, 0, -1 do wait(1) GameTime.Value = v print(v) wait(5) game.ReplicatedStorage.GameRequirements.GameTime.Value = game.ReplicatedStorage.GameRequirements.GameTime.Value -game.ReplicatedStorage.GameRequirements.GameTime.Value
So I am trying to make it so that after 5 seconds, the game time will subtract its current value, ending with a value of 0. Say it was at 45 and the script would change the value to 0, it would revert back from 0 to 45. Any reason why this happens? Thanks for the help.
I see you either have some experience with python or it's just a mistake.
local gameTime = game.ReplicatedStorage.GameRequirements.GameTime for i=60,0,-1 do wait(1) gameTime.Value = i print(i) end wait(5) gameTime.Value = 0