Advertisement
Ben_Scripts343

Electric State script

Jun 5th, 2021
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1. local oops = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local title = Instance.new("TextLabel")
  4. local loot = Instance.new("TextButton")
  5. local scrap = Instance.new("TextButton")
  6. local peps = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9. local TextLabel_3 = Instance.new("TextLabel")
  10.  
  11. oops.Name = "oops"
  12. oops.Parent = game.CoreGui
  13. oops.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Main.Name = "Main"
  16. Main.Parent = oops
  17. Main.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  18. Main.BorderColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  19. Main.BorderSizePixel = 3
  20. Main.ClipsDescendants = true
  21. Main.Position = UDim2.new(0.422372222, 0, 0.440514475, 0)
  22. Main.Size = UDim2.new(0, 296, 0, 180)
  23. Main.Draggable = true
  24. Main.Active = true
  25.  
  26. title.Name = "title"
  27. title.Parent = Main
  28. title.BackgroundColor3 = Color3.new(1, 1, 1)
  29. title.BackgroundTransparency = 1
  30. title.ClipsDescendants = true
  31. title.Position = UDim2.new(0, 0, 0.0277777798, 0)
  32. title.Rotation = 6
  33. title.Size = UDim2.new(0, 296, 0, 32)
  34. title.Font = Enum.Font.PatrickHand
  35. title.Text = "Brightonx"
  36. title.TextColor3 = Color3.new(0.619608, 0.619608, 0.619608)
  37. title.TextSize = 30
  38.  
  39. loot.Name = "loot"
  40. loot.Parent = Main
  41. loot.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  42. loot.BorderSizePixel = 0
  43. loot.Position = UDim2.new(0.807432413, 0, 0.177777767, 0)
  44. loot.Size = UDim2.new(0, 38, 0, 34)
  45. loot.Font = Enum.Font.SourceSans
  46. loot.Text = ""
  47. loot.TextColor3 = Color3.new(0, 0, 0)
  48. loot.TextSize = 14
  49.  
  50. scrap.Name = "scrap"
  51. scrap.Parent = Main
  52. scrap.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  53. scrap.BorderSizePixel = 0
  54. scrap.Position = UDim2.new(0.807432413, 0, 0.466666669, 0)
  55. scrap.Size = UDim2.new(0, 38, 0, 34)
  56. scrap.Font = Enum.Font.SourceSans
  57. scrap.Text = ""
  58. scrap.TextColor3 = Color3.new(0, 0, 0)
  59. scrap.TextSize = 14
  60.  
  61. peps.Name = "peps"
  62. peps.Parent = Main
  63. peps.BackgroundColor3 = Color3.new(0.27451, 0.27451, 0.27451)
  64. peps.BorderSizePixel = 0
  65. peps.Position = UDim2.new(0.807432413, 0, 0.766666651, 0)
  66. peps.Size = UDim2.new(0, 38, 0, 34)
  67. peps.Font = Enum.Font.SourceSans
  68. peps.Text = ""
  69. peps.TextColor3 = Color3.new(0, 0, 0)
  70. peps.TextSize = 14
  71.  
  72. TextLabel.Parent = Main
  73. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  74. TextLabel.BackgroundTransparency = 1
  75. TextLabel.BorderSizePixel = 0
  76. TextLabel.Position = UDim2.new(0.0709459484, 0, 0.205555558, 0)
  77. TextLabel.Size = UDim2.new(0, 162, 0, 23)
  78. TextLabel.Font = Enum.Font.SourceSans
  79. TextLabel.Text = "Loot ESP"
  80. TextLabel.TextColor3 = Color3.new(0.619608, 0.619608, 0.619608)
  81. TextLabel.TextSize = 20
  82.  
  83. TextLabel_2.Parent = Main
  84. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  85. TextLabel_2.BackgroundTransparency = 1
  86. TextLabel_2.BorderSizePixel = 0
  87. TextLabel_2.Position = UDim2.new(0.0709459484, 0, 0.49444446, 0)
  88. TextLabel_2.Size = UDim2.new(0, 162, 0, 23)
  89. TextLabel_2.Font = Enum.Font.SourceSans
  90. TextLabel_2.Text = "Scraps ESP"
  91. TextLabel_2.TextColor3 = Color3.new(0.619608, 0.619608, 0.619608)
  92. TextLabel_2.TextSize = 20
  93.  
  94. TextLabel_3.Parent = Main
  95. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  96. TextLabel_3.BackgroundTransparency = 1
  97. TextLabel_3.BorderSizePixel = 0
  98. TextLabel_3.Position = UDim2.new(0.0709459484, 0, 0.794444442, 0)
  99. TextLabel_3.Size = UDim2.new(0, 162, 0, 23)
  100. TextLabel_3.Font = Enum.Font.SourceSans
  101. TextLabel_3.Text = "Players ESP"
  102. TextLabel_3.TextColor3 = Color3.new(0.619608, 0.619608, 0.619608)
  103. TextLabel_3.TextSize = 20
  104.  
  105. --scripts for the exploit
  106. local search = false
  107. local search2 = false
  108. local search3 = false
  109. loot.MouseButton1Click:Connect(function()
  110. if search == false then
  111. search = true
  112. loot.BackgroundColor3 = Color3.fromRGB(138, 255, 96)
  113. while true do
  114. wait(2.3)
  115. if search == true then
  116. for i,v in pairs(game.Workspace:GetDescendants()) do -- grabs everything from workspace
  117. if v.Name == "LootCrate" and v.ClassName == "MeshPart" then
  118. local bill = Instance.new("BillboardGui")
  119. local text = Instance.new("TextLabel")
  120.  
  121. bill.Parent = v.Parent
  122. bill.AlwaysOnTop = true
  123. bill.Size = UDim2.new(0,50,0,50)
  124. bill.StudsOffset = Vector3.new(0,2,0)
  125.  
  126. text.Parent = bill
  127. text.BackgroundColor3 = Color3.new(1,1,1) -- color
  128. text.BackgroundTransparency = 1 -- transparency
  129. text.Size = UDim2.new(0.5,0,0.5,0) -- size
  130. text.Text = "LootCrate" -- what the label says
  131. text.TextColor3 = Color3.new(1, 0.168627, 1) -- color
  132. text.TextScaled = true -- if the text is scaled or not
  133. end
  134. end
  135. end
  136. end
  137.  
  138. else
  139. search = false
  140. loot.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  141. wait(0.4)
  142. for i, v in pairs(game.workspace:GetDescendants())do
  143. if v.ClassName == "BillboardGui" and v.Name == "BillboardGui" and v.Parent.Name == "LootCrate" then
  144. v:Destroy()
  145. end
  146. end
  147.  
  148. end
  149. end)
  150.  
  151. scrap.MouseButton1Click:Connect(function()
  152. if search2 == false then
  153. search2 = true
  154. scrap.BackgroundColor3 = Color3.fromRGB(138, 255, 96)
  155. for i, v in pairs(game:GetService("Workspace"):GetDescendants())do
  156. if v.ClassName == "MeshPart" and v.Parent.Name == "Scrap" then
  157.  
  158. local bill2 = Instance.new("BillboardGui")
  159. local text2 = Instance.new("TextLabel")
  160.  
  161. bill2.Parent = v.Parent
  162. bill2.AlwaysOnTop = true
  163. bill2.Size = UDim2.new(0,50,0,50)
  164. bill2.StudsOffset = Vector3.new(0,2,0)
  165.  
  166. text2.Parent = bill2
  167. text2.BackgroundColor3 = Color3.new(1,1,1)
  168. text2.BackgroundTransparency = 1
  169. text2.Size = UDim2.new(1,0,1,0)
  170. text2.Text = "Scraps"
  171. text2.TextColor3 = Color3.new(0.0941176, 1, 0.92549)
  172. text2.TextScaled = true
  173. end
  174. end
  175. else
  176. search2 = false
  177. scrap.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  178. wait(0.5)
  179. for i, v in pairs(game.workspace:GetDescendants())do
  180. if v.ClassName == "BillboardGui" and v.Name == "BillboardGui" and v.Parent.Name == "Scrap" then
  181. v:Destroy()
  182. end
  183. end
  184.  
  185. end
  186. end)
  187.  
  188. peps.MouseButton1Click:Connect(function()
  189. if search3 == false then
  190. search3 = true
  191. peps.BackgroundColor3 = Color3.fromRGB(138, 255, 96)
  192. while true do
  193. wait(1.2)
  194. if search3 == true then
  195. for i, players in pairs(game.Workspace:GetDescendants())do
  196.  
  197. if players.Name == "NameTag" and players.ClassName == "BillboardGui" then
  198. players.AlwaysOnTop = true
  199. players.MaxDistance = math.huge
  200. end
  201. end
  202. end
  203. end
  204.  
  205. else
  206. search3 = false
  207. peps.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  208. for i, players in pairs(game.Workspace:GetDescendants())do
  209.  
  210. if players.Name == "NameTag" and players.ClassName == "BillboardGui" then
  211. players.AlwaysOnTop = false
  212. players.MaxDistance = 50
  213. end
  214. end
  215.  
  216. end
  217. end)
  218.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement