I also have a video of it, but I dont know how to show it, so it would also be helpful if you could tell me that.
The title may sound a bit weird, but here is what it means: My script is basically a timer script. It changes the text of a TextLabel to act like a timer. but there is a weird problem... The Text "Value" in the Properties tab IS counting down and working perfectly, yet the actual TextLabel on the screen is not changing. It's staying at 5:00 (5 min : 0 sec) while in the properties tab, it's maybe at 4:36 seconds. Here is my code:
local ServerStorage = game:GetService("ServerStorage");
local StateOfGame = ServerStorage.StateOfGame;
local Timer = game.StarterGui.Players.Main.Timer;
local MidGame = false;
repeat wait() until StateOfGame;
function TimerCount()
repeat wait() until game.StarterGui.Players.Main.Timer;
if Timer.Sec.Value == 0 then
Timer.Text = Timer.Min.Value..":00";
wait(1)
Timer.Min.Value -= 1;
Timer.Sec.Value = 59;
else
Timer.Text = Timer.Min.Value..":"..Timer.Sec.Value;
wait(1)
Timer.Sec.Value -= 1;
end
end
function GameEnd()
if Timer.Min.Value == 0 and Timer.Sec.Value == 0 then
return true;
else
return false;
end
end
if StateOfGame.Value == "Start" and MidGame == false then
MidGame = false;
Timer.Min.Value = 5;
Timer.Sec.Value = 0;
while GameEnd() == false do
TimerCount();
end
end
It is a normal script inside of ServerScriptService.
