Upscalefanatic3

Custom full body highlight ESP Script

Jan 26th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. wait(2)
  2. local plrs = game.Players:GetChildren()
  3. function espstart()
  4. for i=1,#plrs do
  5. local plr = plrs[i]
  6. local player = plr.Name
  7. local chr = game.Workspace[player]
  8. local bodyparts = {
  9. [1]=chr.Torso,
  10. [2]=chr.Head,
  11. [3]=chr["Right Arm"],
  12. [4]=chr["Left Arm"],
  13. [5]=chr["Right Leg"],
  14. [6]=chr["Left Leg"]
  15. }
  16. for i,v in pairs(bodyparts) do
  17. local esp = Instance.new("SurfaceGui", v)
  18. esp.AlwaysOnTop = true
  19. esp.Active = true
  20. local espb = Instance.new("SurfaceGui", v)
  21. espb.AlwaysOnTop = true
  22. espb.Active = true
  23. espb.Face = "Back"
  24. local espl = Instance.new("SurfaceGui", v)
  25. espl.AlwaysOnTop = true
  26. espl.Active = true
  27. espl.Face = "Left"
  28. local espr = Instance.new("SurfaceGui", v)
  29. espr.AlwaysOnTop = true
  30. espr.Active = true
  31. espr.Face = "Right"
  32. local espt = Instance.new("SurfaceGui", v)
  33. espt.AlwaysOnTop = true
  34. espt.Active = true
  35. espt.Face = "Top"
  36. local espbo = Instance.new("SurfaceGui", v)
  37. espbo.AlwaysOnTop = true
  38. espbo.Active = true
  39. espbo.Face = "Bottom"
  40. local Aesp = Instance.new("Frame", esp)
  41. Aesp.Active = true
  42. Aesp.BackgroundColor3 = Color3.new(0,255,128)
  43. Aesp.Size = UDim2.new(1,0,1,0)
  44. local Aespb = Instance.new("Frame", espb)
  45. Aespb.Active = true
  46. Aespb.BackgroundColor3 = Color3.new(0,255,128)
  47. Aespb.Size = UDim2.new(1,0,1,0)
  48. local Aespl = Instance.new("Frame", espl)
  49. Aespl.Active = true
  50. Aespl.BackgroundColor3 = Color3.new(0,255,128)
  51. Aespl.Size = UDim2.new(1,0,1,0)
  52. local Aespr = Instance.new("Frame", espr)
  53. Aespr.Active = true
  54. Aespr.BackgroundColor3 = Color3.new(0,255,128)
  55. Aespr.Size = UDim2.new(1,0,1,0)
  56. local Aespt = Instance.new("Frame", espt)
  57. Aespt.Active = true
  58. Aespt.BackgroundColor3 = Color3.new(0,255,128)
  59. Aespt.Size = UDim2.new(1,0,1,0)
  60. local Aespbo = Instance.new("Frame", espbo)
  61. Aespbo.Active = true
  62. Aespbo.BackgroundColor3 = Color3.new(0,255,128)
  63. Aespbo.Size = UDim2.new(1,0,1,0)
  64. Aesp.BorderSizePixel = 0
  65. Aespb.BorderSizePixel = 0
  66. Aespbo.BorderSizePixel = 0
  67. Aespl.BorderSizePixel = 0
  68. Aespr.BorderSizePixel = 0
  69. Aespt.BorderSizePixel = 0
  70. end
  71. end
  72. end
  73.  
  74. function join(plr)
  75. print(plr.Name .. " has Joined!")
  76. game.Workspace:WaitForChild(plr.Name)
  77. local player = plr.Name
  78. local chr = game.Workspace[player]
  79. local bodyparts = {
  80. [1]=chr.Torso,
  81. [2]=chr.Head,
  82. [3]=chr["Right Arm"],
  83. [4]=chr["Left Arm"],
  84. [5]=chr["Right Leg"],
  85. [6]=chr["Left Leg"]
  86. }
  87. for i,v in pairs(bodyparts) do
  88. local esp = Instance.new("SurfaceGui", v)
  89. esp.AlwaysOnTop = true
  90. esp.Active = true
  91. esp.Name = "Front"
  92. local espb = Instance.new("SurfaceGui", v)
  93. espb.AlwaysOnTop = true
  94. espb.Active = true
  95. espb.Face = "Back"
  96. espb.Name = "Back"
  97. local espl = Instance.new("SurfaceGui", v)
  98. espl.AlwaysOnTop = true
  99. espl.Active = true
  100. espl.Face = "Left"
  101. espl.Name = "Left"
  102. local espr = Instance.new("SurfaceGui", v)
  103. espr.AlwaysOnTop = true
  104. espr.Active = true
  105. espr.Face = "Right"
  106. espr.Name = "Right"
  107. local espt = Instance.new("SurfaceGui", v)
  108. espt.AlwaysOnTop = true
  109. espt.Active = true
  110. espt.Face = "Top"
  111. espt.Name = "Top"
  112. local espbo = Instance.new("SurfaceGui", v)
  113. espbo.AlwaysOnTop = true
  114. espbo.Active = true
  115. espbo.Face = "Bottom"
  116. espbo.Name = "Bottom"
  117. local Aesp = Instance.new("Frame", esp)
  118. Aesp.Active = true
  119. Aesp.BackgroundColor3 = Color3.new(0,255,128)
  120. Aesp.Size = UDim2.new(1,0,1,0)
  121. local Aespb = Instance.new("Frame", espb)
  122. Aespb.Active = true
  123. Aespb.BackgroundColor3 = Color3.new(0,255,128)
  124. Aespb.Size = UDim2.new(1,0,1,0)
  125. local Aespl = Instance.new("Frame", espl)
  126. Aespl.Active = true
  127. Aespl.BackgroundColor3 = Color3.new(0,255,128)
  128. Aespl.Size = UDim2.new(1,0,1,0)
  129. local Aespr = Instance.new("Frame", espr)
  130. Aespr.Active = true
  131. Aespr.BackgroundColor3 = Color3.new(0,255,128)
  132. Aespr.Size = UDim2.new(1,0,1,0)
  133. local Aespt = Instance.new("Frame", espt)
  134. Aespt.Active = true
  135. Aespt.BackgroundColor3 = Color3.new(0,255,128)
  136. Aespt.Size = UDim2.new(1,0,1,0)
  137. local Aespbo = Instance.new("Frame", espbo)
  138. Aespbo.Active = true
  139. Aespbo.BackgroundColor3 = Color3.new(0,255,128)
  140. Aespbo.Size = UDim2.new(1,0,1,0)
  141. Aesp.BorderSizePixel = 0
  142. Aespb.BorderSizePixel = 0
  143. Aespbo.BorderSizePixel = 0
  144. Aespl.BorderSizePixel = 0
  145. Aespr.BorderSizePixel = 0
  146. Aespt.BorderSizePixel = 0
  147. end
  148. end
  149.  
  150. espstart()
  151. game.Players.PlayerAdded:connect(join)
  152.  
  153. while true do
  154. wait(1)
  155. local players = game.Players:GetChildren()
  156. for i =1, #players do
  157. name = players[i].Name
  158. game.Workspace:WaitForChild(name)
  159. local game1 = game.Workspace[name]
  160. game1:WaitForChild("Head")
  161. chr = game.Workspace[name]
  162. if game.Workspace[name].Head:FindFirstChild("Top", true) then
  163. fillinlmao = 1
  164. else
  165. local bodyparts = {
  166. [1]=chr.Torso,
  167. [2]=chr.Head,
  168. [3]=chr["Right Arm"],
  169. [4]=chr["Left Arm"],
  170. [5]=chr["Right Leg"],
  171. [6]=chr["Left Leg"]
  172. }
  173. for i,v in pairs(bodyparts) do
  174. local esp = Instance.new("SurfaceGui", v)
  175. esp.AlwaysOnTop = true
  176. esp.Active = true
  177. esp.Name = "Front"
  178. local espb = Instance.new("SurfaceGui", v)
  179. espb.AlwaysOnTop = true
  180. espb.Active = true
  181. espb.Face = "Back"
  182. espb.Name = "Back"
  183. local espl = Instance.new("SurfaceGui", v)
  184. espl.AlwaysOnTop = true
  185. espl.Active = true
  186. espl.Face = "Left"
  187. espl.Name = "Left"
  188. local espr = Instance.new("SurfaceGui", v)
  189. espr.AlwaysOnTop = true
  190. espr.Active = true
  191. espr.Face = "Right"
  192. espr.Name = "Right"
  193. local espt = Instance.new("SurfaceGui", v)
  194. espt.AlwaysOnTop = true
  195. espt.Active = true
  196. espt.Face = "Top"
  197. espt.Name = "Top"
  198. local espbo = Instance.new("SurfaceGui", v)
  199. espbo.AlwaysOnTop = true
  200. espbo.Active = true
  201. espbo.Face = "Bottom"
  202. espbo.Name = "Bottom"
  203. local Aesp = Instance.new("Frame", esp)
  204. Aesp.Active = true
  205. Aesp.BackgroundColor3 = Color3.new(0,255,128)
  206. Aesp.Size = UDim2.new(1,0,1,0)
  207. local Aespb = Instance.new("Frame", espb)
  208. Aespb.Active = true
  209. Aespb.BackgroundColor3 = Color3.new(0,255,128)
  210. Aespb.Size = UDim2.new(1,0,1,0)
  211. local Aespl = Instance.new("Frame", espl)
  212. Aespl.Active = true
  213. Aespl.BackgroundColor3 = Color3.new(0,255,128)
  214. Aespl.Size = UDim2.new(1,0,1,0)
  215. local Aespr = Instance.new("Frame", espr)
  216. Aespr.Active = true
  217. Aespr.BackgroundColor3 = Color3.new(0,255,128)
  218. Aespr.Size = UDim2.new(1,0,1,0)
  219. local Aespt = Instance.new("Frame", espt)
  220. Aespt.Active = true
  221. Aespt.BackgroundColor3 = Color3.new(0,255,128)
  222. Aespt.Size = UDim2.new(1,0,1,0)
  223. local Aespbo = Instance.new("Frame", espbo)
  224. Aespbo.Active = true
  225. Aespbo.BackgroundColor3 = Color3.new(0,255,128)
  226. Aespbo.Size = UDim2.new(1,0,1,0)
  227. Aesp.BorderSizePixel = 0
  228. Aespb.BorderSizePixel = 0
  229. Aespbo.BorderSizePixel = 0
  230. Aespl.BorderSizePixel = 0
  231. Aespr.BorderSizePixel = 0
  232. Aespt.BorderSizePixel = 0
  233. end
  234. end
  235. end
  236. end
Add Comment
Please, Sign In to add comment