im trying to make another leaderstat that is the value of the highest time that a player got (basically highscore) this is what ive tried and i get no errors but it does not work
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = player:WaitForChild("leaderstats")
local hTime = leaderstats.Highscore
local Time = leaderstats.Time
if Time.Value > hTime.Value then
hTime.Value = Time.Value
end
end)
