Advertisement
Zaezax

Rogue Lineage Combat Visualiser

Nov 23rd, 2021
2,837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 65.79 KB | None | 0 0
  1. ----- Combat Visualiser v1.0 -----
  2. ----- Load Player -----
  3. local UIS = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5. local player = game.Players.LocalPlayer
  6. local char = player.Character
  7. local humanoid = char.Humanoid
  8. local currentSpell = ""
  9. local childaddedConnection
  10. local childremovedConnection
  11. local buttondownConnection
  12. local buttondowntwoConnection
  13. local childaddedtwoConnection
  14. local childremovedtwoConnection
  15. local lgui
  16. local rgui
  17. local mgui
  18. game.Players.LocalPlayer.CharacterAdded:Connect(function(newChar)
  19.     player = game.Players:FindFirstChild(newChar.Name)
  20.     char = newChar
  21.     humanoid = newChar:WaitForChild("Humanoid")
  22.     createHPDisplay()
  23.     humanoid.Died:Connect(function()
  24.         resetPanel()
  25.         if childaddedConnection ~= nil then
  26.             childaddedConnection:Disconnect()
  27.         end
  28.         if childremovedConnection ~= nil then
  29.             childremovedConnection:Disconnect()
  30.         end
  31.         if childaddedtwoConnection ~= nil then
  32.             childaddedtwoConnection:Disconnect()
  33.         end
  34.         if childremovedtwoConnection ~= nil then
  35.             childremovedtwoConnection:Disconnect()
  36.         end
  37.     end)
  38.     repeat
  39.         wait()
  40.     until newChar:FindFirstChild("HumanoidRootPart") ~= nil
  41.     if lgui.Parent.Enabled == true then
  42.         panelSetup(false)
  43.     else
  44.         panelSetup(true)
  45.     end
  46.     repeat
  47.         wait()
  48.     until newChar:FindFirstChild("RightRuneArm") ~= nil and newChar:FindFirstChild("LeftRuneArm") ~= nil
  49.     wait(3)
  50.     playerLoop("Pre-Load")
  51. end)
  52. ----- Load Interface -----
  53. local manaColor = Color3.fromRGB(255,255,255)
  54. local ambientColor = Color3.fromRGB(160,160,160)
  55. local UIColor = Color3.fromRGB(32, 41, 59)
  56. local cp = game:GetObjects("rbxassetid://5433782451")[1]
  57. local rp = cp.RightPanel
  58. local lp = cp.LeftPanel
  59. local mp = cp.MidPart
  60. local midp = cp.MidPanel
  61. midp.Transparency = 1
  62.  
  63.  
  64. for i,v in pairs(cp:GetChildren()) do
  65.     if v.ClassName == "SurfaceGui" then
  66.         if v.Name == "LeftGUI" then
  67.             v.Adornee = lp
  68.             lgui = v.Backdrop
  69.         elseif v.Name == "RightGUI" then
  70.             v.Adornee = rp
  71.             rgui = v.Backdrop
  72.         elseif v.Name == "MidGUI" then
  73.             v.Adornee = midp
  74.             mgui = v.Backdrop
  75.         end
  76.         v.Parent = game.CoreGui
  77.     end
  78. end
  79.  
  80. local colorAdjust = mgui.UIColorAdjustSlider
  81. colorAdjust.Green.Text = math.floor(UIColor.G*255)
  82. colorAdjust.Blue.Text = math.floor(UIColor.B*255)
  83. local manaAdjust = mgui.ManaColorSlider
  84. manaAdjust.Red.Text = math.floor(manaColor.R*255)
  85. manaAdjust.Green.Text = math.floor(manaColor.G*255)
  86. manaAdjust.Blue.Text = math.floor(manaColor.B*255)
  87. local ambientAdjust = mgui.AmbientSlider
  88. ambientAdjust.Red.Text = math.floor(ambientColor.R*255)
  89. ambientAdjust.Green.Text = math.floor(ambientColor.G*255)
  90. ambientAdjust.Blue.Text = math.floor(ambientColor.B*255)
  91. cp.Parent = game.Workspace
  92. cp.PrimaryPart = mp
  93.  
  94. function resetPanel()
  95.     for q,r in pairs(cp:GetChildren()) do
  96.         r.Anchored = true
  97.     end
  98.     for i,v in pairs(char.HumanoidRootPart:GetChildren()) do
  99.         if v.ClassName == "WeldConstraint" then
  100.             v:Destroy()
  101.         end
  102.     end
  103. end
  104.  
  105. humanoid.Died:Connect(function()
  106.     resetPanel()
  107. end)
  108.  
  109. function panelSetup(disabled)
  110.     for q,r in pairs(cp:GetChildren()) do
  111.         if r.ClassName == "Part" then
  112.             r.Anchored = false
  113.         end
  114.     end
  115.     if disabled == true then
  116.         cp:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame * CFrame.new(0,20,0) * CFrame.Angles(0,math.rad(180),0))
  117.     else
  118.         cp:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(180),0))
  119.     end
  120.     local attachList = {
  121.         {"HumanoidRootPart",mp},
  122.         {"HumanoidRootPart",rp},
  123.         {"HumanoidRootPart",lp},
  124.         {"HumanoidRootPart",midp}
  125.     }
  126.     for i = 1,4 do
  127.         local weld = Instance.new("WeldConstraint")
  128.         weld.Parent = char:FindFirstChild(attachList[i][1])
  129.         weld.Part0 = char:FindFirstChild(attachList[i][1])
  130.         weld.Part1 = attachList[i][2]
  131.     end
  132. end
  133. panelSetup(false)
  134.  
  135. ----- Interface Settings -----
  136. local guiSettings = {
  137.     ["Cooldowns Indicator"] = false,
  138.     ["Clear Ambient"] = false,
  139.     ["Player Spectate"] = false,
  140.     ["Chat / illusionist"] = false,
  141.     ["GUI Settings"] = false,
  142.     ["Damage Indicator"] = false,
  143.   --------------------------
  144.     ["Vitality Stats"] = false,
  145.     ["Spell Assist"] = false,
  146.     ["Player ESP"] = false,
  147.     ["Seer - Intent"] = false,
  148.     ["Mana Display"] = false,
  149.     ["Backpack Display"] = false
  150. }
  151. local playerList = {}
  152.  
  153. function changeSettings(btn)
  154.     local btnText = btn.Text
  155.     for name,value in pairs(guiSettings) do
  156.         if btnText == name and value == false then
  157.             guiSettings[name] = not guiSettings[name]
  158.             btn.BackgroundColor3 = Color3.fromRGB(126, 255, 126)
  159.             btn.TextColor3 = Color3.new(0,0,0)
  160.         elseif btnText == name and value == true then
  161.             guiSettings[name] = not guiSettings[name]
  162.             btn.BackgroundColor3 = UIColor
  163.             btn.TextColor3 = Color3.new(255, 255, 255)
  164.         end
  165.     end
  166. end
  167.  
  168. function createHPDisplay()
  169.     local hpFrame = game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("Container"):WaitForChild("Health"):WaitForChild("Slider")
  170.     local manaFrame = game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana")
  171.     local Details = Instance.new("TextLabel")
  172.     local manaDetails = Instance.new("TextLabel")
  173.     local mana = game.Players.LocalPlayer.Character:WaitForChild("Mana")
  174.     local hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
  175.     local hpNotZero = true
  176.     Details.Name = "HealthDisplay"
  177.     manaDetails.Name = "ManaDisplay"
  178.     if guiSettings["Vitality Stats"] == true then
  179.         Details.Visible = true
  180.         manaDetails.Visible = true
  181.     else
  182.         Details.Visible = false
  183.         manaDetails.Visible = false
  184.     end
  185.     Details.Parent = hpFrame
  186.     Details.BackgroundColor3 = Color3.fromRGB(255,255,255)
  187.     Details.BackgroundTransparency = 1.000
  188.     Details.LayoutOrder = 1
  189.     manaDetails.Parent = manaFrame
  190.     manaDetails.BackgroundTransparency = 1
  191.     manaDetails.LayoutOrder = 1
  192.     if hpFrame.AbsoluteSize.X <= 58 then
  193.         Details.Position = UDim2.new(0, math.abs(58 - hpFrame.AbsoluteSize.X)/2, 0, 0)
  194.     else
  195.         Details.Position = UDim2.new(0, 0, 0, 0)
  196.     end
  197.     Details.Size = UDim2.new(1, 0, 1, 0)
  198.     Details.Font = Enum.Font.Fantasy
  199.     Details.Text = "[ " .. math.floor(hum.Health)  .. " | " .. math.floor(hum.MaxHealth) .. " ]"
  200.     Details.TextColor3 = Color3.fromRGB(255,255,255)
  201.     Details.TextSize = 16
  202.     Details.ZIndex = 5
  203.     Details.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  204.     Details.TextStrokeTransparency = 0
  205.     manaDetails.Size = UDim2.new(1, 0, 1, 0)
  206.     manaDetails.Font = Enum.Font.Fantasy
  207.     manaDetails.Text = math.floor(mana.Value)
  208.     manaDetails.TextColor3 = Color3.fromRGB(255,255,255)
  209.     manaDetails.TextSize = 16
  210.     manaDetails.ZIndex = 5
  211.     manaDetails.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  212.     manaDetails.TextStrokeTransparency = 0
  213.     local barFrame = game.Players.LocalPlayer.PlayerGui.StatGui.LeftContainer.Mana
  214.     local folder = Instance.new("Folder")
  215.     folder.Name = "SpellAssistFolder"
  216.     folder.Parent = barFrame
  217.     for i = 1,18 do
  218.         spawn(function()
  219.             if i ~= 5 and i <= 9 then
  220.                 local manaDetails = Instance.new("TextLabel")
  221.                 manaDetails.Size = UDim2.new(1, 0, 0, 0)
  222.                 manaDetails.Position = UDim2.new(0, 0, i/10, 0)
  223.                 manaDetails.BackgroundTransparency = 1
  224.                 manaDetails.Font = Enum.Font.Fantasy
  225.                 manaDetails.Text = 100-i*10
  226.                 manaDetails.TextColor3 = Color3.fromRGB(255, 255, 255)
  227.                 manaDetails.TextSize = 14
  228.                 manaDetails.ZIndex = 5
  229.                 manaDetails.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  230.                 manaDetails.TextStrokeTransparency = 0
  231.                 manaDetails.Parent = folder
  232.                 if guiSettings["Spell Assist"] == true then
  233.                     manaDetails.Visible = true
  234.                 else
  235.                     manaDetails.Visible = false
  236.                 end
  237.             end
  238.             local Frame = Instance.new("Frame")
  239.             Frame.Parent = folder
  240.             Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  241.             Frame.BorderSizePixel = 0
  242.             if guiSettings["Spell Assist"] == true then
  243.                 Frame.Visible = true
  244.             else
  245.                 Frame.Visible = false
  246.             end
  247.             if i <= 9 then
  248.                 Frame.Position = UDim2.new(0, 0, i/10, 0)
  249.             else
  250.                 Frame.Position = UDim2.new(1, -5, i/10-1+0.1, 0)
  251.             end
  252.             Frame.Size = UDim2.new(0.17, 0, 0, 1)
  253.             if i == 5 or i == 14 then
  254.                 Frame.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  255.             else
  256.                 Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  257.             end
  258.             Frame.ZIndex = 5
  259.         end)
  260.     end
  261.     hum.HealthChanged:Connect(function(health)
  262.         Details.Text = "[ " .. math.floor(health)  .. " | " .. math.floor(hum.MaxHealth) .. " ]"
  263.         if hpFrame.AbsoluteSize.X <= 58 then
  264.             Details.Position = UDim2.new(0, math.abs(58 - hpFrame.AbsoluteSize.X)/2, 0, 0)
  265.         else
  266.             Details.Position = UDim2.new(0, 0, 0, 0)
  267.         end
  268.         if health == 0 and hpNotZero == true then
  269.             hpNotZero = false
  270.             spawn(function()
  271.                 for i = 1,16 do
  272.                     wait(0.25)
  273.                     Details.Position = UDim2.new(0, 30, 0, 0)
  274.                     Details.TextSize = Details.TextSize - 1
  275.                 end
  276.             end)
  277.         end
  278.     end)
  279.     mana.Changed:Connect(function(manaVal)
  280.         manaDetails.Text = math.floor(manaVal)
  281.     end)
  282. end
  283. createHPDisplay()
  284.  
  285. ----- Spell Information -----
  286. local spellList = {
  287.     ["Armis"] = {{35,60,75,85}, 10, false},
  288.     ["Celeritas"] = {{70,90}, 3, false},
  289.     ["Gate"] = {{70,80,80,85}, 1, false},
  290.     ["Gelidus"] = {{80,100,95,100}, 3, false},
  291.     ["Ignis"] = {{80,100,50,60}, 10, false},
  292.     ["Nocere"] = {{65,80,55,85}, 7, false},
  293.     ["Sagitta Sol"] = {{40,65,30,40}, 3, false},
  294.     ["Shrieker"] = {{25,60}},
  295.     ["Snarvindur"] = {{70,80,10,35}, 5, false},
  296.     ["Telorum"] = {{75,90,60,75}, 4.5, false},
  297.     ["Tenebris"] = {{90,100,40,60}},
  298.     ["Trickstus"] = {{30,70,15,40}, 3, false},
  299.     ["Velo"] = {{60,90,50,60}, 1, false},
  300.     ["Viribus"] = {{15,30,60,75}, 3, false},
  301.     ["Contrarium"] = {{70,90,60,90}, 10, false},
  302.     ["Fimbulvetr"] = {{85,95}},
  303.     ["Hoppa"] = {{30,60,45,60}, 5, false},
  304.     ["Manus Dei"] = {{85,95,45,55}},
  305.     ["Percutiens"] = {{60,70,70,80}, 4, false},
  306.     ["Sraunus"] = {{10,30}},
  307.     ["Gourdus"] = {{90,100}},
  308.     ["Hystericus"] = {{70,90,10,35}, 3, false},
  309.     ["Nosferatus"] = {{90,100}},
  310.     ["Trahere"] = {{70,90}},
  311.     ["Pondus"] = {{70,90,10,50}},
  312.     ["Mori"] = {{97,100}},
  313.     ["Howler"] = {{60,80}},
  314.     ["Intermissium"] = {{60,100}},
  315.     ["Ligans"] = {{50,70}},
  316.     ["Reditus"] = {{40,100}},
  317.     ["Custos"] = {{50,70}},
  318.     ["Globus"] = {{50,100}},
  319.     ["Dominus"] = {{50,90}},
  320.     ["Claritum"] = {{95,100}},
  321.     ["Verdien"] = {{70,100}, 3, false},
  322.     ["Fons Vitae"] = {{70,100}, 6.5, false},
  323.     ["Floresco"] = {{90,100}, 3, false},
  324.     ["Perflora"] = {{70,80}}
  325. }
  326.  
  327. local specialSpells = {
  328.     ["Floresco"] = {5, false},
  329. }
  330.  
  331. ----- Spell Identifier -----
  332. local classIdentify = {
  333.     ["DRUID"] = {"Perflora", "Floresco", "WiseCasting", "FastSigns"},
  334.     ["WHPSRR"] = {"Elegant Slash", "Needle's Eye", "RapierTraining", "Acrobat"},
  335.     ["D-SIGL"] = {"Dark Eruption", "Dark Flame Burst", "PlateTraining", "MercenaryCarry"},
  336.     ["SHNOBI"] = {"Grapple", "Resurrection", "FeatherFall", "UpgradedAgility"},
  337.     ["FACLES"] = {"Ethereal Strike", "Shadow Fan", "Chain Lethality", "UpgradedBane"},
  338.     ["M-NCRO"] = {"Secare", "Furantur", "WiseCasting", "FastSigns"},
  339.     ["DEEP-K"] = {"Chain Pull", "Leviathan Plunge", "FighterFootwork", "PrinceBlessing"},
  340.     ["ABYS-W"] = {"Abyssal Scream", "Wrathful Leap", "Abysswalker", "MercenaryCarry"},
  341.     ["ONI"] = {"Axe Kick", "Demon Step", "Misogi", "TrainedCombat"},
  342.     ["LPRDST"] = {"Ruby Shard", "Sapphire Shard", "Sharpener", "Gemcutter"},
  343.     ["U-BARD"] = {"Sweet Soothing", "Joyous Dance", "MusiciansResolve", "BlastMeter"},
  344.     ["M-ILUS"] = {"Globus", "Dominus", "WiseCasting", "FastSigns"},
  345.     ["SIGL-C"] = {"Charged Blow", "Hyper Body", "ChargeMastery", "PlateTraining"},
  346.     ["DSAGE"] = {"Lightning Drop", "Lightning Elbow", "MonasteryShield", "ChiBlock"},
  347.     ["DSLAYR"] = {"Thunder Spear Crash", "Dragon Blood", "FighterFootwork", "Dragon Awakening"}
  348. }
  349.  
  350. ----- Artifacts -----
  351. local artifactList = {
  352.     ["PhilosophersStone"] = Color3.fromRGB(200,50,50),
  353.     ["HowlerFriend"] = Color3.fromRGB(212, 145, 35),
  354.     ["LannisAmulet"] = Color3.fromRGB(183, 0, 255),
  355.     ["Rift Gem"] = Color3.fromRGB(255,0,0),
  356.     ["NightStone"] = Color3.fromRGB(0,0,0),
  357.     ["Fairfrozen"] = Color3.fromRGB(50,50,255),
  358.     ["Spider Cloak"] = Color3.fromRGB(254, 247, 16),
  359.     ["ScroomKey"] = Color3.fromRGB(104, 104, 104),
  360. }
  361.  
  362. local cooldowns = {
  363.     ----- Dragon Slayer -----
  364.     ["Spear Crusher"] = {10, false},
  365.     ["Wing Soar"] = {15, false},
  366.     ["Thunder Spear Crash"] = {15, false},
  367.     ["Dragon Roar"] = {15, false},
  368.     ["Ensnaring Strikes"] = {21, false},
  369.     ["Heroic Volley"] = {11, false},
  370.     ["Justice Spears"] = {1, false},
  371.     ["Triple Strike"] = {15, false},
  372.     ["Serpent Strike"] = {15, false},
  373.    
  374.     ----- Abyss Walker -----
  375.     ["Great Cyclone"] = {10, false},
  376.     ["Void Slicer"] = {10, false},
  377.     ["Deflecting Spin"] = {17, false},
  378.     ["Spinning Soul"] = {30, false},
  379.     ["Wrathful Leap"] = {11, false},
  380.     ["Shoulder Bash"] = {15, false},
  381.     ["Abyssal Scream"] = {15, false},
  382.    
  383.     ----- Oni -----
  384.     ["Demon Flip"] = {10, false},
  385.     ["Rising Dragon"] = {10, false},
  386.     ["Augimas"] = {4, false},
  387.     ["Augimas 2"] = {6.5, false},
  388.     ["Rampage"] = {20, false},
  389.     ["Leg Breaker"] = {10, false},
  390.     ["Spin Kick"] = {10, false},
  391.     ["Axe Kick"] = {10, false},
  392.    
  393.     ----- Spy -----
  394.     ["Bomb Jump"] = {15, false},
  395.     ["Duelist Dash"] = {15, false},
  396.     ["Mana Grenade"] = {10, false},
  397.     ["Bullseye"] = {15, false},
  398.     ["Auto Reload"] = {20, false},
  399.     ["Needle's Eye"] = {10, false},
  400.     ["The Wraith"] = {2.5, false},
  401.     ["Elegant Slash"] = {10, false},
  402.    
  403.     ----- Blacksmith -----
  404.     ["Sapphire Shard"] = {15, false},
  405.     ["Ruby Shard"] = {15, false},
  406.     ["Opal Shard"] = {15, false},
  407.    
  408.     ----- Shinobi -----
  409.     ["Bane"] = {40, false},
  410.     ["Grapple"] = {4, false},
  411.     ["Rising Cloud"] = {4, false},
  412.     ["Cruel Wind"] = {4, false},
  413.     ["Owl Slash"] = {8, false},
  414.     ["Shadowrush"] = {8, false},
  415.    
  416.     ----- Deep Knight -----
  417.     ["Soul Siphon"] = {15, false},
  418.     ["Light Piercer"] = {8.5, false},
  419.     ["Tethering Lance"] = {1, false},
  420.     ["Deep Sacrifice"] = {15, false},
  421.     ["Void Spear"] = {10, false},
  422.     ["Leviathan Plunge"] = {80, false},
  423.     ["Impale"] = {15, false},
  424.     ["Chain Pull"] = {15, false},
  425.    
  426.     ----- Sigil -----
  427.     ["Action Surge"] = {22, false},
  428.     ["Pommel Strike"] = {15, false},
  429.     ["Disarming Strike"] = {30, false},
  430.     ["Hyper Body"] = {120, false},
  431.     ["Rod of Narsa"] = {5, false},
  432.     ["Chain of Fate"] = {15, false},
  433.     ["Parmarktini"] = {5, false},
  434.     ["Counter"] = {10, false},
  435.    
  436.     ----- Illusionist -----
  437.     ["Dominus"] = {20, false},
  438.     ["Custos"] = {25, false},
  439.     ["Compress"] = {8, false},
  440.     ["Duobe"] = {18, false},
  441.     ["Terra Rebus"] = {10, false},
  442.    
  443.     ----- Necromancer -----
  444.     ["Command Monsters"] = {2, false},
  445.    
  446.     ----- Druid -----
  447.     ["Mirgeti"] = {5, false},
  448.     ["Spindylus"] = {5, false},
  449.     ["Krusa"] = {10, false},
  450.    
  451.     ----- Faceless -----
  452.     ["Shadow Fan"] = {10, false},
  453.     ["Ethereal Strike"] = {15, false},
  454.     ["Dagger Throw"] = {10, false},
  455.     ["Lethality"] = {30, false},
  456.     ["Triple Dagger Throw"] = {10, false},
  457.     ["Falling Darkness"] = {25, false},
  458.     ["Flash of Darkness"] = {25, false},
  459.    
  460.     ----- Dragon Sage -----
  461.     ["Lightning Drop"] = {6, false},
  462.     ["Lightning Elbow"] = {10, false},
  463.     ["Monastic Stance"] = {30, false},
  464.     ["Seismic Toss"] = {10, false},
  465.     ["Lightning Smite"] = {15, false},
  466.     ["Thundering Leap"] = {15, false},
  467.    
  468.     ----- Dark Sigil -----
  469.     ["Dark Eruption"] = {15, false},
  470.     ["Hunt"] = {20, false},
  471.     ["Mirror"] = {10, false},
  472.     ["Soul Burst"] = {10, false},
  473.     ["Chase"] = {10, false},
  474.    
  475.     ----- Race Abilities -----
  476.     ["Flock"] = {20, false},
  477.     ["Shift"] = {2.5, false},
  478.     ["Trinket Shift"] = {1, false},
  479.     ["Exhaust"] = {30, false},
  480.     ["Swiftfoot"] = {45, false},
  481.     ["Fury"] = {300, false},
  482.    
  483.     ----- Special Moves -----
  484.     ["Subzero Strike"] = {15, false},
  485.     ["Pickpocket"] = {3, false},
  486.     ["Agility"] = {40, false},
  487.     ["Stealth"] = {25, false}
  488. }
  489. local cooldownTool = ""
  490.  
  491. ----- Chat Logger -----
  492. local cl = game:GetObjects("rbxassetid://5433987516")[1]
  493. local iln = game:GetObjects("rbxassetid://5422063768")[1]
  494.  
  495. cl.ScrollingFrame.UIGridLayout.CellPadding = UDim2.new(0,2,0,0)
  496. cl.Parent = game.CoreGui
  497. cl.Enabled = false
  498. iln.Parent = game.CoreGui
  499. iln.Enabled = false
  500. cl.ScrollingFrame.CanvasPosition = Vector2.new(0,99999)
  501. local chatCount = 1
  502. local chatList = {}
  503.  
  504. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  505.     local labelClone = cl.Label:Clone()
  506.     labelClone.Parent = cl.ScrollingFrame
  507.     labelClone.Text =  "[" .. game.Players.LocalPlayer.Name .. "]" .. " | [YOU]: " .. msg
  508.     labelClone.BackgroundTransparency = 0.9
  509.     labelClone.TextColor3 = Color3.fromRGB(255,255,255)
  510.     cl.ScrollingFrame.CanvasPosition = Vector2.new(0,99999)
  511.     labelClone.Name = chatCount
  512.     chatCount = chatCount + 1
  513.     table.insert(chatList, chatCount)
  514.     if chatCount > 57 then
  515.         local min = math.min(table.unpack(chatList))
  516.         table.remove(chatList,table.find(chatList, min))
  517.         cl.ScrollingFrame:FindFirstChild(tostring(min)):Destroy()
  518.     end
  519. end)
  520.  
  521. ----- Pre-Load Functions -----
  522. game.Players.PlayerAdded:Connect(function(newPlayer)
  523.     newPlayer.CharacterAdded:Connect(function(newChar)
  524.         repeat
  525.             wait()
  526.         until newChar:FindFirstChild("RightRuneArm") ~= nil and newChar:FindFirstChild("LeftRuneArm") ~= nil
  527.         wait(2)
  528.         playerLoop("Pre-Load")
  529.         playerLoop("Update Player ESP")
  530.     end)   
  531. end)
  532. ----- Pre-Load Functions -----
  533. local ng = game:GetObjects("rbxassetid://5371794057")[1]
  534. local ds = game:GetObjects("rbxassetid://5371796279")[1]
  535. local mg = game:GetObjects("rbxassetid://5378742254")[1]
  536. local bg = game:GetObjects("rbxassetid://5384318164")[1]
  537. local dg = game:GetObjects("rbxassetid://5398863815")[1]
  538. bg.ScrollingFrame.UIGridLayout.CellPadding = UDim2.new(0,2,0,6)
  539. bg.Parent = game.CoreGui
  540. bg.Enabled = false
  541.  
  542. ----- Common Functions -----
  543. function playerLoop(condition)
  544.     for i,v in pairs(game.Players:GetChildren()) do
  545.         if v.Name ~= game.Players.LocalPlayer.Name then
  546.             if condition == "Pre-Load" then
  547.                 if v.Character ~= nil then
  548.                     if v.Character:FindFirstChild("Head") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") == nil then
  549.                         local currentClass = ""
  550.                         for x,y in pairs(classIdentify) do
  551.                             if (v.Backpack:FindFirstChild(y[1]) ~= nil or v.Backpack:FindFirstChild(y[2]) ~= nil) and (v.Backpack:FindFirstChild(y[3]) ~= nil and v.Backpack:FindFirstChild(y[4]) ~= nil) then
  552.                                 currentClass = x
  553.                                 break
  554.                             else
  555.                                 currentClass = "N/A"
  556.                             end
  557.                         end
  558.                         if playerList[v.Name] == nil then
  559.                             v.Chatted:Connect(function(msg)
  560.                                 if playerList[v.Name] and playerList[v.Name][2] then
  561.                                     local labelClone = cl.Label:Clone()
  562.                                     labelClone.Parent = cl.ScrollingFrame
  563.                                     labelClone.Text = "[" .. v.Name .. "]" .. " | " .. "[" .. playerList[v.Name][1] .. "]: " .. msg
  564.                                     labelClone.BackgroundTransparency = 0.9
  565.                                     labelClone.TextColor3 = playerList[v.Name][2]
  566.                                     labelClone.Name = chatCount
  567.                                     chatCount = chatCount + 1
  568.                                     table.insert(chatList, chatCount)
  569.                                     if chatCount > 57 then
  570.                                         local min = math.min(table.unpack(chatList))
  571.                                         table.remove(chatList,table.find(chatList, min))
  572.                                         cl.ScrollingFrame:FindFirstChild(tostring(min)):Destroy()
  573.                                     end
  574.                                 end
  575.                             end)
  576.                         end
  577.                        
  578.                         for q,r in pairs(v.Character:GetChildren()) do
  579.                             if r.ClassName == "Model" and r.Name ~= "LeftRuneArm" and r.Name ~= "RightRuneArm" and r.Name ~= "Shadow Buddy" then
  580.                                 playerList[v.Name] = {r.Name, Color3.fromRGB(math.random(150,255), math.random(150,255), math.random(150,255))}
  581.                             end
  582.                         end
  583.                        
  584.                         local ngClone = ng:Clone()
  585.                         local dsClone = ds:Clone()
  586.                         local mgClone = mg:Clone()
  587.                         local dgClone = dg:Clone()
  588.                         local dmgLabel = dgClone.Damage
  589.                         local currentHealth = v.Character:WaitForChild("Humanoid").Health
  590.                         ngClone.Details.Font = Enum.Font.Fantasy
  591.                         ngClone.Details.TextColor3 = Color3.fromRGB(200,200,200)
  592.                         ngClone.Parent = v.Character:WaitForChild("Head")
  593.                         dsClone.Parent = v.Character:WaitForChild("Head")
  594.                         mgClone.Parent = v.Character:WaitForChild("Head")
  595.                         dgClone.Parent = v.Character:WaitForChild("Head")
  596.                        
  597.                         if guiSettings["Vitality Stats"] == true then
  598.                             print(1)
  599.                             playerLoop("Vitality Stats False")
  600.                             print(2)
  601.                         end
  602.                         if guiSettings["Player ESP"] == true then
  603.                             print(3)
  604.                             playerLoop("Player ESP False")
  605.                             print(4)
  606.                         end
  607.                         if guiSettings["Mana Display"] == true then
  608.                             print(5)
  609.                             playerLoop("Mana Display False")
  610.                             print(6)
  611.                         end
  612.                         local healthchangedConnection
  613.                         local stomachchangedConnection
  614.                         local toxicitychangedConnection
  615.                         local tempchangedConnection
  616.                         local manachangedConnection
  617.                         local function healthchanged(health)
  618.                             local maxHealth = v.Character.Humanoid.MaxHealth
  619.                             v.Character.Head:FindFirstChild("DisplayStats").HealthBackdrop.Healthbar.Size = UDim2.new((health/maxHealth),0,1,0)
  620.                             local tool = v.Character:FindFirstChildWhichIsA("BackpackItem")
  621.                            
  622.                            
  623.                             if tool and guiSettings["Seer - Intent"] == true then
  624.                                 v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]" .. " | " .. tool.Name
  625.                             else
  626.                                 v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]"
  627.                             end
  628.                             if health < currentHealth and guiSettings["Damage Indicator"] == true then
  629.                                 if game.Players.LocalPlayer.Character ~= nil then
  630.                                     if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil then
  631.                                         local dmgLabelClone = dmgLabel:Clone()
  632.                                         dmgLabelClone.TextSize = 16
  633.                                         dmgLabelClone.TextTransparency = 0
  634.                                         for i,v in pairs(dgClone:GetChildren()) do
  635.                                             if v.Name == "NewLabel" then
  636.                                                 v:Destroy()
  637.                                             end
  638.                                         end
  639.                                         dmgLabelClone.Name = "NewLabel"
  640.                                         dmgLabelClone.Parent = dgClone
  641.                                         if math.floor(currentHealth-health) == 0 then
  642.                                             dmgLabelClone.Text = "-1"
  643.                                         else
  644.                                             dmgLabelClone.Text = "-" .. math.floor(currentHealth-health)
  645.                                         end
  646.                                         dmgLabelClone.TextColor3 = Color3.fromRGB(math.random(150,255), math.random(150,255), math.random(150,255))
  647.                                         local num = math.random(0,1)
  648.                                         if num == 0 then
  649.                                             dmgLabelClone.Rotation = 15
  650.                                             dgClone.SizeOffset = Vector2.new((0.3/math.random(10)),dgClone.SizeOffset.Y)
  651.                                         elseif num == 1 then
  652.                                             dmgLabelClone.Rotation = -15
  653.                                             dgClone.SizeOffset = Vector2.new(-(0.3/math.random(10)),dgClone.SizeOffset.Y)
  654.                                         end
  655.                                        
  656.                                         local num = math.random(0,1)
  657.                                         if num == 0 then
  658.                                             dgClone.SizeOffset = Vector2.new(dgClone.SizeOffset.X,(1/math.random(100)))
  659.                                         elseif num == 1 then
  660.                                             dgClone.SizeOffset = Vector2.new(dgClone.SizeOffset.X,-(1/math.random(100)))
  661.                                         end
  662.                                         spawn(function()
  663.                                             wait(1.15)
  664.                                             for i = 1,10 do
  665.                                                 if dmgLabelClone ~= nil then
  666.                                                     dmgLabelClone.TextTransparency = dmgLabelClone.TextTransparency + 0.1
  667.                                                 end
  668.                                                 wait(0.05)
  669.                                             end
  670.                                             if dmgLabelClone ~= nil then
  671.                                                 dmgLabelClone:Destroy()
  672.                                             end
  673.                                         end)
  674.                                     end
  675.                                 end
  676.                             end
  677.                             currentHealth = health
  678.                             if health <= 0 then
  679.                                 healthchangedConnection:Disconnect()
  680.                                 stomachchangedConnection:Disconnect()
  681.                                 toxicitychangedConnection:Disconnect()
  682.                                 tempchangedConnection:Disconnect()
  683.                                 manachangedConnection:Disconnect()
  684.                             end
  685.                         end
  686.                         healthchangedConnection = v.Character.Humanoid.HealthChanged:Connect(healthchanged)
  687.  
  688.                         local function stomachchanged(newVal)
  689.                             local maxHealth = v.Character.Humanoid.MaxHealth
  690.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.FoodBackdrop.Foodbar.Size = UDim2.new((v.Character.Stomach.Value/maxHealth),0,1,0)
  691.                         end
  692.                         stomachchangedConnection = v.Character.Stomach.Changed:Connect(stomachchanged)
  693.                        
  694.                         local function toxicitychanged(newVal)
  695.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.Toxicity.Toxbar.Size = UDim2.new((v.Character.Toxicity.Value/v.Character.Toxicity.MaxValue),0,1,0)
  696.                         end
  697.                         toxicitychangedConnection = v.Character.Toxicity.Changed:Connect(toxicitychanged)
  698.                        
  699.                         local function tempchanged(newVal)
  700.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Hot.Size = UDim2.new((0.5+(v.Character.Temperature.Value/2)),0,1,0)
  701.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Cold.Size = UDim2.new((0.5+(v.Character.Temperature.Value/-2)),0,1,0)
  702.                         end
  703.                         tempchangedConnection = v.Character.Temperature.Changed:Connect(tempchanged)
  704.                        
  705.                         local function manachanged(newVal)
  706.                             v.Character.Head:FindFirstChild("ManaGUI").ManaBackdrop.Manabar.Size = UDim2.new(1,0,(v.Character:WaitForChild("Mana").Value/100),0)
  707.                         end
  708.                         manachangedConnection = v.Character.Mana.Changed:Connect(manachanged)
  709.                         function leaderboardColor(color, targetName)
  710.                             for x,y in pairs(game.Players.LocalPlayer.PlayerGui.LeaderboardGui.MainFrame.ScrollingFrame:GetChildren()) do
  711.                                 if string.lower(y.Text) == string.lower(playerList[targetName][1]) then
  712.                                     y.TextColor3 = color
  713.                                     if color == Color3.fromRGB(0,0,0) then
  714.                                         y.TextStrokeColor3 = Color3.fromRGB(255,255,255)
  715.                                     end
  716.                                 end
  717.                             end
  718.                         end
  719.                         for x,y in pairs(v.Backpack:GetChildren()) do
  720.                             if y.Name == "Observe" then
  721.                                 leaderboardColor(Color3.fromRGB(150,150,255), v.Name)
  722.                             end
  723.                         end
  724.                        
  725.                         for x,y in pairs(artifactList) do
  726.                             if v.Character:WaitForChild("Artifacts"):FindFirstChild(x) then
  727.                                 leaderboardColor(y, v.Name)
  728.                             end
  729.                         end
  730.                        
  731.                         if v.Character:FindFirstChild("ScroomHead") then
  732.                             if v.Character:FindFirstChild("ScroomHead"):FindFirstChild("MetalScroom") then
  733.                                 leaderboardColor(artifactList["ScroomKey"], v.Name)
  734.                             end
  735.                         end
  736.                        
  737.                         v.Character.ChildAdded:Connect(function(child)
  738.                             if child.ClassName == "Tool" then
  739.                                 local maxHealth = v.Character.Humanoid.MaxHealth
  740.                                 local health = v.Character.Humanoid.MaxHealth
  741.                                 if guiSettings["Seer - Intent"] == true then
  742.                                     v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]" .. " | " .. child.Name
  743.                                 end
  744.                                
  745.                                 if child.Name == "Observe" then
  746.                                     leaderboardColor(Color3.fromRGB(150,150,255), v.Name)
  747.                                     spawn(function()
  748.                                         local f = iln.Frame:Clone()
  749.                                         f.Parent = iln
  750.                                         f.Label.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\nIs Observing!"
  751.                                         f:TweenPosition(
  752.                                             UDim2.new(1,-515,1,-100),
  753.                                             Enum.EasingDirection.Out,
  754.                                             Enum.EasingStyle.Sine,
  755.                                             0.6,
  756.                                             true
  757.                                         )
  758.                                         wait(0.6)
  759.                                         wait(2)
  760.                                         f:TweenPosition(
  761.                                             UDim2.new(1,-515,1,3),
  762.                                             Enum.EasingDirection.In,
  763.                                             Enum.EasingStyle.Sine,
  764.                                             0.6,
  765.                                             true
  766.                                         )
  767.                                         wait(0.6)
  768.                                         f:Destroy()
  769.                                     end)                       
  770.                                 end
  771.                             end
  772.                         end)
  773.                     end
  774.                 end
  775.             elseif condition == "Vitality Stats False" then
  776.                 if v.Character ~= nil then
  777.                     if v.Character:FindFirstChild("Head") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("DisplayStats") ~= nil then
  778.                         if v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Visible == false then
  779.                             local maxHealth = v.Character.Humanoid.MaxHealth
  780.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Visible = true
  781.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.FoodBackdrop.Visible = true
  782.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.Toxicity.Visible = true
  783.                             v.Character.Head:FindFirstChild("DisplayStats").HealthBackdrop.Visible = true
  784.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.FoodBackdrop.Foodbar.Size = UDim2.new((v.Character.Stomach.Value/maxHealth),0,1,0)
  785.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.Toxicity.Toxbar.Size = UDim2.new((v.Character.Toxicity.Value/v.Character.Toxicity.MaxValue),0,1,0)
  786.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Hot.Size = UDim2.new((0.5+(v.Character.Temperature.Value/2)),0,1,0)
  787.                             v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Cold.Size = UDim2.new((0.5+(v.Character.Temperature.Value/-2)),0,1,0)
  788.                         end
  789.                     end
  790.                 end
  791.             elseif condition == "Vitality Stats True" then
  792.                 if v.Character ~= nil then
  793.                     if v.Character:FindFirstChild("Head") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("DisplayStats") ~= nil then
  794.                         v.Character.Head:FindFirstChild("DisplayStats").OtherStats.TempBackdrop.Visible = false
  795.                         v.Character.Head:FindFirstChild("DisplayStats").OtherStats.FoodBackdrop.Visible = false
  796.                         v.Character.Head:FindFirstChild("DisplayStats").OtherStats.Toxicity.Visible = false
  797.                         v.Character.Head:FindFirstChild("DisplayStats").HealthBackdrop.Visible = false
  798.                     end
  799.                 end
  800.             elseif condition == "Player ESP False" then
  801.                 if v.Character ~= nil then
  802.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") ~= nil then
  803.                         local health = v.Character.Humanoid.Health
  804.                         local maxHealth = v.Character.Humanoid.MaxHealth
  805.                         local tool = v.Character:FindFirstChildWhichIsA("BackpackItem")
  806.                        
  807.                         spawn(function()
  808.                             repeat
  809.                                 wait()
  810.                             until v.Character:FindFirstChild(playerList[v.Name][1]):FindFirstChild("FakeHumanoid")
  811.                             v.Character:WaitForChild(playerList[v.Name][1]):WaitForChild("FakeHumanoid").DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  812.                         end)
  813.                        
  814.                         local currentClass = ""
  815.                         for x,y in pairs(classIdentify) do
  816.                             if (v.Backpack:FindFirstChild(y[1]) ~= nil or v.Backpack:FindFirstChild(y[2]) ~= nil) and (v.Backpack:FindFirstChild(y[3]) ~= nil and v.Backpack:FindFirstChild(y[4]) ~= nil) then
  817.                                 currentClass = x
  818.                                 break
  819.                             else
  820.                                 currentClass = "N/A"
  821.                             end
  822.                         end
  823.                        
  824.                         if tool and guiSettings["Seer - Intent"] == true then
  825.                             v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]" .. " | " .. tool.Name
  826.                         else
  827.                             v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]"
  828.                         end                
  829.                        
  830.                         v.Character.Head:FindFirstChild("NameGui").Details.Visible = true
  831.                     end
  832.                 end
  833.             elseif condition == "Player ESP True" then
  834.                 if v.Character ~= nil then
  835.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") ~= nil then
  836.                         v.Character.Head:FindFirstChild("NameGui").Details.Visible = false
  837.                         spawn(function()
  838.                             repeat
  839.                                 wait()
  840.                             until v.Character:FindFirstChild(playerList[v.Name][1]):FindFirstChild("FakeHumanoid")
  841.                             v.Character:WaitForChild(playerList[v.Name][1]):WaitForChild("FakeHumanoid").DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
  842.                         end)
  843.                     end
  844.                 end
  845.             elseif condition == "Update Player ESP" then
  846.                 if v.Character ~= nil then
  847.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") then
  848.                         if v.Character.Head:FindFirstChild("NameGui"):FindFirstChild("Details").Visible == false then
  849.                             local health = v.Character.Humanoid.Health
  850.                             local maxHealth = v.Character.Humanoid.MaxHealth
  851.                            
  852.                             for q,r in pairs(v.Character:GetChildren()) do
  853.                                 if r.ClassName == "Model" and r.Name ~= "LeftRuneArm" and r.Name ~= "RightRuneArm" and r.Name ~= "Shadow Buddy" then
  854.                                     playerList[v.Name] = {r.Name, Color3.fromRGB(math.random(150,255), math.random(150,255), math.random(150,255))}
  855.                                 end
  856.                             end
  857.                            
  858.                             local currentClass = ""
  859.                             for x,y in pairs(classIdentify) do
  860.                             if (v.Backpack:FindFirstChild(y[1]) ~= nil or v.Backpack:FindFirstChild(y[2]) ~= nil) and (v.Backpack:FindFirstChild(y[3]) ~= nil and v.Backpack:FindFirstChild(y[4]) ~= nil) then
  861.                                 currentClass = x
  862.                                 break
  863.                             else
  864.                                 currentClass = "N/A"
  865.                             end
  866.                         end
  867.                            
  868.                             if guiSettings["Player ESP"] == true then
  869.                                 v.Character.Head:FindFirstChild("DisplayStats").HealthBackdrop.Visible = true
  870.                                 v.Character.Head:FindFirstChild("NameGui").Details.Visible = true
  871.                             end
  872.                             v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]"
  873.                         end
  874.                     end
  875.                 end
  876.             elseif condition == "Mana Display False" then
  877.                 if v.Character ~= nil then
  878.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("ManaGUI") ~= nil then
  879.                         v.Character.Head:FindFirstChild("ManaGUI").ManaBackdrop.Visible = true
  880.                         v.Character.Head:FindFirstChild("ManaGUI").ManaBackdrop.Manabar.Size = UDim2.new(1,0,(v.Character:WaitForChild("Mana").Value/100),0)
  881.                     end
  882.                 end
  883.             elseif condition == "Mana Display True" then
  884.                 if v.Character ~= nil then
  885.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("ManaGUI") ~= nil then
  886.                         v.Character.Head:FindFirstChild("ManaGUI").ManaBackdrop.Visible = false
  887.                     end
  888.                 end
  889.             elseif condition == "Seer - Intent False" then
  890.                 if v.Character ~= nil then
  891.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") ~= nil then
  892.                         local health = v.Character.Humanoid.Health
  893.                         local maxHealth = v.Character.Humanoid.MaxHealth
  894.                         local tool = v.Character:FindFirstChildWhichIsA("BackpackItem")
  895.                        
  896.                         local currentClass = ""
  897.                         for x,y in pairs(classIdentify) do
  898.                             if (v.Backpack:FindFirstChild(y[1]) ~= nil or v.Backpack:FindFirstChild(y[2]) ~= nil) and (v.Backpack:FindFirstChild(y[3]) ~= nil and v.Backpack:FindFirstChild(y[4]) ~= nil) then
  899.                                 currentClass = x
  900.                                 break
  901.                             else
  902.                                 currentClass = "N/A"
  903.                             end
  904.                         end
  905.                        
  906.                         if tool then
  907.                             v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]" .. " | " .. tool.Name
  908.                         else
  909.                             v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]"
  910.                         end
  911.                     end
  912.                 end
  913.             elseif condition == "Seer - Intent True" then
  914.                 if v.Character ~= nil then
  915.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("NameGui") ~= nil then
  916.                         local health = v.Character.Humanoid.Health
  917.                         local maxHealth = v.Character.Humanoid.MaxHealth
  918.                        
  919.                         local currentClass = ""
  920.                         for x,y in pairs(classIdentify) do
  921.                             if (v.Backpack:FindFirstChild(y[1]) ~= nil or v.Backpack:FindFirstChild(y[2]) ~= nil) and (v.Backpack:FindFirstChild(y[3]) ~= nil and v.Backpack:FindFirstChild(y[4]) ~= nil) then
  922.                                 currentClass = x
  923.                                 break
  924.                             else
  925.                                 currentClass = "N/A"
  926.                             end
  927.                         end
  928.                        
  929.                         v.Character.Head:FindFirstChild("NameGui").Details.Text = v.Name .. " | " .. playerList[v.Name][1] .. "\n" .. " [" .. currentClass .. "]" .. " [" .. math.floor(health) .. "|" ..  math.floor(maxHealth) .. "]"
  930.                     end
  931.                 end
  932.             elseif condition == "Damage Indicator False" then
  933.                 if v.Character ~= nil then
  934.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("DamageGui") ~= nil then
  935.                         v.Character.Head:FindFirstChild("DamageGui").Enabled = true
  936.                     end
  937.                 end
  938.             elseif condition == "Damage Indicator True" then
  939.                 if v.Character ~= nil then
  940.                     if v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("Head"):FindFirstChild("DamageGui") ~= nil then
  941.                         v.Character.Head:FindFirstChild("DamageGui").Enabled = false
  942.                     end
  943.                 end
  944.                
  945.             elseif condition == "Illusionist Notifier True" then
  946.                 if v.Character ~= nil then
  947.                     --------------------------------------------------- set leaderboard to blue color for illusionists
  948.                 end
  949.             end
  950.         end
  951.     end
  952. end
  953. playerLoop("Pre-Load")
  954.  
  955.  
  956. spawn(function()
  957.     while true do
  958.         wait(5)
  959.         playerLoop("Pre-Load")
  960.         playerLoop("Update Player ESP")
  961.     end
  962. end)
  963.  
  964. for i,v in pairs(lgui:GetChildren()) do
  965.     v.MouseButton1Click:Connect(function()
  966.         if humanoid ~= nil and humanoid.Health > 0 then
  967.             ----- Clear Ambient -----
  968.             if v.Name == "Clear Ambient" then
  969.                 if guiSettings["Clear Ambient"] == false then
  970.                     game.Lighting.Ambient = ambientColor
  971.                     spawn(function()
  972.                         wait(1)
  973.                         while guiSettings["Clear Ambient"] == true do
  974.                             wait(1)
  975.                             game.Lighting.Ambient = ambientColor
  976.                             game.Players.LocalPlayer.CameraMaxZoomDistance = 50000000
  977.                             game.Players.LocalPlayer.CameraMinZoomDistance = 0
  978.                             game.Lighting.FogEnd = 1000000
  979.                         end
  980.                     end)
  981.                 else
  982.                     game.Lighting.Ambient = Color3.fromRGB(20,20,20)
  983.                     spawn(function()
  984.                         wait(1)
  985.                         while guiSettings["Clear Ambient"] == false do
  986.                             wait(1)
  987.                             game.Lighting.Ambient = Color3.fromRGB(20,20,20)
  988.                             game.Players.LocalPlayer.CameraMaxZoomDistance = 50
  989.                             game.Players.LocalPlayer.CameraMinZoomDistance = 0
  990.                             game.Lighting.FogEnd = 1000000
  991.                         end
  992.                     end)
  993.                 end
  994.                
  995.             ----- Chat / Illus -----
  996.             elseif v.Name == "Chat / illusionist" then
  997.                 if guiSettings["Chat / illusionist"] == false then
  998.                     cl.Enabled = true
  999.                     iln.Enabled = true
  1000.                    
  1001.                 elseif guiSettings["Chat / illusionist"] == true then
  1002.                     cl.Enabled = false
  1003.                     iln.Enabled = false
  1004.                    
  1005.                 end
  1006.                
  1007.             ----- Player Spectate -----
  1008.             elseif v.Name == "Damage Indicator" then
  1009.                 if guiSettings["Damage Indicator"] == false then
  1010.                     playerLoop("Damage Indicator False")
  1011.                 elseif guiSettings["Damage Indicator"] == true then
  1012.                     playerLoop("Damage Indicator False")
  1013.                 end
  1014.                
  1015.             ----- Cooldowns Indicator -----
  1016.             elseif v.Name == "Cooldowns Indicator" then
  1017.                 local backpack = game.Players.LocalPlayer.PlayerGui:WaitForChild("BackpackGui"):WaitForChild("MainFrame")
  1018.                 local storagepack = game.Players.LocalPlayer.PlayerGui:WaitForChild("BackpackGui"):WaitForChild("BackpackFrame"):WaitForChild("ScrollingFrame")
  1019.                 local currentSpell = ""
  1020.                 local buttondownConnection
  1021.                 local buttondowntwoConnection
  1022.                 local checkspellConnection
  1023.                 if guiSettings["Cooldowns Indicator"] == false then
  1024.                     for i,v in pairs(backpack:GetChildren()) do
  1025.                         if v:FindFirstChild("SpellFrame") then
  1026.                             v:FindFirstChild("SpellFrame").Visible = true
  1027.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(80, 80, 255)
  1028.                         elseif v:FindFirstChild("MeleeFrame") then
  1029.                             v:FindFirstChild("MeleeFrame").Visible = true
  1030.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(255, 80, 255)
  1031.                         end
  1032.                     end
  1033.                     for i,v in pairs(storagepack:GetChildren()) do
  1034.                         if v:FindFirstChild("SpellFrame") then
  1035.                             v:FindFirstChild("SpellFrame").Visible = true
  1036.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(80, 80, 255)
  1037.                         elseif v:FindFirstChild("MeleeFrame") then
  1038.                             v:FindFirstChild("MeleeFrame").Visible = true
  1039.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(255, 80, 255)
  1040.                         end
  1041.                     end
  1042.                     local function childaddedtwo(child)
  1043.                         if child.ClassName == "Tool" and (cooldowns[child.Name] ~= nil or spellList[child.Name] ~= nil) and cooldownTool == "" then
  1044.                             cooldownTool = child.Name
  1045.                             local char = game.Players.LocalPlayer.Character
  1046.                             local function createFrame(color, isSpell, isSpecial)
  1047.                                 if char:FindFirstChild("Head").Transparency ~= 1 or child.Name == "Agility" or child.Name == "Bane" or child.Name == "Ethereal Strike" then
  1048.                                     if char:FindFirstChild("SpellBlocking") == nil or isSpell then
  1049.                                         if char:FindFirstChild("Blocking") == nil and char:FindFirstChild("Climbing") == nil and char:FindFirstChild("Stun") == nil
  1050.                                         and char:FindFirstChild("NoDash") == nil and char:FindFirstChild("NoDam") == nil and char:FindFirstChild("Head"):FindFirstChild("Bone") == nil
  1051.                                         and char:FindFirstChild("BeingExecuted") == nil and game.Workspace.Live:FindFirstChild(char.Name) ~= nil then
  1052.                                             if not isSpell and not isSpecial then
  1053.                                                 cooldowns[child.Name][2] = true
  1054.                                             end
  1055.                                             local frame = Instance.new("Frame")
  1056.                                             local desiredTool
  1057.                                             local localCS = currentSpell
  1058.                                             if isSpecial then
  1059.                                                 frame.Name = "SpecialFrame"
  1060.                                             end
  1061.                                             spawn(function()
  1062.                                                 backpack = game.Players.LocalPlayer.PlayerGui:WaitForChild("BackpackGui"):WaitForChild("MainFrame")
  1063.                                                 storagepack = game.Players.LocalPlayer.PlayerGui:WaitForChild("BackpackGui"):WaitForChild("BackpackFrame"):WaitForChild("ScrollingFrame")
  1064.                                                 for q,r in pairs(backpack:GetChildren()) do
  1065.                                                     if r.ClassName == "TextButton" then
  1066.                                                         if not isSpell then
  1067.                                                             if r.Text == child.Name then
  1068.                                                                 desiredTool = r
  1069.                                                                 break
  1070.                                                             end
  1071.                                                         else
  1072.                                                             if r.Text == localCS then
  1073.                                                                 desiredTool = r
  1074.                                                                 break
  1075.                                                             end
  1076.                                                         end
  1077.                                                     end
  1078.                                                 end
  1079.                                                 if desiredTool == nil then
  1080.                                                     for q,r in pairs(storagepack:GetChildren()) do
  1081.                                                         if r.ClassName == "TextButton" then
  1082.                                                             if not isSpell then
  1083.                                                                 if r.Text == child.Name then
  1084.                                                                     desiredTool = r
  1085.                                                                     break
  1086.                                                                 end
  1087.                                                             else
  1088.                                                                 if r.Text == localCS then
  1089.                                                                     desiredTool = r
  1090.                                                                     break
  1091.                                                                 end
  1092.                                                             end
  1093.                                                         end
  1094.                                                     end
  1095.                                                 end
  1096.                                                 if desiredTool ~= nil or isSpell then
  1097.                                                     frame.BorderSizePixel = 0
  1098.                                                     if isSpell then
  1099.                                                         frame.Name = "SpellFrame"
  1100.                                                     else
  1101.                                                         frame.Name = "MeleeFrame"
  1102.                                                     end
  1103.                                                     frame.AnchorPoint = Vector2.new(0,1)
  1104.                                                     frame.Position = UDim2.new(0,0,1,0)
  1105.                                                     frame.Size = UDim2.new(1,0,1,0)
  1106.                                                     frame.BackgroundTransparency = 0.7
  1107.                                                     frame.ZIndex = 1
  1108.                                                     frame.BackgroundColor3 = color
  1109.                                                     frame.Parent = desiredTool
  1110.                                                     for i = 1,100 do
  1111.                                                         frame.Size = UDim2.new(1,0,frame.Size.Y.Scale-0.01,0)
  1112.                                                         if color == Color3.fromRGB(255, 80, 80) then
  1113.                                                             if child.Name == "Bane" and game.Players.LocalPlayer.Backpack:FindFirstChild("UpgradedBane") then
  1114.                                                                 wait((cooldowns[child.Name][1]+5)/100)
  1115.                                                             elseif child.Name == "Bane" and game.Players.LocalPlayer.Backpack:FindFirstChild("UpgradedBane") == nil then
  1116.                                                                 wait((cooldowns[child.Name][1]-5)/100)
  1117.                                                             else
  1118.                                                                 wait((cooldowns[child.Name][1])/100)
  1119.                                                             end
  1120.                                                         elseif color == Color3.fromRGB(80, 80, 255) then
  1121.                                                             if spellList[localCS][2] ~= nil then
  1122.                                                                 wait(spellList[localCS][2]/100)
  1123.                                                             end
  1124.                                                         elseif color == Color3.fromRGB(80, 255, 80) then
  1125.                                                             wait(specialSpells[localCS][1]/100)
  1126.                                                         end
  1127.                                                         if frame.Parent:FindFirstChild("Overlay").ImageColor3 ~= color and not isSpecial and guiSettings["Cooldowns Indicator"] == true then
  1128.                                                             frame.Parent:FindFirstChild("Overlay").ImageColor3 = color
  1129.                                                         end
  1130.                                                     end
  1131.                                                     if frame.Parent:FindFirstChild("SpecialFrame") == nil then
  1132.                                                         frame.Parent:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(245, 197, 130)
  1133.                                                     else
  1134.                                                         frame.Parent:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(80, 255, 80)
  1135.                                                     end
  1136.                                                     if frame.Name == "SpecialFrame" then
  1137.                                                         frame.Parent:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(245, 197, 130)
  1138.                                                     end
  1139.                                                     frame:Destroy()
  1140.                                                 end
  1141.                                             end)
  1142.                                             spawn(function()
  1143.                                                 if color == Color3.fromRGB(255, 80, 80) then
  1144.                                                     if child.Name == "Bane" and game.Players.LocalPlayer.Backpack:FindFirstChild("UpgradedBane") then
  1145.                                                         wait(cooldowns[child.Name][1]+5)
  1146.                                                     elseif child.Name == "Bane" and game.Players.LocalPlayer.Backpack:FindFirstChild("UpgradedBane") == nil then
  1147.                                                         wait(cooldowns[child.Name][1]-5)
  1148.                                                     else
  1149.                                                         wait((cooldowns[child.Name][1]))
  1150.                                                     end
  1151.                                                     cooldowns[child.Name][2] = false
  1152.                                                 elseif color == Color3.fromRGB(80, 80, 255) then
  1153.                                                     if spellList[localCS][2] ~= nil then
  1154.                                                         wait(spellList[localCS][2])
  1155.                                                     end
  1156.                                                     for x,y in pairs(spellList) do
  1157.                                                         y[3] = false
  1158.                                                     end
  1159.                                                 elseif color == Color3.fromRGB(80,255,80) then
  1160.                                                     wait(specialSpells[localCS][1])
  1161.                                                     specialSpells[localCS][2] = false
  1162.                                                 end
  1163.                                             end)
  1164.                                         end
  1165.                                     end
  1166.                                 end
  1167.                             end
  1168.                            
  1169.                             local function buttondown()
  1170.                                 if guiSettings["Cooldowns Indicator"] == true then
  1171.                                     if cooldowns[child.Name][2] == false then
  1172.                                         createFrame(Color3.fromRGB(255, 80, 80), false, false)
  1173.                                     end
  1174.                                 end
  1175.                             end
  1176.                             buttondownConnection = game.Players.LocalPlayer:GetMouse().Button1Down:Connect(buttondown)
  1177.                            
  1178.                            
  1179.                             local function checkspell()
  1180.                                 if guiSettings["Cooldowns Indicator"] == true then
  1181.                                     if child:FindFirstChild("Spell") or child:FindFirstChild("GodSpell") or child:FindFirstChild("SkillSpell") then
  1182.                                         currentSpell = child.Name
  1183.                                     end
  1184.                                 end
  1185.                             end
  1186.                             checkspellConnection = game.Players.LocalPlayer:GetMouse().Button2Down:Connect(checkspell)
  1187.                            
  1188.                             local function buttondowntwo(animationTrack)
  1189.                                 if guiSettings["Cooldowns Indicator"] == true then
  1190.                                     if animationTrack.Animation.AnimationId == "rbxassetid://2960432568" or animationTrack.Animation.AnimationId == "rbxassetid://2818022247" then
  1191.                                         if spellList[currentSpell][3] ~= nil then
  1192.                                             spellList[currentSpell][3] = true
  1193.                                             for x,y in pairs(spellList) do
  1194.                                                 y[3] = true
  1195.                                             end
  1196.                                             spawn(function()
  1197.                                                 if specialSpells[currentSpell] ~= nil then
  1198.                                                     specialSpells[currentSpell][2] = true
  1199.                                                     createFrame(Color3.fromRGB(80, 255, 80), true, true)
  1200.                                                 end
  1201.                                             end)
  1202.                                             createFrame(Color3.fromRGB(80, 80, 255), true, false)
  1203.                                         end
  1204.                                     end
  1205.                                 end
  1206.                             end
  1207.                             buttondowntwoConnection = game.Players.LocalPlayer.Character.Humanoid.AnimationPlayed:Connect(buttondowntwo)
  1208.                         end
  1209.                     end
  1210.                     childaddedtwoConnection = game.Players.LocalPlayer.Character.ChildAdded:Connect(childaddedtwo)
  1211.  
  1212.                     local function childremovedtwo(child)
  1213.                         if child.Name == cooldownTool then
  1214.                             cooldownTool = ""
  1215.                             buttondownConnection:Disconnect()
  1216.                             buttondowntwoConnection:Disconnect()
  1217.                             checkspellConnection:Disconnect()
  1218.                         end
  1219.                     end
  1220.                     childremovedtwoConnection = game.Players.LocalPlayer.Character.ChildRemoved:Connect(childremovedtwo)
  1221.                    
  1222.                     game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  1223.                         if guiSettings["Cooldowns Indicator"] == true then
  1224.                             childaddedtwoConnection = game.Players.LocalPlayer.Character.ChildAdded:Connect(childaddedtwo)
  1225.                             childremovedtwoConnection = game.Players.LocalPlayer.Character.ChildRemoved:Connect(childremovedtwo)
  1226.                             for x,y in pairs(cooldowns) do
  1227.                                 y[2] = false
  1228.                             end
  1229.                             currentSpell = ""
  1230.                         end
  1231.                     end)
  1232.                 elseif guiSettings["Cooldowns Indicator"] == true then
  1233.                     cooldownTool = ""
  1234.                     for i,v in pairs(backpack:GetChildren()) do
  1235.                         if v:FindFirstChild("SpellFrame") then
  1236.                             v:FindFirstChild("SpellFrame").Visible = false
  1237.                         elseif v:FindFirstChild("MeleeFrame") then
  1238.                             v:FindFirstChild("MeleeFrame").Visible = false
  1239.                         end
  1240.                         if v:FindFirstChild("Overlay") then
  1241.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(245, 197, 130)
  1242.                         end
  1243.                     end
  1244.                     for i,v in pairs(storagepack:GetChildren()) do
  1245.                         if v:FindFirstChild("SpellFrame") then
  1246.                             v:FindFirstChild("SpellFrame").Visible = false
  1247.                         elseif v:FindFirstChild("MeleeFrame") then
  1248.                             v:FindFirstChild("MeleeFrame").Visible = false
  1249.                         end
  1250.                         if v:FindFirstChild("Overlay") then
  1251.                             v:FindFirstChild("Overlay").ImageColor3 = Color3.fromRGB(245, 197, 130)
  1252.                         end
  1253.                     end
  1254.                 end
  1255.             elseif v.Name == "GUI Settings" then
  1256.                 if guiSettings["GUI Settings"] == false then
  1257.                     midp.Transparency = 0
  1258.                     mgui.Parent.Enabled = true
  1259.                 elseif guiSettings["GUI Settings"] == true then
  1260.                     midp.Transparency = 1
  1261.                     mgui.Parent.Enabled = false
  1262.                 end
  1263.             end
  1264.             changeSettings(v)
  1265.         end
  1266.     end)
  1267. end
  1268.  
  1269.  
  1270. for i,v in pairs(rgui:GetChildren()) do
  1271.     v.MouseButton1Click:Connect(function()
  1272.         if humanoid ~= nil and humanoid.Health > 0 then
  1273.             ----- Vitality Stats -----
  1274.             if v.Name == "Vitality Stats" then
  1275.                 local hpDisplay = game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("Container"):WaitForChild("Health"):WaitForChild("Slider"):WaitForChild("HealthDisplay")
  1276.                 local manaDisplay = game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana"):WaitForChild("ManaDisplay")
  1277.                 if guiSettings["Vitality Stats"] == false then
  1278.                     hpDisplay.Visible = true
  1279.                     manaDisplay.Visible = true
  1280.                     playerLoop("Vitality Stats False")
  1281.                 else
  1282.                     hpDisplay.Visible = false
  1283.                     manaDisplay.Visible = false
  1284.                     playerLoop("Vitality Stats True")
  1285.                 end
  1286.                
  1287.             ----- Player ESP -----
  1288.             elseif v.Name == "Player ESP" then
  1289.                 if guiSettings["Player ESP"] == false then
  1290.                     playerLoop("Player ESP False")
  1291.                 else
  1292.                     playerLoop("Player ESP True")
  1293.                 end
  1294.                
  1295.             ----- Mana Display -----
  1296.             elseif v.Name == "Mana Display" then
  1297.                 if guiSettings["Mana Display"] == false then
  1298.                     playerLoop("Mana Display False")
  1299.                 else
  1300.                     playerLoop("Mana Display True")
  1301.                 end
  1302.                
  1303.             ----- Seer - Intent -----
  1304.             elseif v.Name == "Seer - Intent" then
  1305.                 if guiSettings["Seer - Intent"] == false then
  1306.                     playerLoop("Seer - Intent False")
  1307.                 else
  1308.                     playerLoop("Seer - Intent True")
  1309.                 end
  1310.                
  1311.             ----- Backpack Display -----
  1312.             elseif v.Name == "Backpack Display" then
  1313.                 if guiSettings["Backpack Display"] == false then
  1314.                     bg.Enabled = true
  1315.                 else
  1316.                     bg.Enabled = false
  1317.                     if guiSettings["Player Spectate"] == false and guiSettings["Backpack Display"] == true then
  1318.                     end
  1319.                 end
  1320.                
  1321.             ----- Spell Assist -----
  1322.             elseif v.Name == "Spell Assist" then
  1323.                 if game.Players.LocalPlayer.Character ~= nil then
  1324.                     if guiSettings["Spell Assist"] == false then
  1325.                         local tool = game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("BackpackItem")                         
  1326.                         if tool ~= nil then
  1327.                             if spellList[tool.Name] ~= nil then
  1328.                                 if spellList[tool.Name][1] then
  1329.                                     currentSpell = tool.Name
  1330.                                 end
  1331.                             end
  1332.                         end
  1333.                         local function childadded(child)
  1334.                             if child.ClassName == "Tool" and spellList[child.Name][1] then
  1335.                                 currentSpell = child.Name
  1336.                                 local spellFolder = game.Players.LocalPlayer.PlayerGui.StatGui.LeftContainer.Mana:WaitForChild("SpellAssistFolder")
  1337.                                 game.Players.LocalPlayer.PlayerGui.StatGui.LeftContainer.Mana.Overlay.ZIndex = 6
  1338.                                 local Frame = Instance.new("Frame")
  1339.                                 Frame.Parent = spellFolder
  1340.                                 Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1341.                                 Frame.BorderSizePixel = 0
  1342.                                 Frame.BackgroundTransparency = 0.5
  1343.                                 Frame.AnchorPoint = Vector2.new(0,1)
  1344.                                 Frame.Name = currentSpell
  1345.                                 Frame.Position = UDim2.new(0, 0, 1-math.abs(spellList[currentSpell][1][1]/100), 0)
  1346.                                 Frame.Size = UDim2.new(1, 0, math.abs(spellList[currentSpell][1][1]-spellList[currentSpell][1][2])/100, 0)
  1347.                                 Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  1348.                                 Frame.ZIndex = 4
  1349.                                 if spellList[child.Name][1][3] ~= nil then
  1350.                                     local Frame = Instance.new("Frame")
  1351.                                     Frame.Parent = spellFolder
  1352.                                     Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  1353.                                     Frame.BorderSizePixel = 0
  1354.                                     Frame.BackgroundTransparency = 0.5
  1355.                                     Frame.AnchorPoint = Vector2.new(0,1)
  1356.                                     Frame.Name = currentSpell
  1357.                                     Frame.Position = UDim2.new(0, 0, 1-math.abs(spellList[currentSpell][1][3]/100), 0)
  1358.                                     Frame.Size = UDim2.new(1, 0, math.abs(spellList[currentSpell][1][3]-spellList[currentSpell][1][4])/100, 0)
  1359.                                     Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  1360.                                     Frame.ZIndex = 4
  1361.                                 end
  1362.                             end
  1363.                         end
  1364.                         if childaddedConnection == nil then
  1365.                             childaddedConnection = game.Players.LocalPlayer.Character.ChildAdded:Connect(childadded)
  1366.                         end
  1367.                         local function childremoved(child)
  1368.                             if child.ClassName == "Tool" and child.Name == currentSpell and guiSettings["Spell Assist"] == true then
  1369.                                 local spellFolder = game.Players.LocalPlayer.PlayerGui.StatGui.LeftContainer.Mana:WaitForChild("SpellAssistFolder")
  1370.                                 for x,y in pairs(spellFolder:GetChildren()) do
  1371.                                     if y.Name == currentSpell then
  1372.                                         y:Destroy()
  1373.                                     end
  1374.                                 end
  1375.                                 currentSpell = ""
  1376.                             end
  1377.                         end
  1378.                         if childremovedConnection == nil then
  1379.                             childremovedConnection = game.Players.LocalPlayer.Character.ChildRemoved:Connect(childremoved)
  1380.                         end
  1381.                         if game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui") then
  1382.                             if game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana") then
  1383.                                 for x,y in pairs(game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana"):WaitForChild("SpellAssistFolder"):GetChildren()) do
  1384.                                     y.Visible = true
  1385.                                 end
  1386.                             end
  1387.                         end
  1388.                         game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  1389.                             if guiSettings["Spell Assist"] == true then
  1390.                                 childaddedConnection = game.Players.LocalPlayer.Character.ChildAdded:Connect(childadded)
  1391.                                 childremovedConnection = game.Players.LocalPlayer.Character.ChildRemoved:Connect(childremoved)
  1392.                             end
  1393.                         end)
  1394.                        
  1395.                     elseif guiSettings["Spell Assist"] == true then
  1396.                         local spellFolder = game.Players.LocalPlayer.PlayerGui.StatGui.LeftContainer.Mana:WaitForChild("SpellAssistFolder")
  1397.                         if childaddedConnection ~= nil then
  1398.                             childaddedConnection:Disconnect()
  1399.                             childaddedConnection = nil
  1400.                         end
  1401.                         if childremovedConnection ~= nil then
  1402.                             childremovedConnection:Disconnect()
  1403.                             childremovedConnection = nil
  1404.                         end
  1405.                         for x,y in pairs(spellFolder:GetChildren()) do
  1406.                             if y.Name == currentSpell then
  1407.                                 y:Destroy()
  1408.                             end
  1409.                         end
  1410.                         currentSpell = ""
  1411.                         if game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui") then
  1412.                             if game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana") then
  1413.                                 for x,y in pairs(game.Players.LocalPlayer.PlayerGui:WaitForChild("StatGui"):WaitForChild("LeftContainer"):WaitForChild("Mana"):WaitForChild("SpellAssistFolder"):GetChildren()) do
  1414.                                     y.Visible = false
  1415.                                 end
  1416.                             end
  1417.                         end
  1418.                     end
  1419.                 end
  1420.             end
  1421.             changeSettings(v)
  1422.         end
  1423.     end)
  1424. end
  1425.  
  1426. ----- GUI Settings -----
  1427. for i,v in pairs(mgui:GetChildren()) do
  1428.     if v.ClassName == "TextButton" then
  1429.         v.MouseButton1Click:Connect(function()
  1430.             if humanoid ~= nil and humanoid.Health > 0 then
  1431.                 if v.Name == "AdjustManaColor" then
  1432.                     if game.Players.LocalPlayer.PlayerGui:FindFirstChild("StatGui"):FindFirstChild("LeftContainer"):FindFirstChild("Mana"):FindFirstChild("Slider") ~= nil then
  1433.                         local s = game.Players.LocalPlayer.PlayerGui:FindFirstChild("StatGui"):FindFirstChild("LeftContainer"):FindFirstChild("Mana"):FindFirstChild("Slider")
  1434.                         local oL = game.Players.LocalPlayer.PlayerGui:FindFirstChild("StatGui"):FindFirstChild("LeftContainer"):FindFirstChild("Mana"):FindFirstChild("Overlay")
  1435.                         if type(math.floor(tonumber(manaAdjust.Red.Text))) == "number" and type(math.floor(tonumber(manaAdjust.Green.Text))) == "number" and type(math.floor(tonumber(manaAdjust.Blue.Text))) == "number" then
  1436.                             manaColor = Color3.fromRGB(math.floor(tonumber(manaAdjust.Red.Text)), math.floor(tonumber(manaAdjust.Green.Text)), math.floor(tonumber(manaAdjust.Blue.Text)))
  1437.                             oL.BackgroundColor3 = manaColor
  1438.                             s.BackgroundColor3 = manaColor
  1439.                         end
  1440.                     end
  1441.                 elseif v.Name == "AdjustUIColor" then
  1442.                     if type(math.floor(tonumber(colorAdjust.Red.Text))) == "number" and type(math.floor(tonumber(colorAdjust.Green.Text))) == "number" and type(math.floor(tonumber(colorAdjust.Blue.Text))) == "number" then
  1443.                         UIColor = Color3.fromRGB(math.floor(tonumber(colorAdjust.Red.Text)), math.floor(tonumber(colorAdjust.Green.Text)), math.floor(tonumber(colorAdjust.Blue.Text)))
  1444.                         for q,r in pairs(lgui:GetChildren()) do
  1445.                             if r.BackgroundColor3 ~= Color3.fromRGB(126, 255, 126) then
  1446.                                 r.BackgroundColor3 = UIColor
  1447.                             end
  1448.                         end
  1449.                         for q,r in pairs(rgui:GetChildren()) do
  1450.                             if r.BackgroundColor3 ~= Color3.fromRGB(126, 255, 126) then
  1451.                                 r.BackgroundColor3 = UIColor
  1452.                             end
  1453.                         end
  1454.                         for q,r in pairs(mgui:GetChildren()) do
  1455.                             if r.ClassName == "TextButton" then
  1456.                                 if r.BackgroundColor3 ~= Color3.fromRGB(126, 255, 126) then
  1457.                                     r.BackgroundColor3 = UIColor
  1458.                                 end
  1459.                             end
  1460.                         end
  1461.                     end
  1462.                 elseif v.Name == "AdjustAmbient" then
  1463.                     if type(math.floor(tonumber(ambientAdjust.Red.Text))) == "number" and type(math.floor(tonumber(ambientAdjust.Green.Text))) == "number" and type(math.floor(tonumber(ambientAdjust.Blue.Text))) == "number" then
  1464.                         ambientColor = Color3.fromRGB(math.floor(tonumber(ambientAdjust.Red.Text)), math.floor(tonumber(ambientAdjust.Green.Text)), math.floor(tonumber(ambientAdjust.Blue.Text)))
  1465.                     end
  1466.                 end
  1467.             end
  1468.         end)
  1469.     end
  1470. end
  1471.  
  1472. ----- Leaderboard Interaction -----
  1473. local selectedLabel
  1474. local selectedName
  1475. local previousSelected = ""
  1476. local dragging
  1477. local dragInput
  1478. local dragStart
  1479. local startPos
  1480. local dragging2
  1481. local dragInput2
  1482. local dragStart2
  1483. local startPos2
  1484. local draggableList = {
  1485.     bg.ScrollingFrame,
  1486.     cl.ScrollingFrame
  1487. }
  1488.  
  1489. ----- GUI Draggability -----
  1490. for i,v in pairs(draggableList) do
  1491.     local function update(input)
  1492.        
  1493.         if v == bg.ScrollingFrame then
  1494.             local delta = input.Position - dragStart
  1495.             v.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  1496.         elseif v == cl.ScrollingFrame then
  1497.             local delta = input.Position - dragStart2
  1498.             v.Position = UDim2.new(startPos2.X.Scale, startPos2.X.Offset + delta.X, startPos2.Y.Scale, startPos2.Y.Offset + delta.Y)
  1499.         end
  1500.     end
  1501.     v.InputBegan:Connect(function(input)
  1502.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  1503.             if v == bg.ScrollingFrame then
  1504.                 dragging = true
  1505.                 dragStart = input.Position
  1506.                 startPos = v.Position
  1507.             elseif v == cl.ScrollingFrame then
  1508.                 dragging2 = true
  1509.                 dragStart2 = input.Position
  1510.                 startPos2 = v.Position
  1511.             end
  1512.             input.Changed:Connect(function()
  1513.                 if input.UserInputState == Enum.UserInputState.End then
  1514.                     if v == bg.ScrollingFrame then
  1515.                         dragging = false
  1516.                     elseif v == cl.ScrollingFrame then
  1517.                         dragging2 = false
  1518.                     end
  1519.                 end
  1520.             end)
  1521.         end
  1522.     end)
  1523.     v.InputChanged:Connect(function(input)
  1524.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  1525.             if v == bg.ScrollingFrame then
  1526.                 dragInput = input
  1527.             elseif v == cl.ScrollingFrame then
  1528.                 dragInput2 = input
  1529.             end
  1530.         end
  1531.     end)
  1532.        
  1533.     UIS.InputChanged:Connect(function(input)
  1534.         if v == bg.ScrollingFrame then
  1535.             if input == dragInput and dragging then
  1536.                 update(input)
  1537.             end
  1538.         elseif v == cl.ScrollingFrame then
  1539.             if input == dragInput2 and dragging2 then
  1540.                 update(input)
  1541.             end
  1542.         end
  1543.     end)
  1544. end
  1545.  
  1546. ----- User Input -----
  1547. local held = false
  1548. UIS.InputBegan:connect(function(Input, proccessed)
  1549.     local KeyCode = Input.KeyCode
  1550.     local MouseInput = Input.UserInputType
  1551.     for i,v in pairs(game.Players.LocalPlayer.PlayerGui.LeaderboardGui.MainFrame.ScrollingFrame:GetChildren()) do
  1552.         if v ~= nil then
  1553.             v.MouseEnter:Connect(function()
  1554.                 selectedLabel = v
  1555.             end)
  1556.         end
  1557.     end
  1558.     if KeyCode == Enum.KeyCode.F1 and not proccessed then
  1559.         lgui.Parent.Enabled = not lgui.Parent.Enabled
  1560.         rgui.Parent.Enabled = not rgui.Parent.Enabled
  1561.         if rgui.Parent.Enabled == false then
  1562.             resetPanel()
  1563.             panelSetup(true)
  1564.             mgui.Parent.Enabled = false
  1565.         elseif rgui.Parent.Enabled == true and guiSettings["GUI Settings"] == true then
  1566.             mgui.Parent.Enabled = true
  1567.         end
  1568.         if rgui.Parent.Enabled == true then
  1569.             resetPanel()
  1570.             panelSetup(false)
  1571.         end
  1572.         for i,v in pairs(cp:GetChildren()) do
  1573.             if v.Transparency == 1 and v.Name ~= "MidPart" then
  1574.                 v.Transparency = 0
  1575.                 if v.Name == "MidPanel" and guiSettings["GUI Settings"] == true then
  1576.                     v.Transparency = 0
  1577.                 elseif v.Name == "MidPanel" and guiSettings["GUI Settings"] == false then
  1578.                     v.Transparency = 1
  1579.                 end
  1580.             elseif v.Transparency == 0 and v.Name ~= "MidPart" then
  1581.                 v.Transparency = 1
  1582.                 if v.Name == "MidPanel" and guiSettings["GUI Settings"] == true then
  1583.                     v.Transparency = 1
  1584.                 elseif v.Name == "MidPanel" and guiSettings["GUI Settings"] == false then
  1585.                     v.Transparency = 0
  1586.                 end
  1587.             end
  1588.         end
  1589.     elseif KeyCode == Enum.KeyCode.F6 and not proccessed then
  1590.         game:GetService('Players').LocalPlayer:Kick("Emergency Log")
  1591.     elseif MouseInput == Enum.UserInputType.MouseButton1 then
  1592.         if selectedLabel ~= nil and guiSettings["Backpack Display"] == true then
  1593.             local selectedName = ""
  1594.             if game.Workspace:FindFirstChild("BigHossFightSpawns") then
  1595.                 selectedName = selectedLabel.Text
  1596.             else
  1597.                 selectedName = string.sub(selectedLabel.Text,1,1) .. string.sub(selectedLabel.Text,5,#selectedLabel.Text)
  1598.             end
  1599.             bg.ScrollingFrame.CanvasPosition = Vector2.new(0,0)
  1600.             if game.Players:FindFirstChild(selectedName) ~= nil and game.Players:FindFirstChild(selectedName).Character ~= nil then
  1601.                 bg.ScrollingFrame.Title.Text = ""
  1602.                 if #bg.ScrollingFrame:GetChildren() > 2 then
  1603.                     for i,v in pairs(bg.ScrollingFrame:GetChildren()) do
  1604.                         if v.Name == "LabelClone" then
  1605.                             v:Destroy()
  1606.                         end
  1607.                     end
  1608.                 end
  1609.                 bg.ScrollingFrame.Title.Text = selectedName .. " 's Inventory:"
  1610.                 local inventoryDict = {}
  1611.                 local inventoryColor = {}
  1612.                 for i,v in pairs(game.Players:FindFirstChild(selectedName).Backpack:GetChildren()) do
  1613.                     if v.ClassName == "Tool" then
  1614.                         if inventoryDict[v.Name] ~= nil then
  1615.                             inventoryDict[v.Name] = inventoryDict[v.Name] + 1
  1616.                         else
  1617.                             inventoryDict[v.Name] = 1
  1618.                         end
  1619.                         if v:FindFirstChild("PrimaryWeapon") or v:FindFirstChild("RequiresWeapon") then
  1620.                             inventoryColor[v.Name] = Color3.fromRGB(255, 222, 34) -- Weapons / Attacks
  1621.                         elseif v:FindFirstChild("Spell") or v:FindFirstChild("GodSpell") or v:FindFirstChild("SkillSpell") then
  1622.                             inventoryColor[v.Name] = Color3.fromRGB(61, 223, 255) -- Weapons / Attacks
  1623.                         elseif v:FindFirstChild("isPotion") then
  1624.                             inventoryColor[v.Name] = Color3.fromRGB(255, 130, 130) -- Weapons / Attacks
  1625.                         elseif v:FindFirstChild("isIngredient") then
  1626.                             inventoryColor[v.Name] = Color3.fromRGB(130, 255, 130) -- Weapons / Attacks
  1627.                         end
  1628.                     end
  1629.                 end
  1630.                 for i,v in pairs(inventoryDict) do
  1631.                     local labelClone = bg.ScrollingFrame.Title:Clone()
  1632.                     if v == 1 then
  1633.                         labelClone.Text = i
  1634.                     else
  1635.                         labelClone.Text = i .. " x" .. v
  1636.                     end
  1637.                     labelClone.Name = "LabelClone"
  1638.                     labelClone.Parent = bg.ScrollingFrame
  1639.                     if inventoryColor[i] ~= nil then
  1640.                         labelClone.TextColor3 = inventoryColor[i]
  1641.                     end
  1642.                 end
  1643.             end
  1644.         end
  1645.         if selectedLabel ~= nil and guiSettings["Player Spectate"] == true then
  1646.             if previousSelected ~= selectedLabel.Text then
  1647.                 previousSelected = selectedLabel.Text
  1648.                 local selectedName = ""
  1649.                 if game.Workspace:FindFirstChild("BigHossFightSpawns") then
  1650.                     selectedName = selectedLabel.Text
  1651.                 else
  1652.                     selectedName = string.sub(selectedLabel.Text,1,1) .. string.sub(selectedLabel.Text,5,#selectedLabel.Text)
  1653.                 end
  1654.                 if game.Players:FindFirstChild(selectedName) ~= nil and game.Players:FindFirstChild(selectedName).Character ~= nil and game.Players:FindFirstChild(selectedName).Character.Humanoid ~= nil then
  1655.                     game.Workspace.CurrentCamera.CameraSubject = game.Players:FindFirstChild(selectedName).Character.Humanoid
  1656.                 end
  1657.             else
  1658.                 if game.Players.LocalPlayer.Character then
  1659.                     if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  1660.                         game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  1661.                         previousSelected = ""
  1662.                     end
  1663.                 end
  1664.             end
  1665.         end
  1666.     end
  1667. end)
  1668. lgui.Parent.Enabled = false
  1669. lgui.Parent.Enabled = true
  1670. rgui.Parent.Enabled = false
  1671. rgui.Parent.Enabled = true
  1672. mgui.Parent.Enabled = false
  1673. mgui.Parent.Enabled = true
  1674. mgui.Parent.Enabled = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement