Flaviux

Untitled

Sep 12th, 2023
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. crashy = false -- 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 but = Instance.new('TextButton',frame)
  79. but.Text = "ESP On"
  80. but.TextColor3 = Color3.fromRGB(255,255,255)
  81. but.Size = UDim2.new(0.7,0,0.3,0)
  82. but.Position = UDim2.new(0.15,0,0.5,0)
  83. but.BorderSizePixel = 0
  84. but.TextScaled = true
  85. but.BackgroundColor3 = Color3.fromRGB(66,134,244)
  86. but.BackgroundTransparency = 0.4
  87. for i,v in pairs(game.Players:GetChildren()) do
  88. if v.Character ~= nil then
  89. undo(v.Character)
  90. end
  91. end
  92.  
  93. but.MouseButton1Down:connect(function()
  94. if but.Text == "ESP On" then
  95. but.Text = "ESP Off"
  96. on = true
  97. for i,v in pairs(game.Players:GetChildren()) do
  98. local cour = coroutine.wrap(function()
  99. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  100. if v.Character:FindFirstChild('Head') then
  101. local bill = Instance.new('BillboardGui',v.Character.Head)
  102. bill.Name = "thingyye"
  103. bill.AlwaysOnTop = true
  104. bill.Size = UDim2.new(2,1,2)
  105. bill.Adornee = v.Character.Head
  106. local txt = Instance.new('TextLabel',bill)
  107. txt.Text = v.Name
  108. txt.BackgroundTransparency = 1
  109. txt.Size = UDim2.new(1,0,1,0)
  110. txt.TextColor3 = v.TeamColor.Color
  111. end
  112. for a,c in pairs(v.Character:GetChildren()) do
  113. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  114. doit(c)
  115. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  116. doit(c)
  117. end
  118. end
  119. end
  120. end)
  121. cour()
  122. end
  123. else
  124. but.Text = "ESP On"
  125. on = false
  126. for i,v in pairs(game.Players:GetChildren()) do
  127. undo(v.Character)
  128. end
  129. end
  130. end)
  131.  
  132. for i,v in pairs(game.Players:GetChildren()) do
  133. v.CharacterAdded:connect(function()
  134. v.Character:WaitForChild('Head')
  135. wait(1)
  136. if on == true then
  137. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  138. local cour = coroutine.wrap(function()
  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. cour()
  160. end
  161. end
  162. end)
  163. end
  164.  
  165. game.Players.PlayerAdded:connect(function(v)
  166. v.CharacterAdded:connect(function()
  167. v.Character:WaitForChild('Head')
  168. wait(1)
  169. if on == true then
  170. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  171. local cour = coroutine.wrap(function()
  172. if v.Character:FindFirstChild('Head') then
  173. local bill = Instance.new('BillboardGui',v.Character.Head)
  174. bill.Name = "thingyye"
  175. bill.AlwaysOnTop = true
  176. bill.Size = UDim2.new(2,1,2)
  177. bill.Adornee = v.Character.Head
  178. local txt = Instance.new('TextLabel',bill)
  179. txt.Text = v.Name
  180. txt.BackgroundTransparency = 1
  181. txt.Size = UDim2.new(1,0,1,0)
  182. txt.TextColor3 = v.TeamColor.Color
  183. end
  184. for a,c in pairs(v.Character:GetChildren()) do
  185. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  186. doit(c)
  187. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  188. doit(c)
  189. end
  190. end
  191. end)
  192. cour()
  193. end
  194. end
  195. end)
  196. end)
Add Comment
Please, Sign In to add comment