This is the only script I know that does anything with the time value, would this break anything?
game.Players.PlayerRemoving:Connect(function(Player)
local leaderstats = Player.leaderstats
local timevalue = leaderstats.Time.Value
local datastore = game:GetService("DataStoreService")
local ds1 = datastore:GetDataStore("TimeSave")
local success, err = pcall(function()
ds1:SetAsync(Player.UserId, timevalue)
end)
end)