leaderboardstore = datastoreservice:GetOrderedDataStore(songName)
if leaderboardstore:GetAsync(player.UserId) or 0 <player.Points.Value then
debounce = true
wait(1)
leaderboardstore:SetAsync(player.UserId, player.Points.Value)
player.Points.Value = 0
wait(10)
debounce = false
end
end
end)
im not too sure why, everything is correct with the leaderboard and stuff.

2 comments
Have you tried putting a space between < and player.points.Value?
Its probably because the original saved value was below 0