Advertisement
jaydenlovett05

Simple ESP

Oct 2nd, 2018
1,662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Open = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local ESP = Instance.new("TextButton")
  8. local TextLabel = Instance.new("TextLabel")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11.  
  12. Open.Name = "Open"
  13. Open.Parent = ScreenGui
  14. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  15. Open.BorderColor3 = Color3.new(0, 0, 0)
  16. Open.BorderSizePixel = 3
  17. Open.Position = UDim2.new(0, 0, 0.434889436, 0)
  18. Open.Size = UDim2.new(0, 114, 0, 43)
  19. Open.Font = Enum.Font.ArialBold
  20. Open.Text = "Open"
  21. Open.TextColor3 = Color3.new(0, 0, 0)
  22. Open.TextSize = 14
  23.  
  24. Frame.Parent = ScreenGui
  25. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  26. Frame.BorderColor3 = Color3.new(0, 0, 0)
  27. Frame.BorderSizePixel = 4
  28. Frame.Position = UDim2.new(0.193588942, 0, 0.412776411, 0)
  29. Frame.Size = UDim2.new(0, 154, 0, 141)
  30. Frame.Visible = false
  31.  
  32. ESP.Name = "ESP"
  33. ESP.Parent = Frame
  34. ESP.BackgroundColor3 = Color3.new(1, 1, 1)
  35. ESP.BorderColor3 = Color3.new(0, 0, 0)
  36. ESP.BorderSizePixel = 2
  37. ESP.Position = UDim2.new(0.0519480519, 0, 0.510638297, 0)
  38. ESP.Size = UDim2.new(0, 137, 0, 64)
  39. ESP.Font = Enum.Font.Cartoon
  40. ESP.Text = "ESP"
  41. ESP.TextColor3 = Color3.new(0, 0, 0)
  42. ESP.TextSize = 20
  43. ESP.TextWrapped = true
  44. ESP.MouseButton1Down:connect(function()
  45. local Holder = Instance.new("Folder", game.CoreGui)
  46. Holder.Name = "ESP"
  47.  
  48. local Box = Instance.new("BoxHandleAdornment")
  49. Box.Name = "nilBox"
  50. Box.Size = Vector3.new(4, 7, 4)
  51. Box.Color3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  52. Box.Transparency = 0.7
  53. Box.ZIndex = 0
  54. Box.AlwaysOnTop = true
  55. Box.Visible = true
  56.  
  57. local NameTag = Instance.new("BillboardGui")
  58. NameTag.Name = "nilNameTag"
  59. NameTag.Enabled = false
  60. NameTag.Size = UDim2.new(0, 200, 0, 50)
  61. NameTag.AlwaysOnTop = true
  62. NameTag.StudsOffset = Vector3.new(0, 1.8, 0)
  63. local Tag = Instance.new("TextLabel", NameTag)
  64. Tag.Name = "Tag"
  65. Tag.BackgroundTransparency = 1
  66. Tag.Position = UDim2.new(0, -50, 0, 0)
  67. Tag.Size = UDim2.new(0, 300, 0, 20)
  68. Tag.TextSize = 20
  69. Tag.TextColor3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  70. Tag.TextStrokeColor3 = Color3.new(0 / 255, 0 / 255, 0 / 255)
  71. Tag.TextStrokeTransparency = 0.4
  72. Tag.Text = "nil"
  73. Tag.Font = Enum.Font.SourceSansBold
  74. Tag.TextScaled = false
  75.  
  76. local LoadCharacter = function(v)
  77. repeat wait() until v.Character ~= nil
  78. v.Character:WaitForChild("Humanoid")
  79. local vHolder = Holder:FindFirstChild(v.Name)
  80. vHolder:ClearAllChildren()
  81. local b = Box:Clone()
  82. b.Name = v.Name .. "Box"
  83. b.Adornee = v.Character
  84. b.Parent = vHolder
  85. local t = NameTag:Clone()
  86. t.Name = v.Name .. "NameTag"
  87. t.Enabled = true
  88. t.Parent = vHolder
  89. t.Adornee = v.Character:WaitForChild("Head", 5)
  90. if not t.Adornee then
  91. return UnloadCharacter(v)
  92. end
  93. t.Tag.Text = v.Name
  94. b.Color3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  95. t.Tag.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  96. local Update
  97. local UpdateNameTag = function()
  98. if not pcall(function()
  99. v.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  100. local maxh = math.floor(v.Character.Humanoid.MaxHealth)
  101. local h = math.floor(v.Character.Humanoid.Health)
  102. t.Tag.Text = v.Name .. "\n" .. ((maxh ~= 0 and tostring(math.floor((h / maxh) * 100))) or "0") .. "% " .. tostring(h) .. "/" .. tostring(maxh)
  103. end) then
  104. Update:Disconnect()
  105. end
  106. end
  107. UpdateNameTag()
  108. Update = v.Character.Humanoid.Changed:Connect(UpdateNameTag)
  109. end
  110.  
  111. local UnloadCharacter = function(v)
  112. local vHolder = Holder:FindFirstChild(v.Name)
  113. if vHolder and (vHolder:FindFirstChild(v.Name .. "Box") ~= nil or vHolder:FindFirstChild(v.Name .. "NameTag") ~= nil) then
  114. vHolder:ClearAllChildren()
  115. end
  116. end
  117.  
  118. local LoadPlayer = function(v)
  119. local vHolder = Instance.new("Folder", Holder)
  120. vHolder.Name = v.Name
  121. v.CharacterAdded:Connect(function()
  122. pcall(LoadCharacter, v)
  123. end)
  124. v.CharacterRemoving:Connect(function()
  125. pcall(UnloadCharacter, v)
  126. end)
  127. v.Changed:Connect(function(prop)
  128. if prop == "TeamColor" then
  129. UnloadCharacter(v)
  130. wait()
  131. LoadCharacter(v)
  132. end
  133. end)
  134. LoadCharacter(v)
  135. end
  136.  
  137. local UnloadPlayer = function(v)
  138. UnloadCharacter(v)
  139. local vHolder = Holder:FindFirstChild(v.Name)
  140. if vHolder then
  141. vHolder:Destroy()
  142. end
  143. end
  144.  
  145. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  146. spawn(function() pcall(LoadPlayer, v) end)
  147. end
  148.  
  149. game:GetService("Players").PlayerAdded:Connect(function(v)
  150. pcall(LoadPlayer, v)
  151. end)
  152.  
  153. game:GetService("Players").PlayerRemoving:Connect(function(v)
  154. pcall(UnloadPlayer, v)
  155. end)
  156.  
  157. game:GetService("Players").LocalPlayer.NameDisplayDistance = 0
  158. end)
  159.  
  160. TextLabel.Parent = Frame
  161. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  162. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  163. TextLabel.BorderSizePixel = 2
  164. TextLabel.Position = UDim2.new(0.038961038, 0, 0.0496453904, 0)
  165. TextLabel.Size = UDim2.new(0, 141, 0, 39)
  166. TextLabel.Font = Enum.Font.ArialBold
  167. TextLabel.Text = "Simple ESP"
  168. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  169. TextLabel.TextSize = 14
  170. -- Scripts:
  171. function SCRIPT_NIPY73_FAKESCRIPT() -- Open.LocalScript
  172. getfenv().script = Instance.new('LocalScript', Open)
  173.  
  174. script.Parent.MouseButton1Click:connect(function()
  175. if script.Parent.Parent.Frame.Visible == false then
  176. script.Parent.Parent.Frame.Visible = true
  177. script.Parent.Text = 'Close'
  178.  
  179. else
  180. script.Parent.Parent.Frame.Visible = false
  181. end script.Parent.Text = 'Open'
  182. end)
  183.  
  184. end
  185. coroutine.resume(coroutine.create(SCRIPT_NIPY73_FAKESCRIPT))
  186. function SCRIPT_NLHM69_FAKESCRIPT() -- Frame.LocalScript
  187. getfenv().script = Instance.new('LocalScript', Frame)
  188.  
  189. local UserInputService = game:GetService("UserInputService")
  190.  
  191. local gui = script.Parent
  192.  
  193. local dragging
  194. local dragInput
  195. local dragStart
  196. local startPos
  197.  
  198. local function update(input)
  199. local delta = input.Position - dragStart
  200. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  201. end
  202.  
  203. gui.InputBegan:Connect(function(input)
  204. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  205. dragging = true
  206. dragStart = input.Position
  207. startPos = gui.Position
  208.  
  209. input.Changed:Connect(function()
  210. if input.UserInputState == Enum.UserInputState.End then
  211. dragging = false
  212. end
  213. end)
  214. end
  215. end)
  216.  
  217. gui.InputChanged:Connect(function(input)
  218. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  219. dragInput = input
  220. end
  221. end)
  222.  
  223. UserInputService.InputChanged:Connect(function(input)
  224. if input == dragInput and dragging then
  225. update(input)
  226. end
  227. end)
  228.  
  229. end
  230. coroutine.resume(coroutine.create(SCRIPT_NLHM69_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement