Advertisement
Upscalefanatic3

Counter Blox (Auto ESP)

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