Advertisement
RoSploitzer

RoSploitz ESP Gui

May 19th, 2019
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 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(255,0,0)
  74. frame.BorderSizePixel = 4
  75. frame.BorderColor3 = Color3.fromRGB(0,0,0)
  76. frame.Active = true
  77. frame.Draggable = true
  78. local txt = Instance.new('TextLabel',frame)
  79. txt.Text = "Rosploitz ESP Gui"
  80. txt.TextColor3 = Color3.fromRGB(0,0,0)
  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 = "
  86. Toggle"
  87. but.TextColor3 = Color3.fromRGB(255,255,255)
  88. but.Size = UDim2.new(0.7,0,0.3,0)
  89. but.Position = UDim2.new(0.15,0,0.5,0)
  90. but.BorderSizePixel = 0
  91. but.TextScaled = true
  92. but.BackgroundColor3 = Color3.fromRGB(255,0,0)
  93. but.BackgroundTransparency = 0.4
  94. for i,v in pairs(game.Players:GetChildren()) do
  95. if v.Character ~= nil then
  96. undo(v.Character)
  97. end
  98. end
  99.  
  100. but.MouseButton1Down:connect(function()
  101. if but.Text == "Toggle" then
  102. but.Text = "Toggle"
  103. on = true
  104. for i,v in pairs(game.Players:GetChildren()) do
  105. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  106. if v.Character:FindFirstChild('Head') then
  107. local bill = Instance.new('BillboardGui',v.Character.Head)
  108. bill.Name = "thingyye"
  109. bill.AlwaysOnTop = true
  110. bill.Size = UDim2.new(2,1,2)
  111. bill.Adornee = v.Character.Head
  112. local txt = Instance.new('TextLabel',bill)
  113. txt.Text = v.Name
  114. txt.BackgroundTransparency = 1
  115. txt.Size = UDim2.new(1,0,1,0)
  116. txt.TextColor3 = v.TeamColor.Color
  117. end
  118. for a,c in pairs(v.Character:GetChildren()) do
  119. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  120. doit(c)
  121. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  122. doit(c)
  123. end
  124. end
  125. end
  126. end
  127. else
  128. but.Text = "ESP On"
  129. on = false
  130. for i,v in pairs(game.Players:GetChildren()) do
  131. undo(v.Character)
  132. end
  133. end
  134. end)
  135.  
  136. for i,v in pairs(game.Players:GetChildren()) do
  137. v.CharacterAdded:connect(function()
  138. v.Character:WaitForChild('Head')
  139. wait(1)
  140. if on == true then
  141. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  142. if v.Character:FindFirstChild('Head') then
  143. local bill = Instance.new('BillboardGui',v.Character.Head)
  144. bill.Name = "thingyye"
  145. bill.AlwaysOnTop = true
  146. bill.Size = UDim2.new(2,1,2)
  147. bill.Adornee = v.Character.Head
  148. local txt = Instance.new('TextLabel',bill)
  149. txt.Text = v.Name
  150. txt.BackgroundTransparency = 1
  151. txt.Size = UDim2.new(1,0,1,0)
  152. txt.TextColor3 = v.TeamColor.Color
  153. end
  154. for a,c in pairs(v.Character:GetChildren()) do
  155. if c.ClassName == "MeshPart" and c.Transparency ~= 1 then
  156. doit(c)
  157. elseif c.ClassName == "Part" and c.Transparency ~= 1 then
  158. doit(c)
  159. end
  160. end
  161. end
  162. end
  163. end)
  164. end
  165.  
  166. game.Players.PlayerAdded:connect(function(v)
  167. v.CharacterAdded:connect(function()
  168. v.Character:WaitForChild('Head')
  169. wait(1)
  170. if on == true then
  171. if v.Character ~= game.Players.LocalPlayer.Character and v.Character.Head:FindFirstChild('ScreenGui') == nil then
  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. end
  193. end)
  194. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement