I think you did this wrong
(Points <= 0 )
Try this
function getPlayerPoints (thePlayer)
local Points = loadPlayerData (thePlayer,"wins")
if (Points > 0 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 100 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 250 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 500 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 1000 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 2500 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 5000 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 10000 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 50000 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
elseif (Points > 1000000 ) then
savePlayerData (thePlayer,"rank",loadPlayerData(thePlayer,"rank") + 1)
end
end
,