Advertisement
HEHEJ

Untitled

Mar 25th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.25 KB | None | 0 0
  1. function randomName()
  2. local data = ""
  3. for i=0,20,1 do
  4. data = data .. tostring(string.char(math.ceil(math.random() * 254)))
  5. end
  6. return data
  7. end
  8.  
  9.  
  10.  
  11.  
  12. local DaUiLib = Instance.new("ScreenGui")
  13. DaUiLib.Name = randomName()
  14. DaUiLib.Parent = game:GetService("CoreGui")
  15. DaUiLib.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17.  
  18. local library = {}
  19.  
  20. local TweenService = game:GetService("TweenService")
  21. local uis = game:GetService("UserInputService")
  22. local tabcount = 0
  23. local rainbow = 0
  24. _G.breatherate = 0.005
  25. local color
  26. local rainbows = {}
  27. local buttoncount = {}
  28.  
  29.  
  30.  
  31. function library:CreateTab(name)
  32.  
  33. tabcount = tabcount+1
  34. buttoncount[tabcount] = 0
  35.  
  36. local topbar = Instance.new("Frame")
  37. local rgbbar = Instance.new("Frame")
  38. local title = Instance.new("TextLabel")
  39. local OpenClose = Instance.new("TextButton")
  40. local container = Instance.new("Frame")
  41. local UIListLayout = Instance.new("UIListLayout")
  42.  
  43. topbar.Name = "topbar"
  44. topbar.Parent = DaUiLib
  45. topbar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  46. topbar.BorderSizePixel = 0
  47. topbar.Position = UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, -500)
  48. wait(0.3)
  49. topbar:TweenPosition(UDim2.new(0, (tabcount)*13+(tabcount-1)*200, 0.0128041022, 0))
  50.  
  51. topbar.Size = UDim2.new(0, 200, 0, 30)
  52.  
  53. rgbbar.Name = "rgbbar"
  54. rgbbar.Parent = topbar
  55. rgbbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. rgbbar.BorderSizePixel = 0
  57. rgbbar.Position = UDim2.new(0, 0, 1, -3)
  58. rgbbar.Size = UDim2.new(1, 0, 0, 3)
  59.  
  60. title.Name = "title"
  61. title.Parent = topbar
  62. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. title.BackgroundTransparency = 1.000
  64. title.BorderSizePixel = 0
  65. title.Position = UDim2.new(0, 5, 0, 0)
  66. title.Size = UDim2.new(1, -40, 1, 0)
  67. title.Font = Enum.Font.GothamBold
  68. title.Text = name
  69. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  70. title.TextSize = 16.000
  71. title.TextXAlignment = Enum.TextXAlignment.Left
  72.  
  73. OpenClose.Name = "OpenClose"
  74. OpenClose.Parent = topbar
  75. OpenClose.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  76. OpenClose.BackgroundTransparency = 1.000
  77. OpenClose.Position = UDim2.new(0.861656487, 0, 0.0666666701, 0)
  78. OpenClose.Size = UDim2.new(0, 27, 0, 25)
  79. OpenClose.Font = Enum.Font.GothamBold
  80. OpenClose.Text = "+"
  81. OpenClose.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. OpenClose.TextSize = 20.000
  83.  
  84.  
  85. container.Name = "container"
  86. container.Parent = topbar
  87. container.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  88. container.BackgroundTransparency = 1.000
  89. container.BorderSizePixel = 0
  90. container.Position = UDim2.new(0, 2, 1, 0)
  91. container.Size = UDim2.new(1, -4, 0, 0)
  92. container.Visible = false
  93.  
  94.  
  95. UIListLayout.Parent = container
  96. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  97.  
  98.  
  99. OpenClose.MouseButton1Click:connect(function()
  100.  
  101. if container.Visible == false then
  102.  
  103.  
  104. container.Visible = true
  105.  
  106. OpenClose.Text = "-"
  107.  
  108.  
  109.  
  110. elseif container.Visible == true then
  111.  
  112.  
  113.  
  114. -- check
  115.  
  116.  
  117. container.Visible = false
  118.  
  119. OpenClose.Text = "+"
  120.  
  121.  
  122. end
  123.  
  124. end)
  125.  
  126.  
  127.  
  128.  
  129.  
  130. local uis = game:GetService("UserInputService")
  131. local dragthing = topbar
  132. dragthing.Active = true
  133.  
  134. local dragging
  135. local draginput
  136. local dragstart
  137. local startpos
  138.  
  139. local function update(input)
  140. local delta = input.Position - dragstart
  141. game:GetService("TweenService"):Create(dragthing, TweenInfo.new(.15), {Position = UDim2.new(startpos.X.Scale, startpos.X.Offset + delta.X, startpos.Y.Scale, startpos.Y.Offset + delta.Y)}):Play()
  142. end
  143.  
  144. dragthing.InputBegan:Connect(function(input)
  145. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  146. dragging = true
  147. dragstart = input.Position
  148. startpos = dragthing.Position
  149.  
  150. input.Changed:Connect(function()
  151. if input.UserInputState == Enum.UserInputState.End then
  152. dragging = false
  153. end
  154. end)
  155. end
  156. end)
  157.  
  158. dragthing.InputChanged:Connect(function(input)
  159. if input.UserInputType == Enum.UserInputType.MouseMovement then
  160. draginput = input
  161. end
  162. end)
  163.  
  164. uis.InputChanged:Connect(function(input)
  165. if input == draginput and dragging then
  166. update(input)
  167. end
  168. end)
  169.  
  170.  
  171.  
  172.  
  173. local GamerLibrary = {}
  174.  
  175.  
  176. function GamerLibrary:CreateButton(name,func)
  177. local ButtonFrame = Instance.new("Frame")
  178. local Button = Instance.new("TextButton")
  179.  
  180. ButtonFrame.Name = "ButtonFrame"
  181. ButtonFrame.Parent = container
  182. ButtonFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  183. ButtonFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  184. ButtonFrame.BorderSizePixel = 0
  185. ButtonFrame.Size = UDim2.new(0, 196, 0, 25)
  186.  
  187. Button.Name = "Button"
  188. Button.Parent = ButtonFrame
  189. Button.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  190. Button.BorderSizePixel = 0
  191. Button.Position = UDim2.new(0.0430000164, 0, 0.170000002, 0)
  192. Button.Size = UDim2.new(0, 180, 0, 18)
  193. Button.Font = Enum.Font.GothamBold
  194. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  195. Button.TextSize = 12.000
  196. Button.TextWrapped = true
  197. Button.Text = name
  198.  
  199. Button.MouseButton1Click:Connect(func);
  200.  
  201.  
  202. end
  203.  
  204. function GamerLibrary:CreateLabel(name)
  205.  
  206. local LabelFrame = Instance.new("Frame")
  207. local LabelTitle = Instance.new("TextLabel")
  208.  
  209. LabelFrame.Name = "LabelFrame"
  210. LabelFrame.Parent = container
  211. LabelFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  212. LabelFrame.BorderSizePixel = 0
  213. LabelFrame.Position = UDim2.new(0, 0, 0.416666657, 0)
  214. LabelFrame.Size = UDim2.new(0, 196, 0, 20)
  215.  
  216. LabelTitle.Name = "LabelTitle"
  217. LabelTitle.Parent = LabelFrame
  218. LabelTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  219. LabelTitle.BackgroundTransparency = 1.000
  220. LabelTitle.Position = UDim2.new(0.00613496918, 0, 0.25, 0)
  221. LabelTitle.Size = UDim2.new(0, 196, 0, 11)
  222. LabelTitle.Font = Enum.Font.GothamBold
  223. LabelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  224. LabelTitle.TextSize = 12.000
  225. LabelTitle.Text = name
  226.  
  227. end
  228.  
  229. function GamerLibrary:CreateToggle(name, func)
  230. local ToggleFrame = Instance.new("Frame")
  231. local ToggleTitle = Instance.new("TextLabel")
  232. local OnOffButton = Instance.new("TextButton")
  233.  
  234.  
  235. ToggleFrame.Name = "ToggleFrame"
  236. ToggleFrame.Parent = container
  237. ToggleFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  238. ToggleFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  239. ToggleFrame.BorderSizePixel = 0
  240. ToggleFrame.Position = UDim2.new(0, 0, 0.223333329, 0)
  241. ToggleFrame.Size = UDim2.new(0, 196, 0, 25)
  242.  
  243. ToggleTitle.Name = "ToggleTitle"
  244. ToggleTitle.Parent = ToggleFrame
  245. ToggleTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  246. ToggleTitle.BackgroundTransparency = 1.000
  247. ToggleTitle.Position = UDim2.new(0.0533092804, 0, 0.129999995, 0)
  248. ToggleTitle.Size = UDim2.new(0, 148, 0, 18)
  249. ToggleTitle.Font = Enum.Font.GothamBold
  250. ToggleTitle.Text = name
  251. ToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  252. ToggleTitle.TextSize = 12.000
  253. ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  254.  
  255. OnOffButton.Name = "OnOffButton"
  256. OnOffButton.Parent = ToggleTitle
  257. OnOffButton.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  258. OnOffButton.BackgroundTransparency = 1.000
  259. OnOffButton.Position = UDim2.new(-0.0470066592, 0, -0.0166659914, 0)
  260. OnOffButton.Size = UDim2.new(0, 186, 0, 18)
  261. OnOffButton.Font = Enum.Font.GothamBold
  262. OnOffButton.Text = "OFF"
  263. OnOffButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  264. OnOffButton.TextSize = 12.000
  265. OnOffButton.TextWrapped = true
  266. OnOffButton.TextXAlignment = Enum.TextXAlignment.Right
  267.  
  268.  
  269.  
  270.  
  271. OnOffButton.MouseButton1Click:Connect(function()
  272. if OnOffButton.Text == "OFF" then
  273. func(true)
  274. OnOffButton.Text = "ON"
  275. OnOffButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  276.  
  277. elseif OnOffButton.Text == "ON" then
  278. func(false)
  279. OnOffButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  280. OnOffButton.Text = "OFF"
  281. end
  282. end)
  283.  
  284. end
  285.  
  286. function GamerLibrary:CreateSlider(name,min,max,func)
  287.  
  288. local SliderFrame = Instance.new("Frame")
  289. local SliderValue = Instance.new("TextLabel")
  290. local Slider = Instance.new("Frame")
  291. local Bar = Instance.new("Frame")
  292. local Knob = Instance.new("TextButton")
  293. local SliderText = Instance.new("TextLabel")
  294.  
  295. SliderFrame.Name = "SliderFrame"
  296. SliderFrame.Parent = container
  297. SliderFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  298. SliderFrame.BorderSizePixel = 0
  299. SliderFrame.Position = UDim2.new(0, 0, 0.306666672, 0)
  300. SliderFrame.Size = UDim2.new(0, 196, 0, 25)
  301.  
  302. SliderValue.Name = "SliderValue"
  303. SliderValue.Parent = SliderFrame
  304. SliderValue.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  305. SliderValue.BackgroundTransparency = 1.000
  306. SliderValue.Position = UDim2.new(0.247160614, 0, 0.170000002, 0)
  307. SliderValue.Size = UDim2.new(0, 68, 0, 11)
  308. SliderValue.Font = Enum.Font.GothamBold
  309. SliderValue.Text = min
  310. SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
  311. SliderValue.TextSize = 12.000
  312. SliderValue.TextXAlignment = Enum.TextXAlignment.Right
  313.  
  314. Slider.Name = "Slider"
  315. Slider.Parent = SliderFrame
  316. Slider.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  317. Slider.BackgroundTransparency = 1.000
  318. Slider.BorderSizePixel = 0
  319. Slider.Size = UDim2.new(0, 281, 0, 10)
  320.  
  321. Bar.Name = "Bar"
  322. Bar.Parent = Slider
  323. Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  324. Bar.BorderSizePixel = 0
  325. Bar.Position = UDim2.new(0.434163719, 0, 0.692307711, 0)
  326. Bar.Size = UDim2.new(0, 67, 0, 3)
  327.  
  328. Knob.Name = "Knob"
  329. Knob.Parent = Bar
  330. Knob.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  331. Knob.Position = UDim2.new(0, 0, -2.58333325, 0)
  332. Knob.Size = UDim2.new(0, 5, 0, 15)
  333. Knob.Font = Enum.Font.SourceSans
  334. Knob.Text = ""
  335. Knob.TextColor3 = Color3.fromRGB(0, 0, 0)
  336. Knob.TextSize = 14.000
  337.  
  338. SliderText.Name = "SliderText"
  339. SliderText.Parent = SliderFrame
  340. SliderText.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  341. SliderText.BackgroundTransparency = 1.000
  342. SliderText.Position = UDim2.new(0.0522887409, 0, 0, 0)
  343. SliderText.Size = UDim2.new(0, 81, 0, 21)
  344. SliderText.Font = Enum.Font.GothamBold
  345. SliderText.Text = name
  346. SliderText.TextColor3 = Color3.fromRGB(255, 255, 255)
  347. SliderText.TextSize = 12.000
  348. SliderText.TextXAlignment = Enum.TextXAlignment.Left
  349.  
  350.  
  351.  
  352. local knob = Knob;
  353. local valueChangedEvent = Instance.new("BindableEvent")
  354. local startXScale = -.05;
  355. local endXScale = .95;
  356. local MinValue = min
  357. local MaxValue = max
  358. local Valueasd;
  359. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  360.  
  361. valueChangedEvent.Name = "ValueChanged"
  362. valueChangedEvent.Archivable = true
  363.  
  364. -- Updates the position of the knob as well as the value
  365. local prevValue = nil;
  366. local function Update()
  367. local absPosition = Bar.AbsolutePosition.X;
  368. local absSize = Bar.AbsoluteSize.X;
  369. local mouseDelta = math.min(math.max(0, mouse.X - absPosition), absSize);
  370. local value = MinValue + ((mouseDelta / absSize) * (MaxValue - MinValue));
  371. Valueasd = math.floor(value)
  372. SliderValue.Text = math.floor(value)
  373. knob.Position = UDim2.new((mouseDelta / absSize) - .05, knob.Position.X.Offset, knob.Position.Y.Scale, knob.Position.Y.Offset);
  374. if (prevValue ~= nil and math.floor(prevValue) ~= math.floor(value)) then
  375. valueChangedEvent:Fire(prevValue, math.floor(value));
  376. prevValue = math.floor(value);
  377. else
  378. prevValue = math.floor(value);
  379. end
  380. end
  381.  
  382. -- Coroutine to keep updating
  383. local keepUpdating = false;
  384. local function Updater()
  385. while (true) do
  386. if (keepUpdating) then
  387. Update()
  388. func(Valueasd)
  389. end
  390. wait(.05)
  391. end
  392. end
  393. local taskCoro = coroutine.create(Updater)
  394. coroutine.resume(taskCoro);
  395.  
  396. -- Event Connecting
  397. knob.MouseButton1Down:Connect(function()
  398. keepUpdating = true;
  399.  
  400. end)
  401. local UserInputService = game:GetService("UserInputService")
  402. UserInputService.InputEnded:Connect(function(inputObject)
  403. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then
  404. keepUpdating = false;
  405.  
  406. end
  407. end)
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414. end
  415.  
  416. function GamerLibrary:CreateKeybind(name,defkey, func)
  417.  
  418.  
  419. local KeybindFrame = Instance.new("Frame")
  420. local KeybindTitle = Instance.new("TextLabel")
  421. local KeybindButton = Instance.new("TextButton")
  422.  
  423.  
  424. KeybindFrame.Name = "KeybindFrame"
  425. KeybindFrame.Parent = container
  426. KeybindFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  427. KeybindFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  428. KeybindFrame.BorderSizePixel = 0
  429. KeybindFrame.Position = UDim2.new(0, 0, 0.25, 0)
  430. KeybindFrame.Size = UDim2.new(0, 196, 0, 25)
  431.  
  432. KeybindTitle.Name = "KeybindTitle"
  433. KeybindTitle.Parent = KeybindFrame
  434. KeybindTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  435. KeybindTitle.BackgroundTransparency = 1.000
  436. KeybindTitle.Position = UDim2.new(0.0535309762, 0, 0.129999995, 0)
  437. KeybindTitle.Size = UDim2.new(0, 142, 0, 18)
  438. KeybindTitle.Font = Enum.Font.GothamBold
  439. KeybindTitle.Text = name
  440. KeybindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  441. KeybindTitle.TextSize = 12.000
  442. KeybindTitle.TextXAlignment = Enum.TextXAlignment.Left
  443.  
  444. KeybindButton.Name = "KeybindButton"
  445. KeybindButton.Parent = KeybindTitle
  446. KeybindButton.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  447. KeybindButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  448. KeybindButton.Position = UDim2.new(0.952993333, 0, -0.0166659877, 0)
  449. KeybindButton.Size = UDim2.new(0, 36, 0, 18)
  450. KeybindButton.Font = Enum.Font.GothamBold
  451. KeybindButton.Text = string.upper(defkey)
  452. KeybindButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  453. KeybindButton.TextSize = 12.000
  454. KeybindButton.TextWrapped = true
  455.  
  456. local enabled = false
  457. local mouse = game.Players.LocalPlayer:GetMouse()
  458.  
  459.  
  460. KeybindButton.MouseButton1Click:connect(function()
  461. KeybindButton.Text = "..."
  462. enabled = true
  463.  
  464.  
  465. mouse.KeyDown:Connect(function(key1)
  466. if enabled == true then
  467. KeybindButton.Text = string.upper(key1)
  468. enabled = false
  469. end
  470. end)
  471.  
  472.  
  473. end)
  474.  
  475.  
  476.  
  477. local enabled2 = false
  478.  
  479.  
  480. mouse.KeyDown:Connect(function(key223)
  481. enabled2 = true
  482. if key223 == string.lower(KeybindButton.Text) then
  483. if enabled2 == true then
  484. func()
  485. enabled2 = false
  486. end
  487. end
  488. end)
  489.  
  490.  
  491.  
  492. end
  493.  
  494. function GamerLibrary:CreatePlayerDropdown(name, func)
  495. local DropDownFrame = Instance.new("Frame")
  496. local DropDownTitle = Instance.new("TextLabel")
  497. local DropdownContainer = Instance.new("Frame")
  498. local Player1 = Instance.new("TextButton")
  499. local Player2 = Instance.new("TextButton")
  500. local Player3 = Instance.new("TextButton")
  501. local Player4 = Instance.new("TextButton")
  502. local Player5 = Instance.new("TextButton")
  503. local Player6 = Instance.new("TextButton")
  504. local UIListLayout_2 = Instance.new("UIListLayout")
  505. local DropDownClose = Instance.new("TextButton")
  506.  
  507.  
  508.  
  509. DropDownFrame.Name = "DropDownFrame"
  510. DropDownFrame.Parent = container
  511. DropDownFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  512. DropDownFrame.BorderSizePixel = 0
  513. DropDownFrame.Position = UDim2.new(0, 0, 0.0833333358, 0)
  514. DropDownFrame.Size = UDim2.new(0, 196, 0, 25)
  515.  
  516. DropDownTitle.Name = "DropDownTitle"
  517. DropDownTitle.Parent = DropDownFrame
  518. DropDownTitle.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  519. DropDownTitle.BorderSizePixel = 0
  520. DropDownTitle.Position = UDim2.new(0.0430000164, 0, 0.170000002, 0)
  521. DropDownTitle.Size = UDim2.new(0, 181, 0, 18)
  522. DropDownTitle.Font = Enum.Font.GothamBold
  523. DropDownTitle.Text = "Select Player"
  524. DropDownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  525. DropDownTitle.TextSize = 12.000
  526.  
  527. DropdownContainer.Name = "DropdownContainer"
  528. DropdownContainer.Parent = DropDownTitle
  529. DropdownContainer.Active = true
  530. DropdownContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  531. DropdownContainer.BackgroundTransparency = 0
  532. DropdownContainer.Position = UDim2.new(0.00245944713, 0, 1.19658232, 0)
  533. DropdownContainer.Size = UDim2.new(0, 179, 0, 0)
  534. DropdownContainer.Visible = false
  535. DropdownContainer.LayoutOrder = -214748364
  536.  
  537. Player1.Name = "Player1"
  538. Player1.Parent = DropdownContainer
  539. Player1.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  540. Player1.BorderColor3 = Color3.fromRGB(255, 255, 255)
  541. Player1.BorderSizePixel = 0
  542. Player1.Size = UDim2.new(0, 179, 0, 18)
  543. Player1.Font = Enum.Font.GothamBold
  544. Player1.TextColor3 = Color3.fromRGB(255, 255, 255)
  545. Player1.TextSize = 12.000
  546. Player1.TextWrapped = true
  547. Player1.Text = "***"
  548.  
  549. Player2.Name = "Player2"
  550. Player2.Parent = DropdownContainer
  551. Player2.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  552. Player2.BorderColor3 = Color3.fromRGB(255, 255, 255)
  553. Player2.BorderSizePixel = 0
  554. Player2.Size = UDim2.new(0, 179, 0, 18)
  555. Player2.Font = Enum.Font.GothamBold
  556. Player2.TextColor3 = Color3.fromRGB(255, 255, 255)
  557. Player2.TextSize = 12.000
  558. Player2.TextWrapped = true
  559. Player2.Text = "***"
  560.  
  561. Player3.Name = "Player3"
  562. Player3.Parent = DropdownContainer
  563. Player3.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  564. Player3.BorderColor3 = Color3.fromRGB(255, 255, 255)
  565. Player3.BorderSizePixel = 0
  566. Player3.Size = UDim2.new(0, 179, 0, 18)
  567. Player3.Font = Enum.Font.GothamBold
  568. Player3.TextColor3 = Color3.fromRGB(255, 255, 255)
  569. Player3.TextSize = 12.000
  570. Player3.TextWrapped = true
  571. Player3.Text = "***"
  572.  
  573. Player4.Name = "Player4"
  574. Player4.Parent = DropdownContainer
  575. Player4.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  576. Player4.BorderColor3 = Color3.fromRGB(255, 255, 255)
  577. Player4.BorderSizePixel = 0
  578. Player4.Size = UDim2.new(0, 179, 0, 18)
  579. Player4.Font = Enum.Font.GothamBold
  580. Player4.TextColor3 = Color3.fromRGB(255, 255, 255)
  581. Player4.TextSize = 12.000
  582. Player4.TextWrapped = true
  583. Player4.Text = "***"
  584.  
  585. Player5.Name = "Player5"
  586. Player5.Parent = DropdownContainer
  587. Player5.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  588. Player5.BorderColor3 = Color3.fromRGB(255, 255, 255)
  589. Player5.BorderSizePixel = 0
  590. Player5.Size = UDim2.new(0, 179, 0, 18)
  591. Player5.Font = Enum.Font.GothamBold
  592. Player5.TextColor3 = Color3.fromRGB(255, 255, 255)
  593. Player5.TextSize = 12.000
  594. Player5.TextWrapped = true
  595. Player5.Text = "***"
  596.  
  597. Player6.Name = "Player6"
  598. Player6.Parent = DropdownContainer
  599. Player6.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  600. Player6.BorderColor3 = Color3.fromRGB(255, 255, 255)
  601. Player6.BorderSizePixel = 0
  602. Player6.Size = UDim2.new(0, 179, 0, 18)
  603. Player6.Font = Enum.Font.GothamBold
  604. Player6.TextColor3 = Color3.fromRGB(255, 255, 255)
  605. Player6.TextSize = 12.000
  606. Player6.TextWrapped = true
  607. Player6.Text = "***"
  608.  
  609.  
  610. UIListLayout_2.Parent = DropdownContainer
  611. UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  612.  
  613. DropDownClose.Name = "OpenClose"
  614. DropDownClose.Parent = DropDownTitle
  615. DropDownClose.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  616. DropDownClose.BackgroundTransparency = 1.000
  617. DropDownClose.Position = UDim2.new(0, 0, -0.017, 0)
  618. DropDownClose.Size = UDim2.new(0, 180, 0, 18)
  619. DropDownClose.Font = Enum.Font.GothamBold
  620. DropDownClose.Text = "▼ "
  621. DropDownClose.TextColor3 = Color3.fromRGB(255, 255, 255)
  622. DropDownClose.TextSize = 12.000
  623. DropDownClose.TextWrapped = true
  624. DropDownClose.TextXAlignment = Enum.TextXAlignment.Right
  625.  
  626.  
  627.  
  628.  
  629. DropDownClose.MouseButton1Click:Connect(function()
  630. if DropdownContainer.Visible == false then
  631. DropDownTitle.Text = "Select Player"
  632. DropdownContainer.Visible = true
  633. DropDownClose.Text = "▲ "
  634.  
  635. elseif DropdownContainer.Visible == true then
  636.  
  637. DropdownContainer.Visible = false
  638. DropDownClose.Text = "▼ "
  639.  
  640. end
  641. end)
  642.  
  643. Player1.MouseButton1Down:connect(function()
  644. DropDownTitle.Text = Player1.Text
  645. func(DropDownTitle.Text)
  646. DropdownContainer.Visible = false
  647. DropDownClose.Text = "▼ "
  648. if DropDownTitle.Text == "***" then
  649. DropDownTitle.Text = "Select Player"
  650. end
  651. end)
  652. Player2.MouseButton1Down:connect(function()
  653. DropDownTitle.Text = Player2.Text
  654. func(DropDownTitle.Text)
  655. DropdownContainer.Visible = false
  656. DropDownClose.Text = "▼ "
  657. if DropDownTitle.Text == "***" then
  658. DropDownTitle.Text = "Select Player"
  659. end
  660. end)
  661. Player3.MouseButton1Down:connect(function()
  662. DropDownTitle.Text = Player3.Text
  663. func(DropDownTitle.Text)
  664. DropdownContainer.Visible = false
  665. DropDownClose.Text = "▼ "
  666. if DropDownTitle.Text == "***" then
  667. DropDownTitle.Text = "Select Player"
  668. end
  669. end)
  670. Player4.MouseButton1Down:connect(function()
  671. DropDownTitle.Text = Player4.Text
  672. func(DropDownTitle.Text)
  673. DropdownContainer.Visible = false
  674. DropDownClose.Text = "▼ "
  675. if DropDownTitle.Text == "***" then
  676. DropDownTitle.Text = "Select Player"
  677.  
  678. end
  679. end)
  680. Player5.MouseButton1Down:connect(function()
  681. DropDownTitle.Text = Player5.Text
  682. func(DropDownTitle.Text)
  683. DropdownContainer.Visible = false
  684. DropDownClose.Text = "▼ "
  685. if DropDownTitle.Text == "***" then
  686. DropDownTitle.Text = "Select Player"
  687. end
  688. end)
  689. Player6.MouseButton1Down:connect(function()
  690. DropDownTitle.Text = Player6.Text
  691. func(DropDownTitle.Text)
  692. DropdownContainer.Visible = false
  693. DropDownClose.Text = "▼ "
  694. if DropDownTitle.Text == "***" then
  695. DropDownTitle.Text = "Select Player"
  696. end
  697. end)
  698. local buttons = {
  699. Player1,
  700. Player2,
  701. Player3,
  702. Player4,
  703. Player5,
  704. Player6
  705. }
  706.  
  707. for i, v in pairs(game.Players:GetChildren()) do
  708. buttons[i].Text = v.Name
  709. buttons[i].Visible = true
  710. end
  711. game.Players.PlayerRemoving:connect(function()
  712. for i, v in pairs(game.Players:GetChildren()) do
  713. buttons[i].Text = v.Name
  714. buttons[i].Visible = true
  715. end
  716. end)
  717. game.Players.PlayerAdded:connect(function()
  718. for i, v in pairs(game.Players:GetChildren()) do
  719. buttons[i].Text = v.Name
  720. buttons[i].Visible = true
  721. end
  722. end)
  723.  
  724.  
  725. end
  726.  
  727. return GamerLibrary;
  728.  
  729.  
  730.  
  731. end
  732.  
  733. return library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement