local RunService = game:GetService("RunService")
local StartTimer = game.ReplicatedStorage.StartTimer
local StopTimer = game.ReplicatedStorage.StopTimer
local StartTime = nil
local running = false
local debounce = false
StartTimer.OnClientEvent:Connect(function()
if not running then
script.Parent.Visible = true
StartTime = tick()
running = true
end
end)
StopTimer.OnClientEvent:Connect(function()
StartTime = nil
running = false
end)
RunService.Heartbeat:Connect(function( )
if running then
script.Parent.Text = string.format("%.1f", tick() - StartTime)
end
end)