Advertisement
keici

Untitled

Jun 2nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. --SynapseX Decompiler
  2.  
  3. local tinsert = table.insert
  4. local Bnew = BrickColor.new
  5. local Cnew = Color3.new
  6. while wait(1) do
  7. if script.Parent.Visible == true then
  8. local priority = {}
  9. for i, v in pairs(game.Players:GetPlayers()) do
  10. if v:FindFirstChild("Status") and v.Status:FindFirstChild("Score") and v.Status.Alive.Value == true then
  11. if #priority ~= 0 then
  12. for j = 1, #priority do
  13. if v.Status.Score.Value >= priority[j].Status.Score.Value then
  14. tinsert(priority, j, v)
  15. break
  16. end
  17. if j == #priority then
  18. tinsert(priority, v)
  19. end
  20. end
  21. else
  22. tinsert(priority, v)
  23. end
  24. end
  25. end
  26. local crap = script.Parent:GetChildren()
  27. for i = 1, #crap do
  28. if crap[i].className == "Frame" then
  29. crap[i].Visible = false
  30. end
  31. end
  32. script.Parent.Position = UDim2.new(0.5, -267.5 + 26.875 * (10 - #priority), 0, 15)
  33. for i = 1, #priority do
  34. if i <= 10 and script.Parent:FindFirstChild(i) and script.Parent[i]:FindFirstChild("BG") and script.Parent[i]:FindFirstChild("Level") and script.Parent[i].BG:FindFirstChild("Player") then
  35. if priority[i].TeamColor == Bnew("Bright blue") then
  36. script.Parent[i].BackgroundColor3 = Cnew(0, 0, 0.43137254901960786)
  37. elseif priority[i].TeamColor == Bnew("Bright yellow") then
  38. script.Parent[i].BackgroundColor3 = Cnew(0.43137254901960786, 0.43137254901960786, 0)
  39. end
  40. if game.Players.LocalPlayer and priority[i].Name == game.Players.LocalPlayer.Name then
  41. if priority[i].TeamColor == Bnew("Bright blue") then
  42. script.Parent[i].BackgroundColor3 = Cnew(0, 0, 1)
  43. elseif priority[i].TeamColor == Bnew("Bright yellow") then
  44. script.Parent[i].BackgroundColor3 = Cnew(1, 1, 0)
  45. end
  46. end
  47. script.Parent[i].Visible = true
  48. script.Parent[i].Level.Text = priority[i].Status.Score.Value
  49. script.Parent[i].BG.Player.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&userId=" .. priority[i].UserId
  50. end
  51. end
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement