Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SynapseX Decompiler
- local tinsert = table.insert
- local Bnew = BrickColor.new
- local Cnew = Color3.new
- while wait(1) do
- if script.Parent.Visible == true then
- local priority = {}
- for i, v in pairs(game.Players:GetPlayers()) do
- if v:FindFirstChild("Status") and v.Status:FindFirstChild("Score") and v.Status.Alive.Value == true then
- if #priority ~= 0 then
- for j = 1, #priority do
- if v.Status.Score.Value >= priority[j].Status.Score.Value then
- tinsert(priority, j, v)
- break
- end
- if j == #priority then
- tinsert(priority, v)
- end
- end
- else
- tinsert(priority, v)
- end
- end
- end
- local crap = script.Parent:GetChildren()
- for i = 1, #crap do
- if crap[i].className == "Frame" then
- crap[i].Visible = false
- end
- end
- script.Parent.Position = UDim2.new(0.5, -267.5 + 26.875 * (10 - #priority), 0, 15)
- for i = 1, #priority do
- 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
- if priority[i].TeamColor == Bnew("Bright blue") then
- script.Parent[i].BackgroundColor3 = Cnew(0, 0, 0.43137254901960786)
- elseif priority[i].TeamColor == Bnew("Bright yellow") then
- script.Parent[i].BackgroundColor3 = Cnew(0.43137254901960786, 0.43137254901960786, 0)
- end
- if game.Players.LocalPlayer and priority[i].Name == game.Players.LocalPlayer.Name then
- if priority[i].TeamColor == Bnew("Bright blue") then
- script.Parent[i].BackgroundColor3 = Cnew(0, 0, 1)
- elseif priority[i].TeamColor == Bnew("Bright yellow") then
- script.Parent[i].BackgroundColor3 = Cnew(1, 1, 0)
- end
- end
- script.Parent[i].Visible = true
- script.Parent[i].Level.Text = priority[i].Status.Score.Value
- script.Parent[i].BG.Player.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&userId=" .. priority[i].UserId
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement