DingDong0407

ESP

May 4th, 2020
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 KB | None | 0 0
  1. -- LimeX --
  2. local toggleKey = "z"
  3.  
  4. local crashy = true -- CHANGE THIS TO TRUE IF IT CRASHES THIS GAME
  5.  
  6. local on = false
  7.  
  8. if game.CoreGui:FindFirstChild('ESP') then
  9.  
  10. game.CoreGui.ESP:Destroy()
  11.  
  12. elseif game.CoreGui:FindFirstChild('ESP') then
  13.  
  14. game.CoreGui.ESP:Destroy()
  15.  
  16. end
  17.  
  18.  
  19.  
  20. function doit(hey)
  21.  
  22. local t1 = Instance.new('SurfaceGui',hey)
  23.  
  24. t1.AlwaysOnTop = true
  25.  
  26. local t1g = Instance.new('Frame',t1)
  27.  
  28. t1g.Size = UDim2.new(1,0,1,0)
  29.  
  30. t1g.BackgroundColor3 = t1.Parent.BrickColor.Color
  31.  
  32. local t2 = Instance.new('SurfaceGui',hey)
  33.  
  34. t2.AlwaysOnTop = true
  35.  
  36. t2.Face = Enum.NormalId.Right
  37.  
  38. local t2g = Instance.new('Frame',t2)
  39.  
  40. t2g.Size = UDim2.new(1,0,1,0)
  41.  
  42. t2g.BackgroundColor3 = t2.Parent.BrickColor.Color
  43.  
  44. local t3 = Instance.new('SurfaceGui',hey)
  45.  
  46. t3.AlwaysOnTop = true
  47.  
  48. t3.Face = Enum.NormalId.Left
  49.  
  50. local t3g = Instance.new('Frame',t3)
  51.  
  52. t3g.Size = UDim2.new(1,0,1,0)
  53.  
  54. t3g.BackgroundColor3 = t3.Parent.BrickColor.Color
  55.  
  56. local t4 = Instance.new('SurfaceGui',hey)
  57.  
  58. t4.AlwaysOnTop = true
  59.  
  60. t4.Face = Enum.NormalId.Back
  61.  
  62. local t4g = Instance.new('Frame',t4)
  63.  
  64. t4g.Size = UDim2.new(1,0,1,0)
  65.  
  66. t4g.BackgroundColor3 = t4.Parent.BrickColor.Color
  67.  
  68. local t5 = Instance.new('SurfaceGui',hey)
  69.  
  70. t5.AlwaysOnTop = true
  71.  
  72. t5.Face = Enum.NormalId.Top
  73.  
  74. local t5g = Instance.new('Frame',t5)
  75.  
  76. t5g.Size = UDim2.new(1,0,1,0)
  77.  
  78. t5g.BackgroundColor3 = t5.Parent.BrickColor.Color
  79.  
  80. local t6 = Instance.new('SurfaceGui',hey)
  81.  
  82. t6.AlwaysOnTop = true
  83.  
  84. t6.Face = Enum.NormalId.Bottom
  85.  
  86. local t6g = Instance.new('Frame',t6)
  87.  
  88. t6g.Size = UDim2.new(1,0,1,0)
  89.  
  90. t6g.BackgroundColor3 = t6.Parent.BrickColor.Color
  91.  
  92. end
  93.  
  94. function undo(chr)
  95.  
  96. for i,v in pairs(chr:GetChildren()) do
  97.  
  98. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  99.  
  100. for a,c in pairs(v:GetChildren()) do
  101.  
  102. if c.ClassName == "SurfaceGui" then
  103.  
  104. c:Destroy()
  105.  
  106. end
  107.  
  108. if c.ClassName == "BillboardGui" and c.Name == "thingyye" then
  109.  
  110. c:Destroy()
  111.  
  112. end
  113.  
  114. end
  115.  
  116. end
  117.  
  118. end
  119.  
  120. end
  121.  
  122.  
  123.  
  124. local gui = Instance.new('ScreenGui')
  125.  
  126. if crashy == false then
  127.  
  128. gui.Parent = game.CoreGui
  129.  
  130. else
  131.  
  132. gui.Parent = game.CoreGui
  133.  
  134. end
  135.  
  136. gui.Name = "ESP"
  137.  
  138. gui.ResetOnSpawn = false
  139.  
  140. local frame = Instance.new('Frame',gui)
  141.  
  142. frame.Size = UDim2.new(0.2,0,0.3,0)
  143.  
  144. frame.Position = UDim2.new(0,0,0.9,0)
  145.  
  146. frame.BackgroundTransparency = 0.5
  147.  
  148. frame.BackgroundColor3 = Color3.fromRGB(131,182,239)
  149.  
  150. frame.BorderSizePixel = 4
  151.  
  152. frame.BorderColor3 = Color3.fromRGB(66,134,244)
  153.  
  154. frame.Active = true
  155.  
  156. frame.Draggable = true
  157.  
  158. local txt = Instance.new('TextLabel',frame)
  159.  
  160. txt.Text = "Mustardfoot's ESP Gui"
  161.  
  162. txt.TextColor3 = Color3.fromRGB(255,255,255)
  163.  
  164. txt.Size = UDim2.new(1,0,0.3,0)
  165.  
  166. txt.TextScaled = true
  167.  
  168. txt.BackgroundTransparency = 1
  169.  
  170. local but = Instance.new('TextButton',frame)
  171.  
  172. but.Text = "ESP On"
  173.  
  174. but.TextColor3 = Color3.fromRGB(255,255,255)
  175.  
  176. but.Size = UDim2.new(0.7,0,0.3,0)
  177.  
  178. but.Position = UDim2.new(0.15,0,0.5,0)
  179.  
  180. but.BorderSizePixel = 0
  181.  
  182. but.TextScaled = true
  183.  
  184. but.BackgroundColor3 = Color3.fromRGB(66,134,244)
  185.  
  186. but.BackgroundTransparency = 0.4
  187.  
  188. for i,v in pairs(game.Players:GetChildren()) do
  189.  
  190. if v.Character ~= nil then
  191.  
  192. undo(v.Character)
  193.  
  194. end
  195.  
  196. end
  197.  
  198.  
  199.  
  200. but.MouseButton1Down:connect(function()
  201.  
  202. if but.Text == "ESP On" then
  203.  
  204. but.Text = "ESP Off"
  205.  
  206. on = true
  207.  
  208. for i,v in pairs(game.Players:GetChildren()) do
  209.  
  210. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  211.  
  212. if v.Name ~= game.Players.LocalPlayer.Name then
  213.  
  214. if v.Character:FindFirstChild('Head') then
  215.  
  216. local bill = Instance.new('BillboardGui',v.Character.Head)
  217.  
  218. bill.Name = "thingyye"
  219.  
  220. bill.AlwaysOnTop = true
  221.  
  222. bill.Size = UDim2.new(2,1,2)
  223.  
  224. bill.Adornee = v.Character.Head
  225.  
  226. local txt = Instance.new('TextLabel',bill)
  227.  
  228. txt.Text = v.Name
  229.  
  230. txt.BackgroundTransparency = 1
  231.  
  232. txt.Size = UDim2.new(1,0,1,0)
  233.  
  234. txt.TextColor3 = v.TeamColor.Color
  235.  
  236. end
  237.  
  238. for a,c in pairs(v.Character:GetChildren()) do
  239.  
  240. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  241.  
  242. doit(c)
  243.  
  244. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  245.  
  246. doit(c)
  247.  
  248. end
  249.  
  250. end
  251.  
  252. end
  253.  
  254. end
  255.  
  256. end
  257.  
  258. wait()
  259.  
  260. undo(game.Players.LocalPlayer.Character)
  261.  
  262. else
  263.  
  264. but.Text = "ESP On"
  265.  
  266. on = false
  267.  
  268. for i,v in pairs(game.Players:GetChildren()) do
  269.  
  270. if v.Name ~= game.Players.LocalPlayer.Name then
  271.  
  272. undo(v.Character)
  273.  
  274. end
  275.  
  276. end
  277.  
  278. end
  279.  
  280. end)
  281.  
  282.  
  283.  
  284. for i,v in pairs(game.Players:GetChildren()) do
  285.  
  286. v.CharacterAdded:connect(function()
  287.  
  288. if v.Name ~= game.Players.LocalPlayer.Name then
  289.  
  290. v.Character:WaitForChild('Head')
  291.  
  292. wait(1)
  293.  
  294. if on == true then
  295.  
  296. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  297.  
  298. if v.Character:FindFirstChild('Head') then
  299.  
  300. local bill = Instance.new('BillboardGui',v.Character.Head)
  301.  
  302. bill.Name = "thingyye"
  303.  
  304. bill.AlwaysOnTop = true
  305.  
  306. bill.Size = UDim2.new(2,1,2)
  307.  
  308. bill.Adornee = v.Character.Head
  309.  
  310. local txt = Instance.new('TextLabel',bill)
  311.  
  312. txt.Text = v.Name
  313.  
  314. txt.BackgroundTransparency = 1
  315.  
  316. txt.Size = UDim2.new(1,0,1,0)
  317.  
  318. txt.TextColor3 = v.TeamColor.Color
  319.  
  320. end
  321.  
  322. for a,c in pairs(v.Character:GetChildren()) do
  323.  
  324. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  325.  
  326. doit(c)
  327.  
  328. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  329.  
  330. doit(c)
  331.  
  332. end
  333.  
  334. end
  335.  
  336. end
  337.  
  338. end
  339.  
  340. end
  341.  
  342. end)
  343.  
  344. end
  345.  
  346.  
  347.  
  348. game.Players.PlayerAdded:connect(function(v)
  349.  
  350. v.CharacterAdded:connect(function()
  351.  
  352. if v.Name ~= game.Players.LocalPlayer.Name then
  353.  
  354. v.Character:WaitForChild('Head')
  355.  
  356. wait(1)
  357.  
  358. if on == true then
  359.  
  360. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  361.  
  362. if v.Character:FindFirstChild('Head') then
  363.  
  364. local bill = Instance.new('BillboardGui',v.Character.Head)
  365.  
  366. bill.Name = "thingyye"
  367.  
  368. bill.AlwaysOnTop = true
  369.  
  370. bill.Size = UDim2.new(2,1,2)
  371.  
  372. bill.Adornee = v.Character.Head
  373.  
  374. local txt = Instance.new('TextLabel',bill)
  375.  
  376. txt.Text = v.Name
  377.  
  378. txt.BackgroundTransparency = 1
  379.  
  380. txt.Size = UDim2.new(1,0,1,0)
  381.  
  382. txt.TextColor3 = v.TeamColor.Color
  383.  
  384. end
  385.  
  386. for a,c in pairs(v.Character:GetChildren()) do
  387.  
  388. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  389.  
  390. doit(c)
  391.  
  392. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  393.  
  394. doit(c)
  395.  
  396. end
  397.  
  398. end
  399.  
  400. end
  401.  
  402. end
  403.  
  404. end
  405.  
  406. end)
  407.  
  408. end)
  409.  
  410.  
  411.  
  412. gui.Enabled = true
  413.  
  414.  
  415.  
  416. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(input)
  417.  
  418. if input == toggleKey then
  419.  
  420. if gui.Enabled == true then
  421.  
  422. gui.Enabled = false
  423.  
  424. else
  425.  
  426. gui.Enabled = true
  427.  
  428. end
  429.  
  430. end
  431.  
  432. end)
Add Comment
Please, Sign In to add comment