Advertisement
Guest User

CounterBloxAutoESp

a guest
Oct 23rd, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.43 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2. local sg = game:GetService("StarterGui")
  3. local wp = game:GetService("Workspace")
  4. local cmr = wp.Camera
  5. local rs =  game:GetService("ReplicatedStorage")
  6. local lgt = game:GetService("Lighting")
  7. local plrs = game:GetService("Players")
  8. local lplr = plrs.LocalPlayer
  9. local mouse = lplr:GetMouse()
  10.  
  11. local faces = {"Back","Bottom","Front","Left","Right","Top"}
  12.  
  13. function enableESPCode()
  14.     for _, o in pairs(plrs:GetPlayers()) do
  15.         o.CharacterAdded:Connect(function(characterModel)
  16.             wait(2)
  17.             if o.Name ~= lplr.Name then
  18.                 if o.Name == tostring(wp.Status.HasBomb.Value) then
  19.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  20.                     bgui.Name = ("EGUI")
  21.                     bgui.AlwaysOnTop = true
  22.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  23.                     bgui.Size = UDim2.new(0,200,0,50)
  24.                     local nam = Instance.new("TextLabel",bgui)
  25.                     nam.Text = o.Name
  26.                     nam.BackgroundTransparency = 1
  27.                     nam.TextSize = 14
  28.                     nam.Font = ("Arial")
  29.                     nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  30.                     nam.Size = UDim2.new(0,200,0,50)
  31.                     for _, p in pairs(o.Character:GetChildren()) do
  32.                         if p.Name == ("Head") then
  33.                             for _, f in pairs(faces) do
  34.                                 local m = Instance.new("SurfaceGui",p)
  35.                                 m.Name = ("EGUI")
  36.                                 m.Face = f
  37.                                 m.Active      = true
  38.                                 m.AlwaysOnTop = true
  39.                                 local mf = Instance.new("Frame",m)
  40.                                 mf.Size = UDim2.new(1,0,1,0)
  41.                                 mf.BorderSizePixel = 0
  42.                                 mf.BackgroundTransparency = 0.5
  43.                                 mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  44.  
  45.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  46.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  47.                                         if tostring(o.Team) == "Terrorists" then
  48.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  49.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  50.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  51.                                         end
  52.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  53.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  54.                                     end
  55.                                 end)
  56.  
  57.                             end
  58.                         end
  59.                     end
  60.  
  61.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  62.                         if tostring(wp.Status.HasBomb.Value) == "" then
  63.                             if tostring(o.Team) == "Terrorists" then
  64.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  65.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  66.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  67.                             end
  68.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  69.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  70.                         end
  71.                     end)
  72.  
  73.                 elseif tostring(o.Team) == "Terrorists" then
  74.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  75.                     bgui.Name = ("EGUI")
  76.                     bgui.AlwaysOnTop = true
  77.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  78.                     bgui.Size = UDim2.new(0,200,0,50)
  79.                     local nam = Instance.new("TextLabel",bgui)
  80.                     nam.Text = o.Name
  81.                     nam.BackgroundTransparency = 1
  82.                     nam.TextSize = 14
  83.                     nam.Font = ("Arial")
  84.                     nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  85.                     nam.Size = UDim2.new(0,200,0,50)
  86.                     for _, p in pairs(o.Character:GetChildren()) do
  87.                         if p.Name == ("Head") then
  88.                             for _, f in pairs(faces) do
  89.                                 local m = Instance.new("SurfaceGui",p)
  90.                                 m.Name = ("EGUI")
  91.                                 m.Face = f
  92.                                 m.Active      = true
  93.                                 m.AlwaysOnTop = true
  94.                                 local mf = Instance.new("Frame",m)
  95.                                 mf.Size = UDim2.new(1,0,1,0)
  96.                                 mf.BorderSizePixel = 0
  97.                                 mf.BackgroundTransparency = 0.5
  98.                                 mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  99.  
  100.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  101.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  102.                                         if tostring(o.Team) == "Terrorists" then
  103.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  104.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  105.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  106.                                         end
  107.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  108.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  109.                                     end
  110.                                 end)
  111.  
  112.                             end
  113.                         end
  114.                     end
  115.  
  116.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  117.                         if tostring(wp.Status.HasBomb.Value) == "" then
  118.                             if tostring(o.Team) == "Terrorists" then
  119.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  120.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  121.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  122.                             end
  123.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  124.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  125.                         end
  126.                     end)
  127.  
  128.                 elseif tostring(o.Team) == "Counter-Terrorists" then
  129.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  130.                     bgui.Name = ("EGUI")
  131.                     bgui.AlwaysOnTop = true
  132.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  133.                     bgui.Size = UDim2.new(0,200,0,50)
  134.                     local nam = Instance.new("TextLabel",bgui)
  135.                     nam.Text = o.Name
  136.                     nam.BackgroundTransparency = 1
  137.                     nam.TextSize = 14
  138.                     nam.Font = ("Arial")
  139.                     nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  140.                     nam.Size = UDim2.new(0,200,0,50)
  141.                     for _, p in pairs(o.Character:GetChildren()) do
  142.                         if p.Name == ("Head") then
  143.                             for _, f in pairs(faces) do
  144.                                 local m = Instance.new("SurfaceGui",p)
  145.                                 m.Name = ("EGUI")
  146.                                 m.Face = f
  147.                                 m.Active      = true
  148.                                 m.AlwaysOnTop = true
  149.                                 local mf = Instance.new("Frame",m)
  150.                                 mf.Size = UDim2.new(1,0,1,0)
  151.                                 mf.BorderSizePixel = 0
  152.                                 mf.BackgroundTransparency = 0.5
  153.                                 mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  154.  
  155.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  156.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  157.                                         if tostring(o.Team) == "Terrorists" then
  158.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  159.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  160.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  161.                                         end
  162.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  163.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  164.                                     end
  165.                                 end)
  166.  
  167.                             end
  168.                         end
  169.                     end
  170.  
  171.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  172.                         if tostring(wp.Status.HasBomb.Value) == "" then
  173.                             if tostring(o.Team) == "Terrorists" then
  174.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  175.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  176.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  177.                             end
  178.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  179.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  180.                         end
  181.                     end)
  182.  
  183.                 end
  184.             end
  185.         end)
  186.     end
  187.  
  188.     plrs.PlayerAdded:Connect(function(newPlayer)
  189.         newPlayer.CharacterAdded:Connect(function(characterModel)
  190.             wait(2)
  191.             if newPlayer.Name ~= lplr.Name then
  192.                 if newPlayer.Name == tostring(wp.Status.HasBomb.Value) then
  193.                     local bgui = Instance.new("BillboardGui",newPlayer.Character.Head)
  194.                     bgui.Name = ("EGUI")
  195.                     bgui.AlwaysOnTop = true
  196.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  197.                     bgui.Size = UDim2.new(0,200,0,50)
  198.                     local nam = Instance.new("TextLabel",bgui)
  199.                     nam.Text = newPlayer.Name
  200.                     nam.BackgroundTransparency = 1
  201.                     nam.TextSize = 14
  202.                     nam.Font = ("Arial")
  203.                     nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  204.                     nam.Size = UDim2.new(0,200,0,50)
  205.                     for _, p in pairs(newPlayer.Character:GetChildren()) do
  206.                         if p.Name == ("Head") then
  207.                             for _, f in pairs(faces) do
  208.                                 local m = Instance.new("SurfaceGui",p)
  209.                                 m.Name = ("EGUI")
  210.                                 m.Face = f
  211.                                 m.Active      = true
  212.                                 m.AlwaysOnTop = true
  213.                                 local mf = Instance.new("Frame",m)
  214.                                 mf.Size = UDim2.new(1,0,1,0)
  215.                                 mf.BorderSizePixel = 0
  216.                                 mf.BackgroundTransparency = 0.5
  217.                                 mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  218.  
  219.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  220.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  221.                                         if tostring(newPlayer.Team) == "Terrorists" then
  222.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  223.                                         elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  224.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  225.                                         end
  226.                                     elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  227.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  228.                                     end
  229.                                 end)
  230.  
  231.                             end
  232.                         end
  233.                     end
  234.  
  235.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  236.                         if tostring(wp.Status.HasBomb.Value) == "" then
  237.                             if tostring(newPlayer.Team) == "Terrorists" then
  238.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  239.                             elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  240.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  241.                             end
  242.                         elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  243.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  244.                         end
  245.                     end)
  246.  
  247.                 elseif tostring(newPlayer.Team) == "Terrorists" then
  248.                     local bgui = Instance.new("BillboardGui",newPlayer.Character.Head)
  249.                     bgui.Name = ("EGUI")
  250.                     bgui.AlwaysOnTop = true
  251.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  252.                     bgui.Size = UDim2.new(0,200,0,50)
  253.                     local nam = Instance.new("TextLabel",bgui)
  254.                     nam.Text = newPlayer.Name
  255.                     nam.BackgroundTransparency = 1
  256.                     nam.TextSize = 14
  257.                     nam.Font = ("Arial")
  258.                     nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  259.                     nam.Size = UDim2.new(0,200,0,50)
  260.                     for _, p in pairs(newPlayer.Character:GetChildren()) do
  261.                         if p.Name == ("Head") then
  262.                             for _, f in pairs(faces) do
  263.                                 local m = Instance.new("SurfaceGui",p)
  264.                                 m.Name = ("EGUI")
  265.                                 m.Face = f
  266.                                 m.Active      = true
  267.                                 m.AlwaysOnTop = true
  268.                                 local mf = Instance.new("Frame",m)
  269.                                 mf.Size = UDim2.new(1,0,1,0)
  270.                                 mf.BorderSizePixel = 0
  271.                                 mf.BackgroundTransparency = 0.5
  272.                                 mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  273.  
  274.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  275.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  276.                                         if tostring(newPlayer.Team) == "Terrorists" then
  277.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  278.                                         elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  279.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  280.                                         end
  281.                                     elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  282.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  283.                                     end
  284.                                 end)
  285.  
  286.                             end
  287.                         end
  288.                     end
  289.  
  290.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  291.                         if tostring(wp.Status.HasBomb.Value) == "" then
  292.                             if tostring(newPlayer.Team) == "Terrorists" then
  293.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  294.                             elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  295.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  296.                             end
  297.                         elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  298.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  299.                         end
  300.                     end)
  301.  
  302.                 elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  303.                     local bgui = Instance.new("BillboardGui",newPlayer.Character.Head)
  304.                     bgui.Name = ("EGUI")
  305.                     bgui.AlwaysOnTop = true
  306.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  307.                     bgui.Size = UDim2.new(0,200,0,50)
  308.                     local nam = Instance.new("TextLabel",bgui)
  309.                     nam.Text = newPlayer.Name
  310.                     nam.BackgroundTransparency = 1
  311.                     nam.TextSize = 14
  312.                     nam.Font = ("Arial")
  313.                     nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  314.                     nam.Size = UDim2.new(0,200,0,50)
  315.                     for _, p in pairs(newPlayer.Character:GetChildren()) do
  316.                         if p.Name == ("Head") then
  317.                             for _, f in pairs(faces) do
  318.                                 local m = Instance.new("SurfaceGui",p)
  319.                                 m.Name = ("EGUI")
  320.                                 m.Face = f
  321.                                 m.Active      = true
  322.                                 m.AlwaysOnTop = true
  323.                                 local mf = Instance.new("Frame",m)
  324.                                 mf.Size = UDim2.new(1,0,1,0)
  325.                                 mf.BorderSizePixel = 0
  326.                                 mf.BackgroundTransparency = 0.5
  327.                                 mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  328.  
  329.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  330.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  331.                                         if tostring(newPlayer.Team) == "Terrorists" then
  332.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  333.                                         elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  334.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  335.                                         end
  336.                                     elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  337.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  338.                                     end
  339.                                 end)
  340.  
  341.                             end
  342.                         end
  343.                     end
  344.  
  345.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  346.                         if tostring(wp.Status.HasBomb.Value) == "" then
  347.                             if tostring(newPlayer.Team) == "Terrorists" then
  348.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  349.                             elseif tostring(newPlayer.Team) == "Counter-Terrorists" then
  350.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  351.                             end
  352.                         elseif tostring(wp.Status.HasBomb.Value) == newPlayer.Name then
  353.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  354.                         end
  355.                     end)
  356.  
  357.                 end
  358.             end
  359.         end)
  360.     end)
  361.  
  362.     wp.ChildAdded:connect(function(p)
  363.         if p.Name == "C4" then
  364.             local bgui = Instance.new("BillboardGui",p)
  365.             bgui.Name = ("EGUI")
  366.             bgui.AlwaysOnTop = true
  367.             bgui.ExtentsOffset = Vector3.new(0,0,0)
  368.             bgui.Size = UDim2.new(1,0,1,0)
  369.             local nam = Instance.new("TextLabel",bgui)
  370.             nam.Text = p.Name
  371.             nam.BackgroundTransparency = 1
  372.             nam.TextSize = 20
  373.             nam.Font = ("Arial")
  374.             nam.TextColor3 = Color3.fromRGB(75, 151, 75)
  375.             nam.Size = UDim2.new(1,0,1,0)
  376.         end
  377.     end)
  378.  
  379.     wp.Debris.ChildAdded:connect(function(p)
  380.         if p.Name == "C4" then
  381.             local bgui = Instance.new("BillboardGui",p)
  382.             bgui.Name = ("EGUI")
  383.             bgui.AlwaysOnTop = true
  384.             bgui.ExtentsOffset = Vector3.new(0,0,0)
  385.             bgui.Size = UDim2.new(1,0,1,0)
  386.             local nam = Instance.new("TextLabel",bgui)
  387.             nam.Text = p.Name .. " fall here"
  388.             nam.BackgroundTransparency = 1
  389.             nam.TextSize = 20
  390.             nam.Font = ("Arial")
  391.             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  392.             nam.Size = UDim2.new(1,0,1,0)
  393.         end
  394.     end)
  395. end
  396.  
  397. enableESPCode()
  398.  
  399. function espFirst()
  400.     for _, o in pairs(plrs:GetPlayers()) do
  401.         if o.Name ~= lplr.Name then
  402.             if o.Character ~= nil then
  403.                 if o.Name == tostring(wp.Status.HasBomb.Value) then
  404.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  405.                     bgui.Name = ("EGUI")
  406.                     bgui.AlwaysOnTop = true
  407.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  408.                     bgui.Size = UDim2.new(0,200,0,50)
  409.                     local nam = Instance.new("TextLabel",bgui)
  410.                     nam.Text = o.Name
  411.                     nam.BackgroundTransparency = 1
  412.                     nam.TextSize = 14
  413.                     nam.Font = ("Arial")
  414.                     nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  415.                     nam.Size = UDim2.new(0,200,0,50)
  416.                     for _, p in pairs(o.Character:GetChildren()) do
  417.                         if p.Name == ("Head") then
  418.                             for _, f in pairs(faces) do
  419.                                 local m = Instance.new("SurfaceGui",p)
  420.                                 m.Name = ("EGUI")
  421.                                 m.Face = f
  422.                                 m.Active      = true
  423.                                 m.AlwaysOnTop = true
  424.                                 local mf = Instance.new("Frame",m)
  425.                                 mf.Size = UDim2.new(1,0,1,0)
  426.                                 mf.BorderSizePixel = 0
  427.                                 mf.BackgroundTransparency = 0.5
  428.                                 mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  429.  
  430.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  431.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  432.                                         if tostring(o.Team) == "Terrorists" then
  433.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  434.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  435.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  436.                                         end
  437.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  438.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  439.                                     end
  440.                                 end)
  441.  
  442.                             end
  443.                         end
  444.                     end
  445.  
  446.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  447.                         if tostring(wp.Status.HasBomb.Value) == "" then
  448.                             if tostring(o.Team) == "Terrorists" then
  449.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  450.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  451.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  452.                             end
  453.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  454.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  455.                         end
  456.                     end)
  457.  
  458.                 elseif tostring(o.Team) == "Terrorists" then
  459.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  460.                     bgui.Name = ("EGUI")
  461.                     bgui.AlwaysOnTop = true
  462.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  463.                     bgui.Size = UDim2.new(0,200,0,50)
  464.                     local nam = Instance.new("TextLabel",bgui)
  465.                     nam.Text = o.Name
  466.                     nam.BackgroundTransparency = 1
  467.                     nam.TextSize = 14
  468.                     nam.Font = ("Arial")
  469.                     nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  470.                     nam.Size = UDim2.new(0,200,0,50)
  471.                     for _, p in pairs(o.Character:GetChildren()) do
  472.                         if p.Name == ("Head") then
  473.                             for _, f in pairs(faces) do
  474.                                 local m = Instance.new("SurfaceGui",p)
  475.                                 m.Name = ("EGUI")
  476.                                 m.Face = f
  477.                                 m.Active      = true
  478.                                 m.AlwaysOnTop = true
  479.                                 local mf = Instance.new("Frame",m)
  480.                                 mf.Size = UDim2.new(1,0,1,0)
  481.                                 mf.BorderSizePixel = 0
  482.                                 mf.BackgroundTransparency = 0.5
  483.                                 mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  484.  
  485.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  486.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  487.                                         if tostring(o.Team) == "Terrorists" then
  488.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  489.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  490.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  491.                                         end
  492.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  493.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  494.                                     end
  495.                                 end)
  496.  
  497.                             end
  498.                         end
  499.                     end
  500.  
  501.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  502.                         if tostring(wp.Status.HasBomb.Value) == "" then
  503.                             if tostring(o.Team) == "Terrorists" then
  504.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  505.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  506.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  507.                             end
  508.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  509.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  510.                         end
  511.                     end)
  512.  
  513.                 elseif tostring(o.Team) == "Counter-Terrorists" then
  514.                     local bgui = Instance.new("BillboardGui",o.Character.Head)
  515.                     bgui.Name = ("EGUI")
  516.                     bgui.AlwaysOnTop = true
  517.                     bgui.ExtentsOffset = Vector3.new(0,3,0)
  518.                     bgui.Size = UDim2.new(0,200,0,50)
  519.                     local nam = Instance.new("TextLabel",bgui)
  520.                     nam.Text = o.Name
  521.                     nam.BackgroundTransparency = 1
  522.                     nam.TextSize = 14
  523.                     nam.Font = ("Arial")
  524.                     nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  525.                     nam.Size = UDim2.new(0,200,0,50)
  526.                     for _, p in pairs(o.Character:GetChildren()) do
  527.                         if p.Name == ("Head") then
  528.                             for _, f in pairs(faces) do
  529.                                 local m = Instance.new("SurfaceGui",p)
  530.                                 m.Name = ("EGUI")
  531.                                 m.Face = f
  532.                                 m.Active      = true
  533.                                 m.AlwaysOnTop = true
  534.                                 local mf = Instance.new("Frame",m)
  535.                                 mf.Size = UDim2.new(1,0,1,0)
  536.                                 mf.BorderSizePixel = 0
  537.                                 mf.BackgroundTransparency = 0.5
  538.                                 mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  539.  
  540.                                 wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  541.                                     if tostring(wp.Status.HasBomb.Value) == "" then
  542.                                         if tostring(o.Team) == "Terrorists" then
  543.                                             mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  544.                                         elseif tostring(o.Team) == "Counter-Terrorists" then
  545.                                             mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  546.                                         end
  547.                                     elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  548.                                         mf.BackgroundColor3 = Color3.fromRGB(245, 205, 48)
  549.                                     end
  550.                                 end)
  551.  
  552.                             end
  553.                         end
  554.                     end
  555.  
  556.                     wp.Status.HasBomb:GetPropertyChangedSignal("Value"):connect(function()
  557.                         if tostring(wp.Status.HasBomb.Value) == "" then
  558.                             if tostring(o.Team) == "Terrorists" then
  559.                                 nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  560.                             elseif tostring(o.Team) == "Counter-Terrorists" then
  561.                                 nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  562.                             end
  563.                         elseif tostring(wp.Status.HasBomb.Value) == o.Name then
  564.                             nam.TextColor3 = Color3.fromRGB(245, 205, 48)
  565.                         end
  566.                     end)
  567.  
  568.                 end
  569.             end
  570.         end
  571.     end
  572. end
  573. espFirst()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement