Timer not working since months

i put a bunch of code inside scripts to get a timer.

RequestTime, RequestToolInfo, ServerMessage, WinTower and ValueChange is used for the Timer

ValueManager (ServerScriptService):

local VCE = game.ReplicatedStorage:WaitForChild(“ValueChange”)
local PD = game.ServerStorage.PlayerData
–game.Players.PlayerAdded:Connect(function(p)
– local pf
– p.CharacterAdded:Connect(function(c)
– local h=c:WaitForChild’HumanoidRootPart’
– local p=Instance.new(‘Part’,workspace) --create a hitbox to touch checkpoints because otherwise checkpoints won’t activate(??)
– p.CanCollide=false
– p.Name=‘CheckpointHitbox’
– p.Massless=true
– p.Transparency=1
– p.Size=Vector3.new(3,3,3)
– p:SetNetworkOwner(nil)
– local at=Instance.new(‘Attachment’,p)
– local at1=Instance.new(‘Attachment’,h)
– local w=Instance.new(‘AlignPosition’,p)
– w.Attachment0=at
– w.Attachment1=at1
– w.RigidityEnabled=true
– p.Touched:Connect(function(t)
– if t:IsDescendantOf(workspace.CPBricks) and pf then
– print’hhh’
– local TV = pf:FindFirstChild(t.Name)
– print(TV)
– if TV and TV.Value~=true then
– TV.Value = true
– print(TV.Name…" is now true")
– end
– end
– end)
– end)
– pf=PD:WaitForChild(p.Name…"_valuefolder")
–end)
VCE.OnServerEvent:Connect(function(Player, TriggeredValue, Died)
print(TriggeredValue, Died)
if Died == “SetTime” then
local Timer = Player:FindFirstChild(“PlayerGui”):FindFirstChild(“Timer”)
if Timer then
Timer.TextLabel.Text = TriggeredValue
end
end
end)

TimeScript (StarterGui, Timer GUI)

local StartTime
local TSeconds = 0
local Minutes = 0
local Seconds = 0
local Mseconds = 0
local Started = false
local GL
local TS=game:GetService’TweenService’
function game.ReplicatedStorage.RequestTime.OnClientInvoke()
return TSeconds,Minutes,Seconds,Mseconds
end
function game.ReplicatedStorage.RequestToolInfo.OnClientInvoke()
return GL
end
function _G:ToggleRestartLabel(v)
local info=TweenInfo.new(v and _G.QuickResetDelay or 3 or .5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
local tw=TS:Create(script.Parent.Restart,info,{TextTransparency=v and 0 or 1})
tw:Play()
end
game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”).ChildAdded:Connect(function(Object)
if Object.Name == “InTower” then
if Started ~= true then
Started = true
GL = {}
StartTime = workspace.DistributedGameTime
local TowerName = game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”):WaitForChild(“InTower”).Value
repeat
wait()
local findgear = game.Players.LocalPlayer.Character:FindFirstChildOfClass(“Tool”)
if findgear then
–if findgear.Name == “Vertical Mobility” or findgear.Name == “Bootleg Coil” then
–for index,value in pairs(GL) do
– if index == findgear.Name then
– print(GL[index])
GL[findgear.Name] = true
– end
–end
–end
end
TSeconds=math.floor(workspace.DistributedGameTime-StartTime)
Minutes = math.floor(math.floor(workspace.DistributedGameTime-StartTime)/(601))
Seconds = math.floor(math.floor(workspace.DistributedGameTime-StartTime)/(1))%(60)
Mseconds = math.floor((workspace.DistributedGameTime-StartTime)
(100))%(100)
script.Parent.TextLabel.Text = string.format(’%s:%02i.%02i’,Minutes,Seconds,Mseconds)
until game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”).Health <= 0 or game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”):FindFirstChild(“InTower”) == nil
local Win = game.Players.LocalPlayer.Character:FindFirstChild(“Humanoid”):FindFirstChild(“Win”)
if Win then
if TowerName ~= “ToHM” or TowerName ~= “ToHR” then
– game.ReplicatedStorage.WinTower:FireServer("["..game.Players.LocalPlayer.Name.."]:"…" has beaten: “…”"..findabbr(TowerName)..""…" in “…(”"..Minutes..":"..Seconds..":"..Mseconds.."")…"\n Used VM: “…”"…VM…""…"\n Used BGC: “…”"…BGC…"")
game.ReplicatedStorage.WinTower:FireServer(TowerName,Minutes,Seconds,Mseconds,GL)
end
end
if game.Players.LocalPlayer.Character:FindFirstChild(“Humanoid”).Health ~= 0 and Win then
–game.ReplicatedStorage.ServerMessage:FireServer(TowerName,Minutes,Seconds,Mseconds)
end
wait(1)
script.Parent.TextLabel.Text = “0:00.00”
Started = false
end
end
end)

There are no details about the code (more information, error(s) printed by at least one of the scripts). Consider fixing that and other issues with the post.