Advertisement
RobloxExplo1ter

ESP script (with name esp)

Feb 10th, 2024 (edited)
2,420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. local FillColor = Color3.fromRGB(175,25,255)
  2. local DepthMode = "AlwaysOnTop"
  3. local FillTransparency = 0
  4. local OutlineColor = Color3.fromRGB(255,255,255)
  5. local OutlineTransparency = 0
  6.  
  7. local CoreGui = game:FindService("CoreGui")
  8. local Players = game:FindService("Players")
  9. local lp = Players.LocalPlayer
  10. local connections = {}
  11.  
  12. local Storage = Instance.new("Folder")
  13. Storage.Parent = CoreGui
  14. Storage.Name = "Highlight_Storage"
  15.  
  16. local function Highlight(plr)
  17. local Highlight = Instance.new("Highlight")
  18. Highlight.Name = plr.Name
  19. Highlight.FillColor = FillColor
  20. Highlight.DepthMode = DepthMode
  21. Highlight.FillTransparency = FillTransparency
  22. Highlight.OutlineColor = OutlineColor
  23. Highlight.OutlineTransparency = 0
  24. Highlight.Parent = Storage
  25.  
  26. local plrchar = plr.Character
  27. if plrchar then
  28. if plr ~= game.Players.LocalPlayer then
  29. Highlight.Adornee = plrchar
  30. end
  31. end
  32.  
  33. connections[plr] = plr.CharacterAdded:Connect(function(char)
  34. Highlight.Adornee = char
  35. end)
  36. end
  37.  
  38. Players.PlayerAdded:Connect(Highlight)
  39. for i,v in next, Players:GetPlayers() do
  40. if v ~= game.Players.LocalPlayer then
  41. Highlight(v)
  42. end
  43. end
  44.  
  45. Players.PlayerRemoving:Connect(function(plr)
  46. local plrname = plr.Name
  47. if Storage[plrname] then
  48. Storage[plrname]:Destroy()
  49. end
  50. if connections[plr] then
  51. connections[plr]:Disconnect()
  52. end
  53. end)
  54.  
  55. --[[
  56. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  57. ]]
  58. --//Toggle\\--
  59. getgenv().Toggle = true -- This toggles the esp, turning it to false will turn it off
  60. getgenv().TC = false -- This toggles team check, turning it on will turn on team check
  61. local PlayerName = "Name" -- You can decide if you want the Player's name to be a display name which is "DisplayName", or username which is "Name"
  62.  
  63. --//Variables\\--
  64. local P = game:GetService("Players")
  65. local LP = P.LocalPlayer
  66.  
  67. --//Debounce\\--
  68. local DB = false
  69.  
  70. --//Loop\\--
  71. while task.wait() do
  72. if not getgenv().Toggle then
  73. break
  74. end
  75. if DB then
  76. return
  77. end
  78. DB = true
  79.  
  80. pcall(function()
  81. for i,v in pairs(P:GetChildren()) do
  82. if v:IsA("Player") then
  83. if v ~= LP then
  84. if v.Character then
  85.  
  86. local pos = math.floor(((LP.Character:FindFirstChild("HumanoidRootPart")).Position - (v.Character:FindFirstChild("HumanoidRootPart")).Position).magnitude)
  87. -- Credits to Infinite Yield for this part (pos) ^^^^^^
  88.  
  89. if v.Character:FindFirstChild("Totally NOT Esp") == nil and v.Character:FindFirstChild("Icon") == nil and getgenv().TC == false then
  90.  
  91. --//ESP-Text\\--
  92. local Icon = Instance.new("BillboardGui", v.Character.HumanoidRootPart)
  93. local ESPText = Instance.new("TextLabel")
  94.  
  95. Icon.Name = "Icon"
  96. Icon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  97. Icon.Active = true
  98. Icon.AlwaysOnTop = true
  99. Icon.ExtentsOffset = Vector3.new(0, 1, 0)
  100. Icon.LightInfluence = 1.000
  101. Icon.Size = UDim2.new(0, 800, 0, 50)
  102.  
  103. ESPText.Name = "ESP Text"
  104. ESPText.Parent = Icon
  105. ESPText.BackgroundColor3 = v.TeamColor.Color
  106. ESPText.BackgroundTransparency = 1.000
  107. ESPText.Size = UDim2.new(0, 800, 0, 50)
  108. ESPText.Font = Enum.Font.SciFi
  109. ESPText.Text = v[PlayerName]
  110. ESPText.TextColor3 = v.TeamColor.Color
  111. ESPText.TextSize = 20
  112. ESPText.TextWrapped = true
  113. else
  114. if v.TeamColor ~= LP.TeamColor and v.Character:FindFirstChild("Totally NOT Esp") == nil and v.Character:FindFirstChild("Icon") == nil and getgenv().TC == true then
  115.  
  116.  
  117. --//ESP-Text\\--
  118. local Icon = Instance.new("BillboardGui", v.Character.HumanoidRootPart)
  119. local ESPText = Instance.new("TextLabel")
  120.  
  121. Icon.Name = "Icon"
  122. Icon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  123. Icon.Active = true
  124. Icon.AlwaysOnTop = true
  125. Icon.ExtentsOffset = Vector3.new(0, 1, 0)
  126. Icon.LightInfluence = 1.000
  127. Icon.Size = UDim2.new(0, 800, 0, 50)
  128.  
  129. ESPText.Name = "ESP Text"
  130. ESPText.Parent = Icon
  131. ESPText.BackgroundColor3 = v.TeamColor.Color
  132. ESPText.BackgroundTransparency = 1.000
  133. ESPText.Size = UDim2.new(0, 800, 0, 50)
  134. ESPText.Font = Enum.Font.SciFi
  135. ESPText.Text = v[PlayerName]
  136. ESPText.TextColor3 = v.TeamColor.Color
  137. ESPText.TextSize = 20
  138. ESPText.TextWrapped = true
  139. else
  140. if not v.Character:FindFirstChild("Totally NOT Esp").FillColor == v.TeamColor.Color and not v.Character:FindFirstChild("Icon").TextColor3 == v.TeamColor.Color then
  141. v.Character:FindFirstChild("Totally NOT Esp").FillColor = v.TeamColor.Color
  142. v.Character:FindFirstChild("Icon").TextColor3 = v.TeamColor.Color
  143. else
  144. if v.Character:FindFirstChild("Totally NOT Esp").Enabled == false and v.Character:FindFirstChild("Icon").Enabled == false then
  145. v.Character:FindFirstChild("Totally NOT Esp").Enabled = true
  146. v.Character:FindFirstChild("Icon").Enabled = true
  147. else
  148. if v.Character:FindFirstChild("Icon") then
  149. v.Character:FindFirstChild("Icon")["ESP Text"].Text = v[PlayerName]
  150. end
  151. end
  152. end
  153. end
  154. end
  155. end
  156. end
  157. end
  158. end
  159. end)
  160.  
  161. wait()
  162.  
  163. DB = false
  164. end
  165.  
  166.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement