Script_Master132

Electric State DarkRP Script

Nov 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.74 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Menu = Instance.new("Frame")
  6. local Frame = Instance.new("Frame")
  7. local B1 = Instance.new("TextButton")
  8. local B3 = Instance.new("TextButton")
  9. local B4 = Instance.new("TextButton")
  10. local B2 = Instance.new("TextButton")
  11. local Credit = Instance.new("TextLabel")
  12. local Button = Instance.new("TextButton")
  13. --Properties:
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. Menu.Name = "Menu"
  17. Menu.Parent = ScreenGui
  18. Menu.Active = true
  19. Menu.BackgroundColor3 = Color3.new(0, 0, 0)
  20. Menu.BackgroundTransparency = 0.40000000596046
  21. Menu.BorderColor3 = Color3.new(1, 0, 0)
  22. Menu.BorderSizePixel = 2
  23. Menu.Draggable = true
  24. Menu.Position = UDim2.new(0.220274389, -171, 0.686549664, -141)
  25. Menu.Selectable = true
  26. Menu.Size = UDim2.new(0, 275, 0, 172)
  27.  
  28. Frame.Parent = Menu
  29. Frame.Active = true
  30. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  31. Frame.BackgroundTransparency = 0.40000000596046
  32. Frame.BorderSizePixel = 0
  33. Frame.Draggable = true
  34. Frame.Position = UDim2.new(-0.0020011086, 0, 0.238562495, 0)
  35. Frame.Selectable = true
  36. Frame.Size = UDim2.new(0, 275, 0, 6)
  37.  
  38. B1.Name = "B1"
  39. B1.Parent = Menu
  40. B1.BackgroundColor3 = Color3.new(0.517647, 0.517647, 0.517647)
  41. B1.BackgroundTransparency = 0.40000000596046
  42. B1.Position = UDim2.new(0.0989911258, 0, 0.394675642, 0)
  43. B1.Size = UDim2.new(0, 93, 0, 35)
  44. B1.Font = Enum.Font.SourceSans
  45. B1.Text = "A-R-B"
  46. B1.TextColor3 = Color3.new(0, 0, 0)
  47. B1.TextSize = 14
  48.  
  49. B3.Name = "B3"
  50. B3.Parent = Menu
  51. B3.BackgroundColor3 = Color3.new(0.517647, 0.517647, 0.517647)
  52. B3.BackgroundTransparency = 0.40000000596046
  53. B3.Position = UDim2.new(0.561887503, 0, 0.708629131, 0)
  54. B3.Size = UDim2.new(0, 93, 0, 35)
  55. B3.Font = Enum.Font.SourceSans
  56. B3.Text = "Nope"
  57. B3.TextColor3 = Color3.new(0, 0, 0)
  58. B3.TextSize = 14
  59.  
  60. B4.Name = "B4"
  61. B4.Parent = Menu
  62. B4.BackgroundColor3 = Color3.new(0.517647, 0.517647, 0.517647)
  63. B4.BackgroundTransparency = 0.40000000596046
  64. B4.Position = UDim2.new(0.0989911258, 0, 0.706663966, 0)
  65. B4.Size = UDim2.new(0, 93, 0, 35)
  66. B4.Font = Enum.Font.SourceSans
  67. B4.Text = "Nope"
  68. B4.TextColor3 = Color3.new(0, 0, 0)
  69. B4.TextSize = 14
  70.  
  71. B2.Name = "B2"
  72. B2.Parent = Menu
  73. B2.BackgroundColor3 = Color3.new(0.517647, 0.517647, 0.517647)
  74. B2.BackgroundTransparency = 0.40000000596046
  75. B2.Position = UDim2.new(0.561887503, 0, 0.392710447, 0)
  76. B2.Size = UDim2.new(0, 93, 0, 35)
  77. B2.Font = Enum.Font.SourceSans
  78. B2.Text = "ESP"
  79. B2.TextColor3 = Color3.new(0, 0, 0)
  80. B2.TextSize = 14
  81.  
  82. Credit.Name = "Credit"
  83. Credit.Parent = Menu
  84. Credit.BackgroundColor3 = Color3.new(0, 0, 0)
  85. Credit.BackgroundTransparency = 1
  86. Credit.Position = UDim2.new(0.134764418, 0, 0.0475180149, 0)
  87. Credit.Size = UDim2.new(0, 200, 0, 25)
  88. Credit.Font = Enum.Font.Cartoon
  89. Credit.Text = "Made by Rob123"
  90. Credit.TextColor3 = Color3.new(1, 1, 1)
  91. Credit.TextSize = 20
  92.  
  93. Button.Name = "Button"
  94. Button.Parent = ScreenGui
  95. Button.BackgroundColor3 = Color3.new(0, 0, 0)
  96. Button.BackgroundTransparency = 0.5
  97. Button.Position = UDim2.new(0.452743888, 0, 0, 0)
  98. Button.Size = UDim2.new(0, 200, 0, 25)
  99. Button.Font = Enum.Font.ArialBold
  100. Button.Text = "Open/Close"
  101. Button.TextColor3 = Color3.new(1, 1, 1)
  102. Button.TextSize = 20
  103.  
  104.  
  105. -- Scripts:
  106. Menu.Active = true
  107. Menu.Selectable = true
  108. Menu.Draggable = true
  109. Frame.Draggable = true
  110. Frame.Active = true
  111. Frame.Selectable = true
  112. OC = 0
  113.  
  114. Button.MouseButton1Click:connect(function()
  115. if OC == 0 then
  116. OC = 1
  117. Menu.Visible = true
  118. elseif OC == 1 then
  119. OC = 0
  120. Menu.Visible = false
  121. end
  122. end)
  123.  
  124.  
  125.  
  126. B1.MouseButton1Click:connect(function() --This is saying, when the gui button name (B1) is left clicked, perform a function
  127.  
  128. rs = game:GetService("ReplicatedStorage")
  129. while true do
  130. rs.Events.MenuActionEvent:FireServer(6, true)
  131. wait(0.01)
  132. end
  133.  
  134. end)
  135.  
  136.  
  137. B2.MouseButton1Click:connect(function()
  138.  
  139. function highlightModel(objObject, color)
  140. local v = objObject
  141. local bHA=Instance.new('BoxHandleAdornment',v)
  142. bHA.Adornee=v
  143. bHA.Size= Vector3.new(1,1,1)
  144. bHA.Color3= color or Color3.new(255,255,255)
  145. bHA.Transparency=.5
  146. bHA.ZIndex=1
  147. bHA.AlwaysOnTop=true
  148. end
  149.  
  150. function unHighlightModel(objObject)
  151. objObject.BoxHandleAdornment:Destroy()
  152. end
  153.  
  154. for _,gg in pairs(game.Workspace.MoneyPrinters:GetChildren()) do
  155. if gg:FindFirstChild("BoxHandleAdornment") then
  156. unHighlightModel(gg)
  157. end
  158. if gg.Name == "Money Printer Advanced " then
  159. highlightModel(gg, Color3.new(255,200,200)) --red
  160. elseif gg.Name == "Money Printer Basic" then
  161. highlightModel(gg, Color3.new(255,100,100)) --white
  162. else
  163. highlightModel(gg)
  164. end
  165. end
  166.  
  167. end)
  168.  
  169.  
  170. B3.MouseButton1Click:connect(function()
  171.  
  172. --Insert script here
  173.  
  174. end)
  175.  
  176.  
  177. B4.MouseButton1Click:connect(function()
  178.  
  179. --Insert script here
  180.  
  181. end)
Add Comment
Please, Sign In to add comment