NotGlobe

e

Oct 20th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. local dwEntities = game:GetService("Players")
  2. local dwLocalPlayer = dwEntities.LocalPlayer
  3. local dwRunService = game:GetService("RunService")
  4.  
  5. local settings_tbl = {
  6. ESP_Enabled = true,
  7. ESP_TeamCheck = false,
  8. Chams = true,
  9. Chams_Color = Color3.fromRGB(0,0,255),
  10. Chams_Transparency = 0.1,
  11. Chams_Glow_Color = Color3.fromRGB(255,0,0)
  12. }
  13.  
  14. function destroy_chams(char)
  15.  
  16. for k,v in next, char:GetChildren() do
  17.  
  18. if v:IsA("BasePart") and v.Transparency ~= 1 then
  19.  
  20. if v:FindFirstChild("Glow") and
  21. v:FindFirstChild("Chams") then
  22.  
  23. v.Glow:Destroy()
  24. v.Chams:Destroy()
  25.  
  26. end
  27.  
  28. end
  29.  
  30. end
  31.  
  32. end
  33.  
  34. dwRunService.Heartbeat:Connect(function()
  35.  
  36. if settings_tbl.ESP_Enabled then
  37.  
  38. for k,v in next, dwEntities:GetPlayers() do
  39.  
  40. if v ~= dwLocalPlayer then
  41.  
  42. if v.Character and
  43. v.Character:FindFirstChild("HumanoidRootPart") and
  44. v.Character:FindFirstChild("Humanoid") and
  45. v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  46.  
  47. if settings_tbl.ESP_TeamCheck == false then
  48.  
  49. local char = v.Character
  50.  
  51. for k,b in next, char:GetChildren() do
  52.  
  53. if b:IsA("BasePart") and
  54. b.Transparency ~= 1 then
  55.  
  56. if settings_tbl.Chams then
  57.  
  58. if not b:FindFirstChild("Glow") and
  59. not b:FindFirstChild("Chams") then
  60.  
  61. local chams_box = Instance.new("BoxHandleAdornment", b)
  62. chams_box.Name = "Chams"
  63. chams_box.AlwaysOnTop = true
  64. chams_box.ZIndex = 4
  65. chams_box.Adornee = b
  66. chams_box.Color3 = settings_tbl.Chams_Color
  67. chams_box.Transparency = settings_tbl.Chams_Transparency
  68. chams_box.Size = b.Size + Vector3.new(0.02, 0.02, 0.02)
  69.  
  70. local glow_box = Instance.new("BoxHandleAdornment", b)
  71. glow_box.Name = "Glow"
  72. glow_box.AlwaysOnTop = false
  73. glow_box.ZIndex = 3
  74. glow_box.Adornee = b
  75. glow_box.Color3 = settings_tbl.Chams_Glow_Color
  76. glow_box.Size = chams_box.Size + Vector3.new(0.13, 0.13, 0.13)
  77.  
  78. end
  79.  
  80. else
  81.  
  82. destroy_chams(char)
  83.  
  84. end
  85.  
  86. end
  87.  
  88. end
  89.  
  90. else
  91.  
  92. if v.Team == dwLocalPlayer.Team then
  93. destroy_chams(v.Character)
  94. end
  95.  
  96. end
  97.  
  98. else
  99.  
  100. destroy_chams(v.Character)
  101.  
  102. end
  103.  
  104. end
  105.  
  106. end
  107.  
  108. else
  109.  
  110. for k,v in next, dwEntities:GetPlayers() do
  111.  
  112. if v ~= dwLocalPlayer and
  113. v.Character and
  114. v.Character:FindFirstChild("HumanoidRootPart") and
  115. v.Character:FindFirstChild("Humanoid") and
  116. v.Character:FindFirstChild("Humanoid").Health ~= 0 then
  117.  
  118. destroy_chams(v.Character)
  119.  
  120. end
  121.  
  122. end
  123.  
  124. end
  125.  
  126. end)
Add Comment
Please, Sign In to add comment