Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local SortedPlayers = player.GetAll()
  2. table.sort( SortedPlayers, function( a, b ) return a:Frags() > b:Frags() end )
  3.  
  4. local TopPlayer = SortedPlayers[1]
  5.  
  6. for k, v in pairs(player.GetAll()) do
  7. v:ChatPrint( "[MVP] " .. TopPlayer:Nick() .. " is the top player with a score of " .. TopPlayer:Frags())
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement