Advertisement
Guest User

Roblox ESP

a guest
Nov 20th, 2018
7,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. crashy = true -- CHANGE THIS TO TRUE IF IT CRASHES THIS GAME
  2. on = false
  3. if game.CoreGui:FindFirstChild('ESP') then
  4. game.CoreGui.ESP:Destroy()
  5. elseif game.Players.LocalPlayer.PlayerGui:FindFirstChild('ESP') then
  6. game.Players.LocalPlayer.PlayerGui.ESP:Destroy()
  7. end
  8.  
  9. function doit(hey)
  10. local t1 = Instance.new('SurfaceGui',hey)
  11. t1.AlwaysOnTop = true
  12. local t1g = Instance.new('Frame',t1)
  13. t1g.Size = UDim2.new(1,0,1,0)
  14. t1g.BackgroundColor3 = t1.Parent.BrickColor.Color
  15. local t2 = Instance.new('SurfaceGui',hey)
  16. t2.AlwaysOnTop = true
  17. t2.Face = Enum.NormalId.Right
  18. local t2g = Instance.new('Frame',t2)
  19. t2g.Size = UDim2.new(1,0,1,0)
  20. t2g.BackgroundColor3 = t2.Parent.BrickColor.Color
  21. local t3 = Instance.new('SurfaceGui',hey)
  22. t3.AlwaysOnTop = true
  23. t3.Face = Enum.NormalId.Left
  24. local t3g = Instance.new('Frame',t3)
  25. t3g.Size = UDim2.new(1,0,1,0)
  26. t3g.BackgroundColor3 = t3.Parent.BrickColor.Color
  27. local t4 = Instance.new('SurfaceGui',hey)
  28. t4.AlwaysOnTop = true
  29. t4.Face = Enum.NormalId.Back
  30. local t4g = Instance.new('Frame',t4)
  31. t4g.Size = UDim2.new(1,0,1,0)
  32. t4g.BackgroundColor3 = t4.Parent.BrickColor.Color
  33. local t5 = Instance.new('SurfaceGui',hey)
  34. t5.AlwaysOnTop = true
  35. t5.Face = Enum.NormalId.Top
  36. local t5g = Instance.new('Frame',t5)
  37. t5g.Size = UDim2.new(1,0,1,0)
  38. t5g.BackgroundColor3 = t5.Parent.BrickColor.Color
  39. local t6 = Instance.new('SurfaceGui',hey)
  40. t6.AlwaysOnTop = true
  41. t6.Face = Enum.NormalId.Bottom
  42. local t6g = Instance.new('Frame',t6)
  43. t6g.Size = UDim2.new(1,0,1,0)
  44. t6g.BackgroundColor3 = t6.Parent.BrickColor.Color
  45. end
  46. function undo(chr)
  47. for i,v in pairs(chr:GetChildren()) do
  48. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  49. for a,c in pairs(v:GetChildren()) do
  50. if c.ClassName == "SurfaceGui" then
  51. c:Destroy()
  52. end
  53. if c.ClassName == "BillboardGui" and c.Name == "thingyye" then
  54. c:Destroy()
  55. end
  56. end
  57. end
  58. end
  59. end
  60.  
  61. local gui = Instance.new('ScreenGui')
  62. if crashy == false then
  63. gui.Parent = game.CoreGui
  64. else
  65. gui.Parent = game.Players.LocalPlayer.PlayerGui
  66. end
  67. gui.Name = "ESP"
  68. gui.ResetOnSpawn = false
  69. local frame = Instance.new('Frame',gui)
  70. frame.Size = UDim2.new(0.2,0,0.3,0)
  71. frame.Position = UDim2.new(0,0,0.9,0)
  72. frame.BackgroundTransparency = 0.5
  73. frame.BackgroundColor3 = Color3.fromRGB(131,182,239)
  74. frame.BorderSizePixel = 4
  75. frame.BorderColor3 = Color3.fromRGB(66,134,244)
  76. frame.Active = true
  77. frame.Draggable = true
  78. local txt = Instance.new('TextLabel',frame)
  79. txt.Text = "ESP Gui"
  80. txt.TextColor3 = Color3.fromRGB(255,255,255)
  81. txt.Size = UDim2.new(1,0,0.3,0)
  82. txt.TextScaled = true
  83. txt.BackgroundTransparency = 1
  84. local but = Instance.new('TextButton',frame)
  85. but.Text = "ESP On"
  86. but.TextColor3 = Color3.fromRGB(255,255,255)
  87. but.Size = UDim2.new(0.7,0,0.3,0)
  88. but.Position = UDim2.new(0.15,0,0.5,0)
  89. but.BorderSizePixel = 0
  90. but.TextScaled = true
  91. but.BackgroundColor3 = Color3.fromRGB(66,134,244)
  92. but.BackgroundTransparency = 0.4
  93. for i,v in pairs(game.Players:GetChildren()) do
  94. undo(v.Character)
  95. end
  96.  
  97. but.MouseButton1Down:connect(function()
  98. if but.Text == "ESP On" then
  99. but.Text = "ESP Off"
  100. on = true
  101. for i,v in pairs(game.Players:GetChildren()) do
  102. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  103. if v.Character:FindFirstChild('Head') then
  104. local bill = Instance.new('BillboardGui',v.Character.Head)
  105. bill.Name = "thingyye"
  106. bill.AlwaysOnTop = true
  107. bill.Size = UDim2.new(2,1,2)
  108. bill.Adornee = v.Character.Head
  109. local txt = Instance.new('TextLabel',bill)
  110. txt.Text = v.Name
  111. txt.BackgroundTransparency = 1
  112. txt.Size = UDim2.new(1,0,1,0)
  113. txt.TextColor3 = v.TeamColor.Color
  114. end
  115. for a,c in pairs(v.Character:GetChildren()) do
  116. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  117. doit(c)
  118. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  119. doit(c)
  120. end
  121. end
  122. end
  123. end
  124. else
  125. but.Text = "ESP On"
  126. on = false
  127. for i,v in pairs(game.Players:GetChildren()) do
  128. undo(v.Character)
  129. end
  130. end
  131. end)
  132.  
  133. for i,v in pairs(game.Players:GetChildren()) do
  134. v.CharacterAdded:connect(function()
  135. v.Character:WaitForChild('Head')
  136. wait(1)
  137. if on == true then
  138. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  139. if v.Character:FindFirstChild('Head') then
  140. local bill = Instance.new('BillboardGui',v.Character.Head)
  141. bill.Name = "thingyye"
  142. bill.AlwaysOnTop = true
  143. bill.Size = UDim2.new(2,1,2)
  144. bill.Adornee = v.Character.Head
  145. local txt = Instance.new('TextLabel',bill)
  146. txt.Text = v.Name
  147. txt.BackgroundTransparency = 1
  148. txt.Size = UDim2.new(1,0,1,0)
  149. txt.TextColor3 = v.TeamColor.Color
  150. end
  151. for a,c in pairs(v.Character:GetChildren()) do
  152. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  153. doit(c)
  154. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  155. doit(c)
  156. end
  157. end
  158. end
  159. end
  160. end)
  161. end
  162.  
  163. game.Players.PlayerAdded:connect(function(v)
  164. v.CharacterAdded:connect(function()
  165. v.Character:WaitForChild('Head')
  166. wait(1)
  167. if on == true then
  168. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  169. if v.Character:FindFirstChild('Head') then
  170. local bill = Instance.new('BillboardGui',v.Character.Head)
  171. bill.Name = "thingyye"
  172. bill.AlwaysOnTop = true
  173. bill.Size = UDim2.new(2,1,2)
  174. bill.Adornee = v.Character.Head
  175. local txt = Instance.new('TextLabel',bill)
  176. txt.Text = v.Name
  177. txt.BackgroundTransparency = 1
  178. txt.Size = UDim2.new(1,0,1,0)
  179. txt.TextColor3 = v.TeamColor.Color
  180. end
  181. for a,c in pairs(v.Character:GetChildren()) do
  182. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  183. doit(c)
  184. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  185. doit(c)
  186. end
  187. end
  188. end
  189. end
  190. end)
  191. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement