Advertisement
ImRealLenny

Universal ESP - Roblox

Dec 31st, 2021 (edited)
2,328
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.66 KB | None | 1 0
  1. -- Instances:
  2.  
  3. local UniversalESP = Instance.new("ScreenGui")
  4. local Body = Instance.new("Frame")
  5. local Body_2 = Instance.new("ImageLabel")
  6. local Title = Instance.new("TextLabel")
  7. local Generate = Instance.new("TextButton")
  8. local RemoveButton = Instance.new("TextButton")
  9. local Status = Instance.new("ImageLabel")
  10. local Esp = Instance.new("Folder")
  11. local Esp_2 = Instance.new("SurfaceGui")
  12. local Surface = Instance.new("Frame")
  13. local Esp_3 = Instance.new("SurfaceGui")
  14. local Surface_2 = Instance.new("Frame")
  15. local Esp_4 = Instance.new("SurfaceGui")
  16. local Surface_3 = Instance.new("Frame")
  17. local Esp_5 = Instance.new("SurfaceGui")
  18. local Surface_4 = Instance.new("Frame")
  19. local Esp_6 = Instance.new("SurfaceGui")
  20. local Surface_5 = Instance.new("Frame")
  21. local Esp_7 = Instance.new("SurfaceGui")
  22. local Surface_6 = Instance.new("Frame")
  23. local Indicator = Instance.new("Folder")
  24. local EspParName = Instance.new("BillboardGui")
  25. local NameEsp = Instance.new("TextLabel")
  26.  
  27. --Properties:
  28.  
  29. UniversalESP.Name = "UniversalESP"
  30. UniversalESP.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  31. UniversalESP.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  32.  
  33. Body.Name = "Body"
  34. Body.Parent = UniversalESP
  35. Body.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. Body.BackgroundTransparency = 1.000
  37. Body.Position = UDim2.new(0.34562844, 0, 0.252747238, 0)
  38. Body.Size = UDim2.new(0, 225, 0, 225)
  39. Body.ZIndex = 10
  40.  
  41. Body_2.Name = "Body"
  42. Body_2.Parent = Body
  43. Body_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. Body_2.BackgroundTransparency = 1.000
  45. Body_2.Position = UDim2.new(0.00807607174, 0, -0.00308729336, 0)
  46. Body_2.Size = UDim2.new(0.978590608, 0, 1.00275147, 0)
  47. Body_2.ZIndex = 10
  48. Body_2.Image = "http://www.roblox.com/asset/?id=8411425774"
  49. Body_2.ImageColor3 = Color3.fromRGB(52, 52, 52)
  50.  
  51. Title.Name = "Title"
  52. Title.Parent = Body
  53. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. Title.BackgroundTransparency = 1.000
  55. Title.Position = UDim2.new(0.0933333337, 0, 0.139365107, 0)
  56. Title.Size = UDim2.new(0, 180, 0, 33)
  57. Title.ZIndex = 11
  58. Title.Font = Enum.Font.SourceSans
  59. Title.Text = "@ZGamerPoland's Universal ESP"
  60. Title.TextColor3 = Color3.fromRGB(255, 0, 0)
  61. Title.TextScaled = true
  62. Title.TextSize = 14.000
  63. Title.TextStrokeColor3 = Color3.fromRGB(103, 103, 103)
  64. Title.TextTransparency = 0.250
  65. Title.TextWrapped = true
  66.  
  67. Generate.Name = "Generate"
  68. Generate.Parent = Body
  69. Generate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. Generate.BackgroundTransparency = 1.000
  71. Generate.Position = UDim2.new(0.133333325, 0, 0.443888903, 0)
  72. Generate.Size = UDim2.new(0, 97, 0, 24)
  73. Generate.ZIndex = 11
  74. Generate.Font = Enum.Font.SourceSans
  75. Generate.Text = "Generate ESP"
  76. Generate.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. Generate.TextSize = 14.000
  78.  
  79. RemoveButton.Name = "RemoveButton"
  80. RemoveButton.Parent = Body
  81. RemoveButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. RemoveButton.BackgroundTransparency = 1.000
  83. RemoveButton.Position = UDim2.new(0.13333334, 0, 0.741666675, 0)
  84. RemoveButton.Size = UDim2.new(0, 97, 0, 29)
  85. RemoveButton.ZIndex = 11
  86. RemoveButton.Font = Enum.Font.SourceSans
  87. RemoveButton.Text = "Remove ESP (Clear eventual bugs)"
  88. RemoveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. RemoveButton.TextScaled = true
  90. RemoveButton.TextSize = 14.000
  91. RemoveButton.TextWrapped = true
  92.  
  93. Status.Name = "Status"
  94. Status.Parent = Body
  95. Status.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. Status.BackgroundTransparency = 1.000
  97. Status.Position = UDim2.new(0.648888886, 0, 0.582222223, 0)
  98. Status.Size = UDim2.new(0, 29, 0, 29)
  99. Status.ZIndex = 11
  100. Status.Image = "http://www.roblox.com/asset/?id=660373145"
  101. Status.ImageColor3 = Color3.fromRGB(255, 0, 0)
  102. Status.ImageTransparency = 0.500
  103.  
  104. Esp.Name = "Esp"
  105. Esp.Parent = Body
  106.  
  107. Esp_2.Name = "Esp"
  108. Esp_2.Parent = Esp
  109. Esp_2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  110. Esp_2.AlwaysOnTop = true
  111. Esp_2.LightInfluence = 1.000
  112.  
  113. Surface.Name = "Surface"
  114. Surface.Parent = Esp_2
  115. Surface.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  116. Surface.BackgroundTransparency = 0.500
  117. Surface.Size = UDim2.new(1, 0, 1, 0)
  118.  
  119. Esp_3.Name = "Esp"
  120. Esp_3.Parent = Esp
  121. Esp_3.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  122. Esp_3.AlwaysOnTop = true
  123. Esp_3.Face = Enum.NormalId.Back
  124. Esp_3.LightInfluence = 1.000
  125.  
  126. Surface_2.Name = "Surface"
  127. Surface_2.Parent = Esp_3
  128. Surface_2.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  129. Surface_2.BackgroundTransparency = 0.500
  130. Surface_2.Size = UDim2.new(1, 0, 1, 0)
  131.  
  132. Esp_4.Name = "Esp"
  133. Esp_4.Parent = Esp
  134. Esp_4.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  135. Esp_4.AlwaysOnTop = true
  136. Esp_4.Face = Enum.NormalId.Left
  137. Esp_4.LightInfluence = 1.000
  138.  
  139. Surface_3.Name = "Surface"
  140. Surface_3.Parent = Esp_4
  141. Surface_3.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  142. Surface_3.BackgroundTransparency = 0.500
  143. Surface_3.Size = UDim2.new(1, 0, 1, 0)
  144.  
  145. Esp_5.Name = "Esp"
  146. Esp_5.Parent = Esp
  147. Esp_5.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  148. Esp_5.AlwaysOnTop = true
  149. Esp_5.Face = Enum.NormalId.Right
  150. Esp_5.LightInfluence = 1.000
  151.  
  152. Surface_4.Name = "Surface"
  153. Surface_4.Parent = Esp_5
  154. Surface_4.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  155. Surface_4.BackgroundTransparency = 0.500
  156. Surface_4.Size = UDim2.new(1, 0, 1, 0)
  157.  
  158. Esp_6.Name = "Esp"
  159. Esp_6.Parent = Esp
  160. Esp_6.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  161. Esp_6.AlwaysOnTop = true
  162. Esp_6.Face = Enum.NormalId.Top
  163. Esp_6.LightInfluence = 1.000
  164.  
  165. Surface_5.Name = "Surface"
  166. Surface_5.Parent = Esp_6
  167. Surface_5.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  168. Surface_5.BackgroundTransparency = 0.500
  169. Surface_5.Size = UDim2.new(1, 0, 1, 0)
  170.  
  171. Esp_7.Name = "Esp"
  172. Esp_7.Parent = Esp
  173. Esp_7.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  174. Esp_7.AlwaysOnTop = true
  175. Esp_7.Face = Enum.NormalId.Bottom
  176. Esp_7.LightInfluence = 1.000
  177.  
  178. Surface_6.Name = "Surface"
  179. Surface_6.Parent = Esp_7
  180. Surface_6.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  181. Surface_6.BackgroundTransparency = 0.500
  182. Surface_6.Size = UDim2.new(1, 0, 1, 0)
  183.  
  184. Indicator.Name = "Indicator"
  185. Indicator.Parent = Body
  186.  
  187. EspParName.Name = "EspParName"
  188. EspParName.Parent = Indicator
  189. EspParName.Enabled = false
  190. EspParName.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  191. EspParName.Active = true
  192. EspParName.AlwaysOnTop = true
  193. EspParName.LightInfluence = 1.000
  194. EspParName.MaxDistance = 50.000
  195. EspParName.Size = UDim2.new(0, 200, 0, 50)
  196. EspParName.StudsOffset = Vector3.new(0, 3, 0)
  197.  
  198. NameEsp.Name = "NameEsp"
  199. NameEsp.Parent = EspParName
  200. NameEsp.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. NameEsp.BackgroundTransparency = 1.000
  202. NameEsp.BorderColor3 = Color3.fromRGB(27, 42, 53)
  203. NameEsp.Size = UDim2.new(0, 200, 0, 50)
  204. NameEsp.Font = Enum.Font.SourceSans
  205. NameEsp.Text = "NaN"
  206. NameEsp.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. NameEsp.TextSize = 20.000
  208. NameEsp.TextStrokeTransparency = 0.000
  209.  
  210. -- Scripts:
  211.  
  212. local function ROOOSY_fake_script() -- Title.LocalScript
  213. local script = Instance.new('LocalScript', Title)
  214.  
  215. local service = game:GetService('TweenService')
  216.  
  217. local part = script.Parent
  218. local tweenInf = TweenInfo.new(2.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, 1, true)
  219.  
  220. local tData = {
  221.  
  222. TextColor3 = Color3.new(0, 0, 1)
  223.  
  224. }
  225.  
  226. local tween = service:Create(part, tweenInf, tData)
  227.  
  228. local function loop()
  229. tween:Play()
  230. wait(5)
  231. loop()
  232. end
  233.  
  234. loop()
  235. end
  236. coroutine.wrap(ROOOSY_fake_script)()
  237. local function YBTJ_fake_script() -- Generate.GenerateEsp
  238. local script = Instance.new('LocalScript', Generate)
  239.  
  240. local plr = game:GetService('Players').LocalPlayer
  241. local activeEsp = {}
  242. wait()
  243. local esp = script.Parent.Parent.Esp:GetChildren()
  244.  
  245. local function loopedEsp()
  246. local players = game.Players:GetChildren()
  247. for i = 1, #players do
  248. if players[i].Name ~= plr.Name then
  249. if not players[i].Character:FindFirstChild('EspPart') then
  250. local hrp = players[i].Character:WaitForChild('HumanoidRootPart')
  251. local target = players[i].Character
  252. local espPart = Instance.new('Part')
  253. local plr = players[i]
  254. espPart.Size = target.HumanoidRootPart.Size
  255. espPart.Parent = target
  256. espPart.Transparency = 1
  257. espPart.CanCollide = false
  258. espPart.Name = 'EspPart'
  259. local weld = Instance.new('Weld')
  260. weld.Part0 = espPart
  261. weld.Part1 = target.HumanoidRootPart
  262. weld.Parent = espPart
  263. local indicator = script.Parent.Parent.Indicator.EspParName:Clone()
  264. indicator.Parent = espPart
  265. indicator.Enabled = true
  266. indicator.NameEsp.Text = espPart.Parent.Name
  267. script.Parent.Parent.Status.ImageColor3 = Color3.new(0, 1, 0)
  268. table.insert(activeEsp, espPart)
  269. print('Player(s) has been found and ESP is enabled')
  270. for j = 1, #esp do
  271. wait(0.1)
  272. local espClone = esp[j]:Clone()
  273. espClone.Parent = espPart
  274. j += 1
  275. end
  276. end
  277. end
  278. end
  279. end
  280.  
  281. script.Parent.Parent.RemoveButton.MouseButton1Click:Connect(function()
  282. script.Parent.Parent.Status.ImageColor3 = Color3.new(1, 0, 0)
  283. print('ESP has been disabled')
  284. for i = 1, #activeEsp do
  285. activeEsp[i]:Destroy()
  286. end
  287. end)
  288.  
  289. script.Parent.MouseButton1Click:Connect(function()
  290. while true do
  291. loopedEsp()
  292. wait(1.25)
  293. end
  294. end)
  295. end
  296. coroutine.wrap(YBTJ_fake_script)()
  297. -- Body.TestSpace is disabled.
  298. local function YVKBBWF_fake_script() -- Body.ToggleVisibility
  299. local script = Instance.new('LocalScript', Body)
  300.  
  301. local service = game:GetService('UserInputService')
  302. local isEnabled = true
  303.  
  304. service.InputBegan:Connect(function(key)
  305. if key.KeyCode == Enum.KeyCode.LeftAlt then
  306. if isEnabled == true then
  307. isEnabled = false
  308. script.Parent.Parent.Enabled = false
  309. else
  310. isEnabled = true
  311. script.Parent.Parent.Enabled = true
  312. end
  313. end
  314. end)
  315. end
  316. coroutine.wrap(YVKBBWF_fake_script)()
  317.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement