ScriptyPastes

ui liv v4 testing

May 20th, 2020 (edited)
5,587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.01 KB | None | 0 0
  1. --ui v4
  2.  
  3. local lib = {
  4. ToggleOn = Color3.fromRGB(80, 255, 80),
  5. ToggleOff = Color3.fromRGB(255, 80, 80),
  6. ToggleOut = Color3.fromRGB(0, 0, 0),
  7. ToggleOutPixel = 1,
  8. BackColor = Color3.fromRGB(53, 53, 53),
  9. TopColor = Color3.fromRGB(43, 43, 43),
  10. LineColor = Color3.fromRGB(145, 45, 150),
  11. SliderColor1 = Color3.fromRGB(255, 255, 255),
  12. SliderColor2 = Color3.fromRGB(100, 100, 100)
  13. }
  14.  
  15. local niggermenu = Instance.new("ScreenGui")
  16. if syn_checkcaller then
  17. syn.protect_gui(niggermenu)
  18. end
  19. niggermenu.Parent = game.CoreGui
  20. local count = 0
  21.  
  22. function lib:Frame(Name)
  23. count=count+1
  24. local Top = Instance.new("ImageLabel")
  25. local Container = Instance.new("ImageLabel")
  26. local Line = Instance.new("Frame")
  27. --[[local TestSlider = Instance.new("Frame")
  28. local SliderLine = Instance.new("Frame")
  29. local TextButton = Instance.new("TextButton")
  30. local ValueLabel = Instance.new("TextLabel")
  31. local ToggleContainer = Instance.new("ImageLabel")
  32. local Toggle = Instance.new("TextButton")
  33. local Toggletext = Instance.new("TextLabel")
  34. local Toggle_2 = Instance.new("TextButton")
  35. local Button = Instance.new("TextButton")]]
  36. local TextLabel = Instance.new("TextLabel")
  37.  
  38. --Properties:
  39.  
  40. Top.Name = "Top"
  41. Top.Parent = niggermenu
  42. Top.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  43. Top.BorderColor3 = Color3.fromRGB(200, 80, 32)
  44. Top.BorderSizePixel = 0
  45. Top.BackgroundTransparency = 1.000
  46. Top.Image = "rbxassetid://3570695787"
  47. Top.ImageColor3 = Color3.fromRGB(47, 47, 47)
  48. Top.ScaleType = Enum.ScaleType.Slice
  49. Top.SliceCenter = Rect.new(100, 100, 100, 100)
  50. Top.SliceScale = 0.065
  51. Top.Position = UDim2.new(0.04 + (count*.13), 0, 0.0679886714, 0)
  52. Top.Size = UDim2.new(0, 200, 0, 35)
  53.  
  54. Line.Name = "Line"
  55. Line.Parent = Top
  56. if lib.LineColor == "Rainbow" then
  57. spawn(function()
  58. while wait(0.01) do
  59. Line.BackgroundColor3 = Color3.fromHSV(tick()%5/5,1,1)
  60. end
  61. end)
  62. else
  63. Line.BackgroundColor3 = lib.LineColor
  64. end
  65. Line.BorderSizePixel = 0
  66. Line.Position = UDim2.new(0, 0, 0, 25)
  67. Line.Size = UDim2.new(0, 200, 0, 2)
  68. Line.ZIndex = 3
  69.  
  70. Container.Name = "Frame"
  71. Container.Parent = Top
  72. Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. Container.BackgroundTransparency = 1.000
  74. Container.BorderSizePixel = 0
  75. Container.Position = UDim2.new(0, 0, .8, 0)
  76. Container.Size = UDim2.new(0, 200, 0, 28)
  77. Container.Image = "rbxassetid://3570695787"
  78. Container.ImageColor3 = Color3.fromRGB(47, 47, 47)
  79. Container.ScaleType = Enum.ScaleType.Slice
  80. Container.SliceCenter = Rect.new(100, 100, 100, 100)
  81. Container.SliceScale = 0.065
  82. local UIListLayout = Instance.new("UIListLayout")
  83.  
  84. UIListLayout.Parent = Container
  85. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  86.  
  87. --[[TestSlider.Name = "TestSlider"
  88. TestSlider.Parent = Container
  89. TestSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. TestSlider.BackgroundTransparency = 0.900
  91. TestSlider.Size = UDim2.new(0, 200, 0, 28)
  92.  
  93. SliderLine.Name = "SliderLine"
  94. SliderLine.Parent = TestSlider
  95. SliderLine.BackgroundColor3 = Color3.fromRGB(229, 125, 39)
  96. SliderLine.BorderSizePixel = 0
  97. SliderLine.Position = UDim2.new(0.0352941193, 0, 0.357142866, 0)
  98. SliderLine.Size = UDim2.new(0, 157, 0, 2)
  99.  
  100. TextButton.Parent = SliderLine
  101. TextButton.BackgroundColor3 = Color3.fromRGB(255, 66, 28)
  102. TextButton.BorderSizePixel = 0
  103. TextButton.Position = UDim2.new(0, 0, -3, 0)
  104. TextButton.Size = UDim2.new(0, 6, 0, 14)
  105. TextButton.Font = Enum.Font.SourceSans
  106. TextButton.Text = ""
  107. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  108. TextButton.TextSize = 14.000
  109.  
  110. ValueLabel.Name = "ValueLabel"
  111. ValueLabel.Parent = SliderLine
  112. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. ValueLabel.BackgroundTransparency = 1.000
  114. ValueLabel.Size = UDim2.new(0, 156, 0, 17)
  115. ValueLabel.Font = Enum.Font.SourceSans
  116. ValueLabel.Text = "0"
  117. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  118. ValueLabel.TextSize = 14.000
  119.  
  120. ToggleContainer.Name = "ToggleContainer"
  121. ToggleContainer.Parent = Container
  122. ToggleContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123. ToggleContainer.BackgroundTransparency = 0.900
  124. ToggleContainer.Position = UDim2.new(0, 0, 0.124705881, 0)
  125. ToggleContainer.Size = UDim2.new(0, 200, 0, 28)
  126. ToggleContainer.Image = "rbxgameasset://Images/Rectangle 1"
  127. ToggleContainer.ImageTransparency = 1.000
  128. ToggleContainer.ScaleType = Enum.ScaleType.Crop
  129.  
  130. Toggle.Name = "Toggle"
  131. Toggle.Parent = ToggleContainer
  132. Toggle.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  133. Toggle.BorderColor3 = Color3.fromRGB(255, 174, 10)
  134. Toggle.BorderSizePixel = 2
  135. Toggle.Position = UDim2.new(0.859282851, 0, 0.123571128, 0)
  136. Toggle.Size = UDim2.new(0, 20, 0, 20)
  137. Toggle.Font = Enum.Font.SourceSans
  138. Toggle.Text = ""
  139. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  140. Toggle.TextSize = 14.000
  141.  
  142. Toggletext.Name = "Toggletext"
  143. Toggletext.Parent = ToggleContainer
  144. Toggletext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. Toggletext.BackgroundTransparency = 1.000
  146. Toggletext.BorderSizePixel = 0
  147. Toggletext.Position = UDim2.new(0, 0, 0.052142553, 0)
  148. Toggletext.Size = UDim2.new(0, 136, 0, 24)
  149. Toggletext.Font = Enum.Font.SourceSans
  150. Toggletext.Text = "n i g g e r z"
  151. Toggletext.TextColor3 = Color3.fromRGB(255, 255, 255)
  152. Toggletext.TextSize = 20.000
  153. Toggletext.TextWrapped = true
  154.  
  155. Toggle_2.Name = "Toggle"
  156. Toggle_2.Parent = ToggleContainer
  157. Toggle_2.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  158. Toggle_2.BorderColor3 = Color3.fromRGB(255, 174, 10)
  159. Toggle_2.BorderSizePixel = 2
  160. Toggle_2.Position = UDim2.new(0.888438165, 0, 3.25928569, 0)
  161. Toggle_2.Size = UDim2.new(0, 20, 0, 20)
  162. Toggle_2.ZIndex = -3
  163. Toggle_2.Font = Enum.Font.SourceSans
  164. Toggle_2.Text = ""
  165. Toggle_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  166. Toggle_2.TextSize = 14.000
  167.  
  168.  
  169. ]]
  170. TextLabel.Parent = Top
  171. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  172. TextLabel.BackgroundTransparency = 1.000
  173. TextLabel.Size = UDim2.new(0, 200, 0, 30)
  174. TextLabel.ZIndex = 3
  175. TextLabel.Font = Enum.Font.SourceSans
  176. TextLabel.Text = Name
  177. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  178. TextLabel.TextSize = 20.000
  179. local lib2 = {buttons = 0}
  180.  
  181. function lib2:Dropdown(text, tbl, func)
  182. lib2.buttons=lib2.buttons+1
  183. if lib2.buttons == 1 then Container.Size = UDim2.new(0, 200, 0, 28*2) else Container.Size = UDim2.new(0, 200, 0, 28*lib2.buttons) end
  184. local Button = Instance.new("TextButton")
  185. local ddFrame = Instance.new("Frame", Button)
  186. local ddBcount = 0
  187.  
  188. ddFrame.ClipsDescendants = true
  189. ddFrame.ZIndex = 5
  190. ddFrame.Size = UDim2.new(0,200,0,20)
  191. ddFrame.BackgroundColor3 = Color3.fromRGB(60,60,60)
  192. ddFrame.Visible = false
  193. ddFrame.Position = UDim2.new(0,0,1,0)
  194. ddFrame.BorderSizePixel = 0
  195. local UIListLayout = Instance.new("UIListLayout")
  196.  
  197. UIListLayout.Parent = ddFrame
  198. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  199.  
  200. Button.Name = "Button"
  201. Button.Parent = Container
  202. Button.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  203. Button.BackgroundTransparency = 1.000
  204. Button.BorderColor3 = Color3.fromRGB(255, 174, 10)
  205. Button.BorderSizePixel = 2
  206. Button.Position = UDim2.new(0, 0, 0, 0)
  207. Button.Size = UDim2.new(0, 200, 0, 28)
  208. Button.Font = Enum.Font.SourceSans
  209. Button.Text = text
  210. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  211. Button.TextSize = 20.000
  212. Button.TextWrapped = true
  213. Button.MouseButton1Down:Connect(function()
  214. ddFrame.Size = UDim2.new(0,200,0,20)
  215. ddFrame.Visible = true
  216. ddFrame:TweenSize(UDim2.new(0,200,0,20*ddBcount), Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.3, true)
  217. end)
  218.  
  219. for i,v in next, tbl do
  220. ddBcount = i
  221. ddFrame.Size = UDim2.new(0,200,0,20*ddBcount)
  222. local Button1 = Instance.new("TextButton")
  223.  
  224. Button1.Name = "1111"
  225. Button1.ZIndex = 6
  226. Button1.Visible = true
  227. Button1.Parent = ddFrame
  228. Button1.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  229. Button1.BackgroundTransparency = 1.000
  230. Button1.BorderColor3 = Color3.fromRGB(255, 174, 10)
  231. Button1.BorderSizePixel = 2
  232. Button1.Position = UDim2.new(0, 0, 0, 0)
  233. Button1.Size = UDim2.new(0, 200, 0, 20)
  234. Button1.Font = Enum.Font.SourceSans
  235. Button1.Text = v
  236. Button1.TextColor3 = Color3.fromRGB(255, 255, 255)
  237. Button1.TextSize = 20.000
  238. Button1.TextWrapped = true
  239. Button1.MouseButton1Down:Connect(function()
  240. ddFrame:TweenSize(UDim2.new(0,200,0,20), Enum.EasingDirection.In,Enum.EasingStyle.Quad,.3, true)
  241. wait(.3)
  242. ddFrame.Visible = false
  243. func(v)
  244. end)
  245. end
  246. end
  247. function lib2:Label(text)
  248.  
  249. lib2.buttons=lib2.buttons+1
  250. print(lib2.buttons)
  251. if lib2.buttons == 1 then
  252. Container.Size = UDim2.new(0, 200, 0, 28*2)
  253. else
  254. Container.Size = UDim2.new(0, 200, 0, 28*lib2.buttons)
  255. end
  256. local lel = Instance.new("TextLabel")
  257.  
  258. lel.Name = "lel"
  259. lel.Parent = Container
  260. lel.BackgroundColor3 = Color3.fromRGB(0,0,0)
  261. lel.BackgroundTransparency = 0.9
  262. lel.Size = UDim2.new(0, 200, 0, 20)
  263. lel.Font = Enum.Font.SourceSans
  264. lel.Text = text
  265. lel.TextColor3 = Color3.fromRGB(255, 255, 255)
  266. lel.TextSize = 25
  267. lel.TextScaled = true
  268. end
  269. function lib2:Slider(name, min, max, func)
  270. lib2.buttons=lib2.buttons+1
  271. if lib2.buttons == 1 then Container.Size = UDim2.new(0, 200, 0, 28*2) else Container.Size = UDim2.new(0, 200, 0, 28*lib2.buttons) end
  272. local TestSlider = Instance.new("Frame")
  273. local SliderLine = Instance.new("Frame")
  274. local TextButton = Instance.new("TextButton")
  275. local ValueLabel = Instance.new("TextLabel")
  276.  
  277. TestSlider.Name = "TestSlider"
  278. TestSlider.Parent = Container
  279. TestSlider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  280. TestSlider.BackgroundTransparency = 1
  281. TestSlider.Size = UDim2.new(0, 200, 0, 28)
  282.  
  283. SliderLine.Name = "SliderLine"
  284. SliderLine.Parent = TestSlider
  285. SliderLine.BackgroundColor3 = lib.SliderColor1
  286. SliderLine.BorderSizePixel = 0
  287. SliderLine.Position = UDim2.new(0.0352941193, 0, 0.357142866, 0)
  288. SliderLine.Size = UDim2.new(0, 170, 0, 2)
  289.  
  290. TextButton.Parent = SliderLine
  291. TextButton.BackgroundColor3 = lib.SliderColor2
  292. TextButton.BorderSizePixel = 0
  293. TextButton.Position = UDim2.new(0, 0, -3, 0)
  294. TextButton.Size = UDim2.new(0, 6, 0, 14)
  295. TextButton.Font = Enum.Font.SourceSans
  296. TextButton.Text = ""
  297. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  298. TextButton.TextSize = 14.000
  299.  
  300. ValueLabel.Name = "ValueLabel"
  301. ValueLabel.Parent = SliderLine
  302. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  303. ValueLabel.BackgroundTransparency = 1.000
  304. ValueLabel.Size = UDim2.new(0, 170, 0, 17)
  305. ValueLabel.Font = Enum.Font.SourceSans
  306. ValueLabel.Text = tostring(name).." - "..tostring(min)
  307. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  308. ValueLabel.TextSize = 14.000
  309.  
  310. local function WDACB_fake_script() -- TextButton.LocalScript
  311. local script = Instance.new('LocalScript', TextButton)
  312.  
  313. local o = false
  314.  
  315. script.Parent.MouseButton1Down:Connect(function()
  316. o = not o
  317. game:GetService('RunService').RenderStepped:connect(function()
  318. if o then
  319. local mouse = game:GetService("UserInputService"):GetMouseLocation()
  320. local percent = (mouse.X - script.Parent.Parent.AbsolutePosition.X) / (script.Parent.Parent.AbsoluteSize.X)
  321. percent = math.clamp(percent, 0, 1)
  322. percent = tonumber(string.format("%.2f", percent))
  323.  
  324. script.Parent.Position = UDim2.new(math.clamp(percent, 0, 0.99)-0.02, 0, 0, -7)
  325.  
  326. local num = min + (min + max) * percent
  327. local value = math.floor(num)
  328.  
  329. script.Parent.Parent.ValueLabel.Text = name.." - "..value;
  330. func(value)
  331. end
  332. end)
  333. end)
  334. end
  335. coroutine.wrap(WDACB_fake_script)()
  336. end
  337.  
  338.  
  339. function lib2:Button(text, func)
  340. lib2.buttons=lib2.buttons+1
  341. if lib2.buttons == 1 then Container.Size = UDim2.new(0, 200, 0, 28*2) else Container.Size = UDim2.new(0, 200, 0, 28*lib2.buttons) end
  342. local Button = Instance.new("TextButton")
  343.  
  344. Button.Name = "Button"
  345. Button.Parent = Container
  346. Button.BackgroundColor3 = Color3.fromRGB(81, 81, 81)
  347. Button.BackgroundTransparency = 1.000
  348. Button.BorderColor3 = Color3.fromRGB(255, 174, 10)
  349. Button.BorderSizePixel = 2
  350. Button.Position = UDim2.new(0, 0, 0, 0)
  351. Button.Size = UDim2.new(0, 200, 0, 28)
  352. Button.Font = Enum.Font.SourceSans
  353. Button.Text = text
  354. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  355. Button.TextSize = 20.000
  356. Button.TextWrapped = true
  357. Button.MouseButton1Down:Connect(func)
  358. end
  359.  
  360. function lib2:Toggle(text, func)
  361. lib2.buttons=lib2.buttons+1
  362. if lib2.buttons == 1 then Container.Size = UDim2.new(0, 200, 0, 28*2) else Container.Size = UDim2.new(0, 200, 0, 28*lib2.buttons) end
  363. local ToggleContainer = Instance.new("ImageLabel")
  364. local Toggle = Instance.new("TextButton")
  365. local Toggletext = Instance.new("TextLabel")
  366. local oof = false
  367. ToggleContainer.Name = "ToggleContainer"
  368. ToggleContainer.Parent = Container
  369. ToggleContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  370. ToggleContainer.BackgroundTransparency = 1
  371. ToggleContainer.Position = UDim2.new(0, 0, 0, 0)
  372. ToggleContainer.Size = UDim2.new(0, 200, 0, 28)
  373. ToggleContainer.Image = "rbxgameasset://niggermenu"
  374. ToggleContainer.ImageTransparency = 1.000
  375. ToggleContainer.ScaleType = Enum.ScaleType.Crop
  376.  
  377. Toggle.Name = "Toggle"
  378. Toggle.Parent = ToggleContainer
  379. Toggle.BackgroundColor3 = lib.ToggleOff
  380. Toggle.BorderColor3 = lib.ToggleOut
  381. Toggle.BorderSizePixel = lib.ToggleOutPixel
  382. Toggle.Position = UDim2.new(0.859282851, 0, 0.123571128, 0)
  383. Toggle.Size = UDim2.new(0, 20, 0, 20)
  384. Toggle.Font = Enum.Font.SourceSans
  385. Toggle.Text = ""
  386. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  387. Toggle.TextSize = 14.000
  388.  
  389. Toggletext.Name = "Toggletext"
  390. Toggletext.Parent = ToggleContainer
  391. Toggletext.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  392. Toggletext.BackgroundTransparency = 1.000
  393. Toggletext.BorderSizePixel = 0
  394. Toggletext.Position = UDim2.new(0, 0.02, 0.052142553, 0)
  395. Toggletext.Size = UDim2.new(0, 136, 0, 24)
  396. Toggletext.Font = Enum.Font.SourceSans
  397. Toggletext.Text = text
  398. Toggletext.TextColor3 = Color3.fromRGB(255, 255, 255)
  399. Toggletext.TextSize = 20.000
  400. Toggletext.TextWrapped = true
  401. Toggle.MouseButton1Down:Connect(function()
  402. oof = not oof
  403. if oof == true then
  404. Toggle.BackgroundColor3 = lib.ToggleOn
  405. else
  406. Toggle.BackgroundColor3 = lib.ToggleOff
  407. end
  408. func(oof)
  409. end)
  410. end
  411. --[[ Scripts:
  412.  
  413. local function WDACB_fake_script() -- TextButton.LocalScript
  414. local script = Instance.new('LocalScript', TextButton)
  415.  
  416. local o = false
  417.  
  418. script.Parent.MouseButton1Down:Connect(function()
  419. o = not o
  420. end)
  421.  
  422. game:GetService('RunService').RenderStepped:connect(function()
  423. if o then
  424. local mouse = game:GetService("UserInputService"):GetMouseLocation()
  425. local percent = (mouse.X - script.Parent.Parent.AbsolutePosition.X) / (script.Parent.Parent.AbsoluteSize.X)
  426. percent = math.clamp(percent, 0, 1)
  427. percent = tonumber(string.format("%.2f", percent))
  428.  
  429. script.Parent.Position = UDim2.new(math.clamp(percent, 0, 0.99)-0.02, 0, 0, -7)
  430.  
  431. local num = 0 + (30 - 0) * percent
  432. local value = math.floor(num)
  433.  
  434. script.Parent.Parent.ValueLabel.Text = value;
  435. end
  436. end)
  437. end
  438. coroutine.wrap(WDACB_fake_script)()
  439. ]]
  440. local function AYNAIN_fake_script() -- Top.LocalScript
  441. local script = Instance.new('LocalScript', Top)
  442.  
  443. local Top = script.Parent
  444.  
  445. Top.Active = true
  446. Top.Draggable = true
  447. end
  448. coroutine.wrap(AYNAIN_fake_script)()
  449. return lib2
  450. end
  451. return lib
Advertisement
Add Comment
Please, Sign In to add comment