Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local invisible = Instance.new("Frame")
  3. local openbutton = Instance.new("TextButton")
  4. local dropdown = Instance.new("Frame")
  5. local ScrollingFrame = Instance.new("ScrollingFrame")
  6. local UIListLayout = Instance.new("UIListLayout")
  7. local bar = Instance.new("Frame")
  8. local click = Instance.new("TextButton")
  9. ScreenGui.Parent = game.CoreGui
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11. invisible.Name = "invisible"
  12. invisible.Parent = ScreenGui
  13. invisible.BackgroundColor3 = Color3.new(0, 0, 0)
  14. invisible.BackgroundTransparency = 1
  15. invisible.BorderSizePixel = 0
  16. invisible.Position = UDim2.new(0.00899999961, 0, 0.0178571437, 0)
  17. invisible.Size = UDim2.new(0, 214, 0, 297)
  18. openbutton.Name = "openbutton"
  19. openbutton.Parent = invisible
  20. openbutton.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  21. openbutton.BorderSizePixel = 0
  22. openbutton.Position = UDim2.new(0.0323049799, 0, 0.0303030312, 0)
  23. openbutton.Size = UDim2.new(0, 199, 0, 32)
  24. openbutton.Font = Enum.Font.SourceSansLight
  25. openbutton.Text = "Placeholder"
  26. openbutton.TextColor3 = Color3.new(0.898039, 0.898039, 0.898039)
  27. openbutton.TextSize = 23
  28. openbutton.TextStrokeTransparency = 0.85000002384186
  29. openbutton.TextWrapped = true
  30. dropdown.Name = "dropdown"
  31. dropdown.Parent = openbutton
  32. dropdown.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  33. dropdown.BorderSizePixel = 0
  34. dropdown.Position = UDim2.new(0, 0, 1.25, 0)
  35. dropdown.Size = UDim2.new(0, 199, 0, 0)
  36. dropdown.ZIndex = 2000
  37. ScrollingFrame.Parent = dropdown
  38. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  39. ScrollingFrame.BackgroundTransparency = 1
  40. ScrollingFrame.BorderSizePixel = 0
  41. ScrollingFrame.Position = UDim2.new(0, 0, 0.079497911, 0)
  42. ScrollingFrame.Size = UDim2.new(0, 199, 0, 0)
  43. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0.899999976, 0)
  44. ScrollingFrame.ScrollBarThickness = 1
  45. UIListLayout.Parent = ScrollingFrame
  46. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  47. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  48. UIListLayout.Padding = UDim.new(0, 2)
  49. bar.Name = "bar"
  50. bar.Parent = dropdown
  51. bar.BackgroundColor3 = Color3.new(0.898039, 0.898039, 0.898039)
  52. bar.BorderSizePixel = 0
  53. bar.Position = UDim2.new(0.0653266311, 0, 0.0460251048, 0)
  54. bar.Size = UDim2.new(0, 178, 0, 1)
  55. click.Name = "click"
  56. click.Parent = ScreenGui
  57. click.BackgroundColor3 = Color3.new(0.14902, 0.14902, 0.14902)
  58. click.BorderSizePixel = 0
  59. click.Position = UDim2.new(0.0904522613, 0, 0.121338911, 0)
  60. click.Size = UDim2.new(0, 163, 0, 32)
  61. click.Visible = false
  62. click.Font = Enum.Font.SourceSansLight
  63. click.Text = "Placeholder"
  64. click.TextColor3 = Color3.new(0.898039, 0.898039, 0.898039)
  65. click.TextSize = 19
  66. click.TextStrokeTransparency = 0.85000002384186
  67. function SCRIPT_BRSI72_FAKESCRIPT() -- ScrollingFrame.rainbow
  68. local script = Instance.new('LocalScript')
  69. script.Parent = ScrollingFrame
  70. local color = script.Parent
  71. local speed = 10
  72. while true do
  73. for i = 0,1,0.001*speed do
  74. color.ScrollBarImageColor3 = Color3.fromHSV(i,1,1)
  75. wait()
  76. end
  77. end
  78.  
  79. end
  80. coroutine.resume(coroutine.create(SCRIPT_BRSI72_FAKESCRIPT))
  81. function SCRIPT_LKZC76_FAKESCRIPT() -- bar.rainbow
  82. local script = Instance.new('LocalScript')
  83. script.Parent = bar
  84. local color = script.Parent
  85. local speed = 10
  86. while true do
  87. for i = 0,1,0.001*speed do
  88. color.BackgroundColor3 = Color3.fromHSV(i,0.85,0.85)
  89. wait()
  90. end
  91. end
  92.  
  93. end
  94. coroutine.resume(coroutine.create(SCRIPT_LKZC76_FAKESCRIPT))
  95. function SCRIPT_HMZA79_FAKESCRIPT() -- dropdown.rainbow
  96. local script = Instance.new('LocalScript')
  97. script.Parent = dropdown
  98. local color = script.Parent
  99. local speed = 10
  100. while true do
  101. for i = 0,1,0.001*speed do
  102. color.BackgroundColor3 = Color3.fromHSV(i,0.15,0.15)
  103. wait()
  104. end
  105. end
  106.  
  107. end
  108. coroutine.resume(coroutine.create(SCRIPT_HMZA79_FAKESCRIPT))
  109. function SCRIPT_ZXCL67_FAKESCRIPT() -- openbutton.rainbow
  110. local script = Instance.new('LocalScript')
  111. script.Parent = openbutton
  112. local color = script.Parent
  113. local speed = 10
  114. while true do
  115. for i = 0,1,0.001*speed do
  116. color.BackgroundColor3 = Color3.fromHSV(i,0.15,0.15)
  117. color.TextColor3 = Color3.fromHSV(i,0.7,0.7)
  118. wait()
  119. end
  120. end
  121.  
  122. end
  123. coroutine.resume(coroutine.create(SCRIPT_ZXCL67_FAKESCRIPT))
  124. function SCRIPT_FGXG65_FAKESCRIPT() -- ScreenGui.LocalScript
  125. local script = Instance.new('LocalScript')
  126. script.Parent = ScreenGui
  127. local Clone = script.Parent.invisible:Clone()
  128. script.Parent.invisible:Destroy()
  129. local Lib = {}
  130. local Open = false
  131.  
  132. function Lib:NewDropdown(Title)
  133. wait(0.05)
  134. local Dropdown = Clone:Clone()
  135. local Existing = 1
  136. for i,v in pairs(script.Parent:GetChildren()) do
  137. Existing = Existing + 1
  138. end
  139. Dropdown.Name = Title
  140. Dropdown.openbutton.Text = tostring(Title) or "Placeholder"
  141. Dropdown.Position = UDim2.new(0, 0, -0.15, 35 * Existing)
  142. Dropdown.Parent = script.Parent
  143. Dropdown.openbutton.dropdown.Visible = false
  144. Dropdown.ZIndex = 200 - Existing
  145. Dropdown.openbutton.MouseButton1Click:connect(function()
  146. if Open == false then
  147. Open = true
  148. coroutine.resume(coroutine.create(function()
  149. Dropdown.openbutton.dropdown.Visible = true
  150. end))
  151. Dropdown.openbutton.dropdown:TweenSize(UDim2.new(0, 199,0, 220),nil,nil,0.8)
  152. Dropdown.openbutton.dropdown.ScrollingFrame:TweenSize(UDim2.new(0, 199,0, 200),nil,nil,0.8)
  153. elseif Open == true then
  154. Open = false
  155. coroutine.resume(coroutine.create(function()
  156. wait(0.8)
  157. Dropdown.openbutton.dropdown.Visible = false
  158. end))
  159. Dropdown.openbutton.dropdown:TweenSize(UDim2.new(0, 199,0, 0),nil,nil,0.8)
  160. Dropdown.openbutton.dropdown.ScrollingFrame:TweenSize(UDim2.new(0, 199,0, 0),nil,nil,0.8)
  161. end
  162. end)
  163. return Dropdown
  164. end
  165.  
  166. local LatestButton
  167.  
  168. function Lib:NewButton(Text, Parent, Function)
  169. wait(0.05)
  170. local Button = script.Parent.click:Clone()
  171. Button.Name = Text
  172. if Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click") ~= nil then
  173. Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click"):Destroy()
  174. end
  175. local Existing = 1
  176. for i,v in pairs(Parent:GetChildren()) do
  177. if v:IsA("TextButton") then
  178. Existing = Existing + 1
  179. end
  180. end
  181. Button.Visible = true
  182. Button.Parent = Parent.openbutton.dropdown.ScrollingFrame
  183. Parent.openbutton.dropdown.ScrollingFrame.CanvasSize = UDim2.new(0,0,Existing * 90,0)
  184. Button.Text = Text
  185. Button.BackgroundTransparency = 0
  186. Button.MouseButton1Click:connect(function()
  187. if typeof(Function) ~= "function" then
  188. warn(Function.." is not a function!")
  189. else
  190. Function()
  191. end
  192. end)
  193. return Button
  194. end
  195.  
  196. function Lib:NewToggleButton(Text, Parent, Function)
  197. wait(0.05)
  198. local Button = script.Parent.click:Clone()
  199. Button.Name = Text
  200. if Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click") ~= nil then
  201. Parent.openbutton.dropdown.ScrollingFrame:FindFirstChild("click"):Destroy()
  202. end
  203. local Existing = 1
  204. local On = false
  205. for i,v in pairs(Parent:GetChildren()) do
  206. if v:IsA("TextButton") then
  207. Existing = Existing + 1
  208. end
  209. end
  210. Button.Visible = true
  211. Button.Parent = Parent.openbutton.dropdown.ScrollingFrame
  212. Parent.openbutton.dropdown.ScrollingFrame.CanvasSize = UDim2.new(0,0,Existing * 90,0)
  213. Button.Text = Text.." | Off"
  214. Button.BackgroundTransparency = 0
  215. Button.MouseButton1Click:connect(function()
  216. if On == false then
  217. Button.Text = Text.." | On"
  218. On = true
  219. elseif On == true then
  220. On = false
  221. Button.Text = Text.." | Off"
  222. end
  223. game:GetService("RunService").RenderStepped:connect(function()
  224. if On == true then
  225. if typeof(Function) ~= "function" then
  226. warn(Function.." is not a function!")
  227. else
  228. Function()
  229. end
  230. end
  231. end)
  232. end)
  233. return Button
  234. end
  235.  
  236.  
  237.  
  238. local Example = Lib:NewDropdown("Example")
  239. Lib:NewToggleButton("Warn", Example, function()
  240. warn("Warning")
  241. end)
  242. Lib:NewToggleButton("Print", Example, function()
  243. print("Print")
  244. end)
  245. Lib:NewButton("Warn", Example, function()
  246. warn("Warning")
  247. end)
  248. Lib:NewButton("Print", Example, function()
  249. print("Print")
  250. end)
  251.  
  252.  
  253. end
  254. coroutine.resume(coroutine.create(SCRIPT_FGXG65_FAKESCRIPT))
  255. function SCRIPT_QJBC89_FAKESCRIPT() -- click.rainbow
  256. local script = Instance.new('LocalScript')
  257. script.Parent = click
  258. local color = script.Parent
  259. local speed = 10
  260. while true do
  261. for i = 0,1,0.001*speed do
  262. color.BackgroundColor3 = Color3.fromHSV(i,0.25,0.25)
  263. color.TextColor3 = Color3.fromHSV(i,0.7,0.7)
  264. wait()
  265. end
  266. end
  267.  
  268. end
  269. coroutine.resume(coroutine.create(SCRIPT_QJBC89_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement