Advertisement
RDMScript

Untitled

Jan 18th, 2020
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.66 KB | None | 0 0
  1. local exploit = (pebc_execute and 'ProtoSmasher' or 'synapse' or 'BaconHax');
  2.  
  3. local UIS = game:GetService("UserInputService")
  4.  
  5. local TweenService = game:GetService("TweenService")
  6.  
  7. local ScreenGui = Instance.new("ScreenGui")
  8.  
  9.  
  10.  
  11. if exploit == 'synapse' then
  12.  
  13. syn.protect_gui(ScreenGui)
  14.  
  15. elseif exploit == 'ProtoSmasher' and pebc_execute then
  16.  
  17. get_hidden_gui(ScreenGui)
  18.  
  19. elseif exploit == 'BaconHax' and pebc_execute then
  20.  
  21. get_hidden_gui(ScreenGui)
  22.  
  23. end
  24.  
  25.  
  26.  
  27. ScreenGui.Parent = game:GetService("CoreGui")
  28.  
  29. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. ScreenGui.Name = "EdgeMain"
  32.  
  33.  
  34.  
  35. UIS.InputBegan:Connect(function(Input, gameProcessedEvent, onGui)
  36.  
  37. if onGui then return; end;
  38.  
  39. if gameProcessedEvent then return end
  40.  
  41.  
  42.  
  43. if Input.KeyCode == Enum.KeyCode.RightShift then
  44.  
  45. ScreenGui.Enabled = not ScreenGui.Enabled
  46.  
  47. end
  48.  
  49. end)
  50.  
  51.  
  52.  
  53. local Library = {}
  54.  
  55.  
  56.  
  57. Library.Colors = {}
  58.  
  59. Library.Colors.Underline = Color3.new(1, 1, 1)
  60.  
  61. Library.Colors.Header = Color3.new(0.117647, 0.117647, 0.117647)
  62.  
  63. Library.Colors.Body = Color3.new(0.0980392, 0.0980392, 0.0980392)
  64.  
  65. Library.Colors.Text = Color3.new(1, 1, 1)
  66.  
  67. Library.Colors.TextLabel = Color3.new(0.117647, 0.117647, 0.117647)
  68.  
  69. Library.Colors.Button = Color3.new(0.117647, 0.117647, 0.117647)
  70.  
  71. Library.Colors.Dropdown = Color3.new(0.117647, 0.117647, 0.117647)
  72.  
  73. Library.Colors.PlaceholderText = Color3.new(0.635294, 0.635294, 0.635294)
  74.  
  75. Library.Colors.HideButton = Color3.new(0.941177, 0.941177, 0.941177)
  76.  
  77. Library.Colors.Border = Color3.new(0.196078, 0.196078, 0.196078)
  78.  
  79. Library.Colors.Checkbox = {}
  80.  
  81. Library.Colors.Checkbox.Checked = Color3.new(1, 1, 1)
  82.  
  83. Library.Colors.Checkbox.Unchecked = Color3.new(0.117647, 0.117647, 0.117647)
  84.  
  85.  
  86.  
  87. local function GetNextWindowPosition()
  88.  
  89. local BiggestSize = 0;
  90.  
  91. local SOffset = nil;
  92.  
  93. for i,v in pairs(ScreenGui:GetChildren()) do
  94.  
  95. if v.Position.X.Offset>BiggestSize then
  96.  
  97. BiggestSize = v.Position.X.Offset
  98.  
  99. SOffset = v;
  100.  
  101. end
  102.  
  103. end
  104.  
  105. if BiggestSize == 0 then
  106.  
  107. BiggestSize = BiggestSize + 5;
  108.  
  109. else
  110.  
  111. BiggestSize = BiggestSize + SOffset.Size.X.Offset + 5;
  112.  
  113. end
  114.  
  115.  
  116.  
  117. return BiggestSize;
  118.  
  119. end
  120.  
  121.  
  122.  
  123. local function RotateBounce(part, new, _delay)
  124.  
  125. _delay = _delay or 0.5
  126.  
  127. local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out)
  128.  
  129. local tween = TweenService:Create(part, tweenInfo, new)
  130.  
  131. tween:Play()
  132.  
  133. end
  134.  
  135.  
  136.  
  137. local function RotateQuad(part, new, _delay)
  138.  
  139. _delay = _delay or 0.5
  140.  
  141. local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
  142.  
  143. local tween = TweenService:Create(part, tweenInfo, new)
  144.  
  145. tween:Play()
  146.  
  147. end
  148.  
  149.  
  150.  
  151. function Library:CreateTab(title)
  152.  
  153. local UserInputService = game:GetService("UserInputService")
  154.  
  155. local Dragging
  156.  
  157. local DragInput
  158.  
  159. local DragStart
  160.  
  161. local StartPosition
  162.  
  163. local Top = Instance.new("Frame")
  164.  
  165. local Style = Instance.new("Frame")
  166.  
  167. local Body = Instance.new("Frame")
  168.  
  169. local Title = Instance.new("TextLabel")
  170.  
  171. local Hide = Instance.new("TextButton")
  172.  
  173. local UIListLayout = Instance.new("UIListLayout")
  174.  
  175.  
  176.  
  177. Top.Name = title
  178.  
  179.  
  180.  
  181. Top.BackgroundColor3 = Library.Colors.Header
  182.  
  183. Top.BorderSizePixel = 0
  184.  
  185. Top.Position = UDim2.new(0, GetNextWindowPosition()+ 20, 0, 45)
  186.  
  187. Top.Size = UDim2.new(0, 238, 0, 31)
  188.  
  189. Top.Active = true
  190.  
  191. Top.Draggable = true;
  192.  
  193. Top.Parent = ScreenGui
  194.  
  195.  
  196.  
  197. local function update(input)
  198.  
  199. local delta = input.Position - DragStart
  200.  
  201. Top.Position = UDim2.new(StartPosition.X.Scale, StartPosition.X.Offset + delta.X, StartPosition.Y.Scale, StartPosition.Y.Offset + delta.Y)
  202.  
  203. end
  204.  
  205. Top.InputBegan:Connect(function(input)
  206.  
  207. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  208.  
  209. Dragging = true
  210.  
  211. DragStart = input.Position
  212.  
  213. StartPosition = Top.Position
  214.  
  215.  
  216.  
  217. input.Changed:Connect(function()
  218.  
  219. if input.UserInputState == Enum.UserInputState.End then
  220.  
  221. Dragging = false
  222.  
  223. end
  224.  
  225. end)
  226.  
  227. end
  228.  
  229. end)
  230.  
  231. Top.InputChanged:Connect(function(input)
  232.  
  233. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  234.  
  235. DragInput = input
  236.  
  237. end
  238.  
  239. end)
  240.  
  241. UserInputService.InputChanged:Connect(function(input)
  242.  
  243. if input == DragInput and Dragging then
  244.  
  245. update(input)
  246.  
  247. end
  248.  
  249. end)
  250.  
  251.  
  252.  
  253. Style.Name = "Style"
  254.  
  255. Style.Parent = Top
  256.  
  257. Style.BackgroundColor3 = Library.Colors.Underline
  258.  
  259. Style.BorderSizePixel = 0
  260.  
  261. Style.Position = UDim2.new(0, 0, 0.935483873, 0)
  262.  
  263. Style.Size = UDim2.new(1, 0, 0, 2)
  264.  
  265.  
  266.  
  267. Body.Name = "Body"
  268.  
  269. Body.Parent = Style
  270.  
  271. Body.BackgroundColor3 = Library.Colors.Body
  272.  
  273. Body.BorderSizePixel = 0
  274.  
  275. Body.Position = UDim2.new(0, 0, 1, 0)
  276.  
  277. Body.Size = UDim2.new(1, 0, 0, 85)
  278.  
  279. Body.ClipsDescendants = true
  280.  
  281.  
  282.  
  283. Title.Name = "Title"
  284.  
  285. Title.Parent = Top
  286.  
  287. Title.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  288.  
  289. Title.BackgroundTransparency = 1
  290.  
  291. Title.Position = UDim2.new(0.0336134471, 0, 0, 0)
  292.  
  293. Title.Size = UDim2.new(0, 205, 0, 29)
  294.  
  295. Title.Font = Enum.Font.Code
  296.  
  297. Title.Text = title
  298.  
  299. Title.TextColor3 = Library.Colors.Text
  300.  
  301. Title.TextSize = 16
  302.  
  303. Title.TextXAlignment = Enum.TextXAlignment.Left
  304.  
  305.  
  306.  
  307. Hide.Name = "Hide"
  308.  
  309. Hide.Parent = Top
  310.  
  311. Hide.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  312.  
  313. Hide.BackgroundTransparency = 1
  314.  
  315. Hide.Position = UDim2.new(0.89495796, 0, 0, 0)
  316.  
  317. Hide.Size = UDim2.new(0, 25, 0.935483873, 0)
  318.  
  319. Hide.AutoButtonColor = false
  320.  
  321. Hide.Font = Enum.Font.Code
  322.  
  323. Hide.Text = "-"
  324.  
  325. Hide.TextColor3 = Library.Colors.HideButton
  326.  
  327. Hide.TextSize = 16
  328.  
  329.  
  330.  
  331. Top.InputBegan:Connect(function(input)
  332.  
  333. if input.UserInputType == Enum.UserInputType.MouseMovement then
  334.  
  335. game:GetService("TweenService"):Create(Top, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}):Play();
  336.  
  337. end
  338.  
  339. end)
  340.  
  341.  
  342.  
  343. Top.InputEnded:Connect(function(input)
  344.  
  345. if input.UserInputType == Enum.UserInputType.MouseMovement then
  346.  
  347. game:GetService("TweenService"):Create(Top, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  348.  
  349. end
  350.  
  351. end)
  352.  
  353.  
  354.  
  355. local hidden = true;
  356.  
  357.  
  358.  
  359. Hide.MouseButton1Click:connect(function()
  360.  
  361. hidden = not hidden;
  362.  
  363. Body.Visible = hidden;
  364.  
  365. if hidden == true then
  366.  
  367. Hide.Text = "-"
  368.  
  369. RotateQuad(Hide, {Rotation = 180}, 0.50)
  370.  
  371. Hide.Rotation = 0
  372.  
  373. elseif hidden == false then
  374.  
  375. Hide.Text = "v"
  376.  
  377. RotateBounce(Hide, {Rotation = 360}, 0.50)
  378.  
  379. Hide.Rotation = 0
  380.  
  381. end
  382.  
  383. end)
  384.  
  385.  
  386.  
  387.  
  388.  
  389. local OldStarLibrary = {}
  390.  
  391.  
  392.  
  393.  
  394.  
  395. OldStarLibrary.Frame = Top;
  396.  
  397.  
  398.  
  399. local NextPosition = 5;
  400.  
  401.  
  402.  
  403. local function GetNextPosition()
  404.  
  405. local BiggestSize = 0;
  406.  
  407. local SOffset = nil;
  408.  
  409. for i,v in pairs(Body:GetChildren()) do
  410.  
  411. if v.Position.Y.Offset>BiggestSize then
  412.  
  413. BiggestSize = v.Position.Y.Offset
  414.  
  415. SOffset = v;
  416.  
  417. end
  418.  
  419. end
  420.  
  421. if BiggestSize == 0 then
  422.  
  423. BiggestSize = BiggestSize + 5;
  424.  
  425. else
  426.  
  427. BiggestSize = BiggestSize + SOffset.Size.Y.Offset + 5;
  428.  
  429. end
  430.  
  431.  
  432.  
  433. return BiggestSize;
  434.  
  435. end
  436.  
  437.  
  438.  
  439. local function GetNextSliderBodyPosition()
  440.  
  441. local BiggestSize = 0;
  442.  
  443. local SOffset = nil;
  444.  
  445. for i,v in pairs(Body:GetChildren()) do
  446.  
  447. if v.Position.Y.Offset>BiggestSize then
  448.  
  449. BiggestSize = v.Position.Y.Offset
  450.  
  451. SOffset = v;
  452.  
  453. end
  454.  
  455. end
  456.  
  457. if BiggestSize == 0 then
  458.  
  459. BiggestSize = BiggestSize + 20;
  460.  
  461. else
  462.  
  463. BiggestSize = BiggestSize + SOffset.Size.Y.Offset + 20;
  464.  
  465. end
  466.  
  467.  
  468.  
  469. return BiggestSize;
  470.  
  471. end
  472.  
  473.  
  474.  
  475. local function GetNextColorPickerBodyPosition()
  476.  
  477. local BiggestSize = 0;
  478.  
  479. local SOffset = nil;
  480.  
  481. for i,v in pairs(Body:GetChildren()) do
  482.  
  483. if v.Position.Y.Offset>BiggestSize then
  484.  
  485. BiggestSize = v.Position.Y.Offset
  486.  
  487. SOffset = v;
  488.  
  489. end
  490.  
  491. end
  492.  
  493. if BiggestSize == 0 then
  494.  
  495. BiggestSize = BiggestSize + -1;
  496.  
  497. else
  498.  
  499. BiggestSize = BiggestSize + SOffset.Size.Y.Offset + -1;
  500.  
  501. end
  502.  
  503.  
  504.  
  505. return BiggestSize;
  506.  
  507. end
  508.  
  509.  
  510.  
  511. local function GamerPosition()
  512.  
  513. local BiggestSize = 0;
  514.  
  515. local SOffset = nil;
  516.  
  517. for i,v in pairs(Body:GetChildren()) do
  518.  
  519. if v.Position.Y.Offset>BiggestSize then
  520.  
  521. BiggestSize = v.Position.Y.Offset
  522.  
  523. SOffset = v;
  524.  
  525. end
  526.  
  527. end
  528.  
  529. if BiggestSize == 0 then
  530.  
  531. BiggestSize = BiggestSize + 1.5;
  532.  
  533. else
  534.  
  535. BiggestSize = BiggestSize + SOffset.Size.Y.Offset + 1.5;
  536.  
  537. end
  538.  
  539.  
  540.  
  541. return BiggestSize;
  542.  
  543. end
  544.  
  545.  
  546.  
  547. function OldStarLibrary:DisableClipsDescendants()
  548.  
  549. Body.ClipsDescendants = false
  550.  
  551. end
  552.  
  553.  
  554.  
  555. function OldStarLibrary:CustomizeUnderlineColor(chosencolor)
  556.  
  557. Style.BackgroundColor3 = chosencolor
  558.  
  559. end
  560.  
  561.  
  562.  
  563. function OldStarLibrary:CreateRenderSteppedCheckBox(title)
  564.  
  565. local Checkbox = Instance.new("TextButton")
  566.  
  567. local CheckboxLabel = Instance.new("TextLabel")
  568.  
  569. local checked = Instance.new("BoolValue")
  570.  
  571.  
  572.  
  573. Checkbox.Name = "Checkbox"
  574.  
  575.  
  576.  
  577. Checkbox.BackgroundColor3 = Library.Colors.Checkbox.Unchecked
  578.  
  579. Checkbox.BorderColor3 = Library.Colors.Checkbox.Unchecked
  580.  
  581.  
  582.  
  583. Checkbox.Size = UDim2.new(0, 20, 0, 20)
  584.  
  585. Checkbox.Font = Enum.Font.GothamBold
  586.  
  587. Checkbox.Text = ""
  588.  
  589. Checkbox.AutoButtonColor = false
  590.  
  591. Checkbox.TextColor3 = Library.Colors.Text
  592.  
  593. Checkbox.TextSize = 17
  594.  
  595.  
  596.  
  597. CheckboxLabel.Name = "CheckboxLabel"
  598.  
  599. CheckboxLabel.Parent = Checkbox
  600.  
  601. CheckboxLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  602.  
  603. CheckboxLabel.BackgroundTransparency = 1
  604.  
  605. CheckboxLabel.Position = UDim2.new(-10.3500004, 5, -0.0500000007, -1)
  606.  
  607. CheckboxLabel.Size = UDim2.new(0, 228, 0, 20)
  608.  
  609. CheckboxLabel.Font = Enum.Font.Code
  610.  
  611. CheckboxLabel.Text = title
  612.  
  613. CheckboxLabel.TextColor3 = Library.Colors.Text
  614.  
  615. CheckboxLabel.TextSize = 15
  616.  
  617. CheckboxLabel.TextWrapped = true
  618.  
  619. CheckboxLabel.TextXAlignment = Enum.TextXAlignment.Left
  620.  
  621.  
  622.  
  623. checked.Parent = Checkbox
  624.  
  625. checked.Name = "Checked"
  626.  
  627.  
  628.  
  629. Checkbox.Position = UDim2.new(0, 210, 0, GetNextPosition())
  630.  
  631.  
  632.  
  633.  
  634.  
  635. Checkbox.Parent = Body
  636.  
  637.  
  638.  
  639. Body.Size = UDim2.new(1,0,0,GetNextPosition())
  640.  
  641.  
  642.  
  643. Checkbox.MouseButton1Click:connect(function()
  644.  
  645. if checked.Value then
  646.  
  647. checked.Value = false
  648.  
  649. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  650.  
  651. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  652.  
  653. else
  654.  
  655. checked.Value = true
  656.  
  657. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play();
  658.  
  659. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.fromRGB(255, 255, 255)}):Play();
  660.  
  661. end
  662.  
  663.  
  664.  
  665.  
  666.  
  667. end)
  668.  
  669.  
  670.  
  671. local cb = {}
  672.  
  673.  
  674.  
  675. cb.Checked = checked;
  676.  
  677. cb.Frame = Checkbox
  678.  
  679.  
  680.  
  681. return cb
  682.  
  683. end
  684.  
  685.  
  686.  
  687.  
  688.  
  689. function OldStarLibrary:CreateCheckBox(title, action)
  690.  
  691. local Checkbox = Instance.new("TextButton")
  692.  
  693. local CheckboxLabel = Instance.new("TextLabel")
  694.  
  695.  
  696.  
  697. Checkbox.Name = "Checkbox"
  698.  
  699.  
  700.  
  701. Checkbox.BackgroundColor3 = Library.Colors.Checkbox.Unchecked
  702.  
  703. Checkbox.BorderColor3 = Library.Colors.Checkbox.Unchecked
  704.  
  705.  
  706.  
  707. Checkbox.Size = UDim2.new(0, 20, 0, 20)
  708.  
  709. Checkbox.Font = Enum.Font.GothamBold
  710.  
  711. Checkbox.Text = ""
  712.  
  713. Checkbox.AutoButtonColor = false
  714.  
  715. Checkbox.TextColor3 = Library.Colors.Text
  716.  
  717. Checkbox.TextSize = 17
  718.  
  719.  
  720.  
  721. CheckboxLabel.Name = "CheckboxLabel"
  722.  
  723. CheckboxLabel.Parent = Checkbox
  724.  
  725. CheckboxLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  726.  
  727. CheckboxLabel.BackgroundTransparency = 1
  728.  
  729. CheckboxLabel.Position = UDim2.new(-10.3500004, 5, -0.0500000007, -1)
  730.  
  731. CheckboxLabel.Size = UDim2.new(0, 228, 0, 20)
  732.  
  733. CheckboxLabel.Font = Enum.Font.Code
  734.  
  735. CheckboxLabel.Text = title
  736.  
  737. CheckboxLabel.TextColor3 = Library.Colors.Text
  738.  
  739. CheckboxLabel.TextSize = 15
  740.  
  741. CheckboxLabel.TextWrapped = true
  742.  
  743. CheckboxLabel.TextXAlignment = Enum.TextXAlignment.Left
  744.  
  745.  
  746.  
  747. Checkbox.Position = UDim2.new(0, 210, 0, GetNextPosition())
  748.  
  749.  
  750.  
  751. Checkbox.Parent = Body
  752.  
  753.  
  754.  
  755. Body.Size = UDim2.new(1,0,0,GetNextPosition())
  756.  
  757.  
  758.  
  759. Checkbox.MouseButton1Down:connect(function()
  760.  
  761. enabled = not enabled;
  762.  
  763. if enabled == true then
  764.  
  765. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play();
  766.  
  767. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.fromRGB(255, 255, 255)}):Play();
  768.  
  769. elseif enabled == false then
  770.  
  771. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  772.  
  773. game:GetService("TweenService"):Create(Checkbox, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  774.  
  775. end
  776.  
  777. action(enabled);
  778.  
  779. end)
  780.  
  781. end
  782.  
  783.  
  784.  
  785. function OldStarLibrary:CreateButton(title, action)
  786.  
  787. local Button = Instance.new("TextButton")
  788.  
  789.  
  790.  
  791. Button.Name = "Button"
  792.  
  793.  
  794.  
  795. Button.BackgroundColor3 = Library.Colors.Button
  796.  
  797. Button.BorderSizePixel = 0
  798.  
  799. Button.Position = UDim2.new(0, 5, 0, 110)
  800.  
  801. Button.Size = UDim2.new(1, -10, 0, 25)
  802.  
  803. Button.Font = Enum.Font.Code
  804.  
  805. Button.Text = title
  806.  
  807. Button.TextColor3 = Library.Colors.Text
  808.  
  809. Button.TextSize = 15
  810.  
  811. Button.TextXAlignment = Enum.TextXAlignment.Center
  812.  
  813. Button.AutoButtonColor = false
  814.  
  815. Button.ClipsDescendants = true
  816.  
  817.  
  818.  
  819. Button.Position = UDim2.new(0, 5, 0, GetNextPosition())
  820.  
  821.  
  822.  
  823. Button.Parent = Body
  824.  
  825.  
  826.  
  827. Body.Size = UDim2.new(1,0,0,GetNextPosition()+5)
  828.  
  829.  
  830.  
  831. Button.MouseButton1Down:Connect(action)
  832.  
  833.  
  834.  
  835. Button.MouseButton1Down:Connect(function()
  836.  
  837. RippleEffect(Button)
  838.  
  839. end)
  840.  
  841. end
  842.  
  843.  
  844.  
  845. function RippleEffect(button)
  846.  
  847. spawn(function()
  848.  
  849. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  850.  
  851. local RippleEffect = Instance.new("ImageLabel", button)
  852.  
  853. local RippleEffectInner = Instance.new("ImageLabel", RippleEffect)
  854.  
  855.  
  856.  
  857. RippleEffect.Name = "RippleEffect"
  858.  
  859. RippleEffect.BackgroundTransparency = 1
  860.  
  861. RippleEffect.BorderSizePixel = 0
  862.  
  863. RippleEffect.Image = "rbxassetid://2708891598"
  864.  
  865. RippleEffect.ImageColor3 = Color3.fromRGB(255, 255, 255)
  866.  
  867. RippleEffect.ImageTransparency = 0.7
  868.  
  869. RippleEffect.ScaleType = Enum.ScaleType.Fit
  870.  
  871.  
  872.  
  873. RippleEffectInner.Name = "RippleEffect"
  874.  
  875. RippleEffectInner.AnchorPoint = Vector2.new(0.5, 0.5)
  876.  
  877. RippleEffectInner.BackgroundTransparency = 1
  878.  
  879. RippleEffectInner.BorderSizePixel = 0
  880.  
  881. RippleEffectInner.Position = UDim2.new(0.5, 0, 0.5, 0)
  882.  
  883. RippleEffectInner.Size = UDim2.new(0.93, 0, 0.93, 0)
  884.  
  885. RippleEffectInner.Image = "rbxassetid://2708891598"
  886.  
  887. RippleEffectInner.ImageColor3 = Color3.fromRGB(45, 45, 45)
  888.  
  889. RippleEffectInner.ImageTransparency = 0.7
  890.  
  891. RippleEffectInner.ScaleType = Enum.ScaleType.Fit
  892.  
  893.  
  894.  
  895. RippleEffect.Position = UDim2.new((Mouse.X - RippleEffect.AbsolutePosition.X) / button.AbsoluteSize.X, 0, (Mouse.Y - RippleEffect.AbsolutePosition.Y) / button.AbsoluteSize.Y, 0)
  896.  
  897. RippleEffect:TweenSizeAndPosition(UDim2.new(12, 0, 12, 0), UDim2.new(-5.5, 0, -5.5, 0), "Out", "Quad", 0.33)
  898.  
  899. wait(0.01)
  900.  
  901. game.TweenService:Create(RippleEffect, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  902.  
  903. game.TweenService:Create(RippleEffectInner, TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {ImageTransparency = 1}):Play()
  904.  
  905. wait(0.51)
  906.  
  907. RippleEffect:Destroy();
  908.  
  909. end)
  910.  
  911. end
  912.  
  913.  
  914.  
  915. function OldStarLibrary:CreateTextBox(title, action)
  916.  
  917. local TextBox = Instance.new("TextBox")
  918.  
  919.  
  920.  
  921. TextBox.BackgroundColor3 = Library.Colors.Button
  922.  
  923. TextBox.BorderColor3 = Library.Colors.Border
  924.  
  925. TextBox.BorderSizePixel = 0
  926.  
  927. TextBox.Size = UDim2.new(0, 228, 0, 20)
  928.  
  929. TextBox.Font = Enum.Font.Code
  930.  
  931. TextBox.PlaceholderColor3 = Library.Colors.PlaceholderText
  932.  
  933. TextBox.PlaceholderText = title
  934.  
  935. TextBox.Text = ""
  936.  
  937. TextBox.TextColor3 = Library.Colors.Text
  938.  
  939. TextBox.TextSize = 14
  940.  
  941. TextBox.TextWrapped = true
  942.  
  943. TextBox.ZIndex = 1;
  944.  
  945.  
  946.  
  947. TextBox.InputBegan:Connect(function(input)
  948.  
  949. if input.UserInputType == Enum.UserInputType.MouseMovement then
  950.  
  951. game:GetService("TweenService"):Create(TextBox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}):Play();
  952.  
  953. end
  954.  
  955. end)
  956.  
  957.  
  958.  
  959. TextBox.InputEnded:Connect(function(input)
  960.  
  961. if input.UserInputType == Enum.UserInputType.MouseMovement then
  962.  
  963. game:GetService("TweenService"):Create(TextBox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  964.  
  965. end
  966.  
  967. end)
  968.  
  969.  
  970.  
  971. TextBox.FocusLost:connect(function(enterPressed)
  972.  
  973. if enterPressed then
  974.  
  975. action(TextBox.Text)
  976.  
  977. end
  978.  
  979. end)
  980.  
  981.  
  982.  
  983. TextBox.Position = UDim2.new(0, 5, 0, GetNextPosition())
  984.  
  985.  
  986.  
  987. TextBox.Parent = Body
  988.  
  989.  
  990.  
  991. Body.Size = UDim2.new(1,0,0,GetNextPosition());
  992.  
  993. end
  994.  
  995.  
  996.  
  997. function OldStarLibrary:CreateTextLabel(title)
  998.  
  999. local Label = Instance.new("TextLabel")
  1000.  
  1001.  
  1002.  
  1003. Label.Name = "Label"
  1004.  
  1005. Label.BackgroundColor3 = Color3.fromRGB(29, 29, 29)
  1006.  
  1007. Label.Position = UDim2.new(0, 5, 0, 110)
  1008.  
  1009. Label.Size = UDim2.new(1, -10, 0, 15)
  1010.  
  1011. Label.Font = Enum.Font.Code
  1012.  
  1013. Label.Text = title
  1014.  
  1015. Label.TextColor3 = Library.Colors.Text
  1016.  
  1017. Label.TextSize = 15
  1018.  
  1019. Label.TextWrapped = true
  1020.  
  1021. Label.TextXAlignment = Enum.TextXAlignment.Center
  1022.  
  1023.  
  1024.  
  1025. Label.Position = UDim2.new(0, 5, 0, GetNextPosition())
  1026.  
  1027. Label.Parent = Body
  1028.  
  1029.  
  1030.  
  1031. Body.Size = UDim2.new(1,0,0,GetNextPosition()+5)
  1032.  
  1033. Label.BackgroundTransparency = 0.75
  1034.  
  1035. Label.BorderSizePixel = 0.75
  1036.  
  1037. end
  1038.  
  1039.  
  1040.  
  1041. function OldStarLibrary:CreateSlider(title, minimumvalue, maximumvalue, startingposition, action)
  1042.  
  1043. local dragging = false;
  1044.  
  1045.  
  1046.  
  1047. local SliderFrame = Instance.new("Frame", Body)
  1048.  
  1049. local SlidingFrame = Instance.new("Frame", SliderFrame)
  1050.  
  1051. local TitleLabel = Instance.new("TextLabel", SliderFrame)
  1052.  
  1053. local SliderNumber = Instance.new("TextLabel", SliderFrame)
  1054.  
  1055.  
  1056.  
  1057. SliderFrame.Name = "SliderFrame"
  1058.  
  1059. SliderFrame.BackgroundColor3 = Library.Colors.Button
  1060.  
  1061. SliderFrame.BorderSizePixel = 0;
  1062.  
  1063. SliderFrame.Size = UDim2.new(0.95, 0, 0, 10)
  1064.  
  1065.  
  1066.  
  1067. SlidingFrame.Name = "SlidingFrame"
  1068.  
  1069. SlidingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  1070.  
  1071. SlidingFrame.BorderSizePixel = 0
  1072.  
  1073. SlidingFrame.Size = UDim2.new((startingposition or 0) / maximumvalue, 0, 1, 0)
  1074.  
  1075.  
  1076.  
  1077. TitleLabel.Name = "TitleLabel"
  1078.  
  1079. TitleLabel.AnchorPoint = Vector2.new(0, 0.5)
  1080.  
  1081. TitleLabel.BackgroundTransparency = 1
  1082.  
  1083. TitleLabel.BorderSizePixel = 0
  1084.  
  1085. TitleLabel.Position = UDim2.new(0, 0, -1, 0)
  1086.  
  1087. TitleLabel.Size = UDim2.new(0.98, 0, 1, 0)
  1088.  
  1089. TitleLabel.Font = Enum.Font.Code
  1090.  
  1091. TitleLabel.TextSize = 15
  1092.  
  1093. TitleLabel.Text = title;
  1094.  
  1095. TitleLabel.TextColor3 = Color3.new(1, 1, 1)
  1096.  
  1097. TitleLabel.TextScaled = false
  1098.  
  1099. TitleLabel.TextWrapped = false
  1100.  
  1101. TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
  1102.  
  1103.  
  1104.  
  1105. SliderNumber.Name = "SliderNumber"
  1106.  
  1107. SliderNumber.AnchorPoint = Vector2.new(0, 0.5)
  1108.  
  1109. SliderNumber.BackgroundTransparency = 1
  1110.  
  1111. SliderNumber.BorderSizePixel = 0
  1112.  
  1113. SliderNumber.Position = UDim2.new(0.02, 0, -1, 0)
  1114.  
  1115. SliderNumber.Size = UDim2.new(0.98, 0, 1, 0)
  1116.  
  1117. SliderNumber.Font = Enum.Font.Code
  1118.  
  1119. SliderNumber.TextSize = 15
  1120.  
  1121. SliderNumber.Text = tostring(startingposition and math.floor((startingposition / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue) or 0)
  1122.  
  1123. SliderNumber.TextColor3 = Color3.new(1, 1, 1)
  1124.  
  1125. SliderNumber.TextScaled = false
  1126.  
  1127. SliderNumber.TextWrapped = false
  1128.  
  1129. SliderNumber.TextXAlignment = Enum.TextXAlignment.Right
  1130.  
  1131.  
  1132.  
  1133. local function Sliding(input)
  1134.  
  1135. local pos = UDim2.new(math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1), 0, 1, 0)
  1136.  
  1137. SlidingFrame:TweenSize(pos, Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.15, true)
  1138.  
  1139. local value = math.floor(((pos.X.Scale * maximumvalue) / maximumvalue) * (maximumvalue - minimumvalue) + minimumvalue)
  1140.  
  1141. SliderNumber.Text = tostring(value)
  1142.  
  1143. action(value)
  1144.  
  1145. end;
  1146.  
  1147.  
  1148.  
  1149. SliderFrame.InputBegan:Connect(function(input)
  1150.  
  1151. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1152.  
  1153. dragging = true
  1154.  
  1155. end
  1156.  
  1157. end)
  1158.  
  1159.  
  1160.  
  1161. SliderFrame.InputEnded:Connect(function(input)
  1162.  
  1163. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1164.  
  1165. dragging = false
  1166.  
  1167. end
  1168.  
  1169. end)
  1170.  
  1171.  
  1172.  
  1173. SliderFrame.InputBegan:Connect(function(input)
  1174.  
  1175. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1176.  
  1177. Sliding(input)
  1178.  
  1179. end
  1180.  
  1181. end)
  1182.  
  1183.  
  1184.  
  1185. game:GetService("UserInputService").InputChanged:Connect(function(input)
  1186.  
  1187. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  1188.  
  1189. Sliding(input)
  1190.  
  1191. end
  1192.  
  1193. end)
  1194.  
  1195.  
  1196.  
  1197. SliderFrame.Position = UDim2.new(0, 5, 0, GetNextSliderBodyPosition())
  1198.  
  1199.  
  1200.  
  1201. SliderFrame.Parent = Body
  1202.  
  1203.  
  1204.  
  1205. Body.Size = UDim2.new(1,0,0,GetNextSliderBodyPosition())
  1206.  
  1207.  
  1208.  
  1209. SliderFrame.Size = UDim2.new(0.95, 0, 0, 10)
  1210.  
  1211.  
  1212.  
  1213. end
  1214.  
  1215.  
  1216.  
  1217. function OldStarLibrary:CreateColorPicker(title, presetcolor, action)
  1218.  
  1219.  
  1220.  
  1221. local HSD = false
  1222.  
  1223. local VD = false
  1224.  
  1225. local Holder = Instance.new("TextButton", Body)
  1226.  
  1227. local ColorTitle = Instance.new("TextLabel", Holder)
  1228.  
  1229. local PreviewStatus = Instance.new("TextButton", Holder)
  1230.  
  1231. local ColorPickerFrame = Instance.new("Frame", Holder)
  1232.  
  1233. local HuePallete = Instance.new("ImageLabel", ColorPickerFrame)
  1234.  
  1235. local HuePalleteMarker = Instance.new("ImageLabel", HuePallete)
  1236.  
  1237. local HueBrightness = Instance.new("ImageLabel", ColorPickerFrame)
  1238.  
  1239. local HueBrightnessMarker = Instance.new("Frame", HueBrightness)
  1240.  
  1241.  
  1242.  
  1243. Holder.Name = "Holder"
  1244.  
  1245. Holder.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  1246.  
  1247. Holder.BackgroundTransparency = 1
  1248.  
  1249. Holder.BorderSizePixel = 0
  1250.  
  1251. Holder.Size = UDim2.new(1, 0, 0, 50)
  1252.  
  1253. Holder.Font = Enum.Font.Code
  1254.  
  1255. Holder.Text = ""
  1256.  
  1257. Holder.Active = true
  1258.  
  1259. Holder.ZIndex = 2
  1260.  
  1261.  
  1262.  
  1263. ColorTitle.Name = "ColorTitle"
  1264.  
  1265. ColorTitle.AnchorPoint = Vector2.new(0, 0.5)
  1266.  
  1267. ColorTitle.BackgroundTransparency = 1
  1268.  
  1269. ColorTitle.BorderSizePixel = 0
  1270.  
  1271. ColorTitle.Position = UDim2.new(0.02, 0, 0.25, 0)
  1272.  
  1273. ColorTitle.Size = UDim2.new(0.58, 0, 0.5, 0)
  1274.  
  1275. ColorTitle.Font = Enum.Font.Code
  1276.  
  1277. ColorTitle.Text = title
  1278.  
  1279. ColorTitle.TextSize = 16
  1280.  
  1281. ColorTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1282.  
  1283. ColorTitle.TextScaled = false
  1284.  
  1285. ColorTitle.TextWrapped = false
  1286.  
  1287. ColorTitle.TextXAlignment = Enum.TextXAlignment.Left
  1288.  
  1289. ColorTitle.ZIndex = 1
  1290.  
  1291.  
  1292.  
  1293. PreviewStatus.Name = "PreviewStatus"
  1294.  
  1295. PreviewStatus.AnchorPoint = Vector2.new(1, 0);
  1296.  
  1297. PreviewStatus.BackgroundColor3 = presetcolor or Color3.fromRGB(255, 255, 255);
  1298.  
  1299. PreviewStatus.BorderSizePixel = 0
  1300.  
  1301. PreviewStatus.Font = Enum.Font.SourceSansLight;
  1302.  
  1303. PreviewStatus.Text = ""
  1304.  
  1305. PreviewStatus.AutoButtonColor = false
  1306.  
  1307. PreviewStatus.Position = UDim2.new(1, -5, 0, 0)
  1308.  
  1309. PreviewStatus.Size = UDim2.new(0.112, 0, 0.45, 0)
  1310.  
  1311. PreviewStatus.ZIndex = 1
  1312.  
  1313.  
  1314.  
  1315. ColorPickerFrame.Name = "ColorPickerFrame"
  1316.  
  1317. ColorPickerFrame.BackgroundColor3 = Library.Colors.Body
  1318.  
  1319. ColorPickerFrame.BorderSizePixel = 0
  1320.  
  1321. ColorPickerFrame.Position = UDim2.new(0.99, 1, -0.15, 0)
  1322.  
  1323. ColorPickerFrame.Size = UDim2.new(1, 0, 0, 0)
  1324.  
  1325. ColorPickerFrame.Visible = false
  1326.  
  1327. ColorPickerFrame.ZIndex = 2
  1328.  
  1329.  
  1330.  
  1331. HuePallete.Name = "HuePallete"
  1332.  
  1333. HuePallete.BackgroundTransparency = 1
  1334.  
  1335. HuePallete.BorderSizePixel = 0
  1336.  
  1337. HuePallete.ClipsDescendants = true
  1338.  
  1339. HuePallete.Position = UDim2.new(0.03, 0, 0.057, 0)
  1340.  
  1341. HuePallete.Size = UDim2.new(0.764, 0, 0.886, 0)
  1342.  
  1343. HuePallete.Image = "rbxassetid://4477380641"
  1344.  
  1345. HuePallete.ZIndex = 2
  1346.  
  1347.  
  1348.  
  1349. HuePalleteMarker.Name = "HuePalleteMarker"
  1350.  
  1351. HuePalleteMarker.AnchorPoint = Vector2.new(0.5, 0.5)
  1352.  
  1353. HuePalleteMarker.BackgroundTransparency = 1
  1354.  
  1355. HuePalleteMarker.BorderSizePixel = 0
  1356.  
  1357. HuePalleteMarker.Position = UDim2.new(presetcolor and select(1, Color3.toHSV(presetcolor)) or 0, 0, presetcolor and 1 - select(2, Color3.toHSV(presetcolor)) or 0, 0)
  1358.  
  1359. HuePalleteMarker.Size = UDim2.new(0.146, 0, 0.2, 0)
  1360.  
  1361. HuePalleteMarker.Image = "rbxassetid://4409133510"
  1362.  
  1363. HuePalleteMarker.ImageTransparency = 1
  1364.  
  1365. HuePalleteMarker.ImageColor3 = Color3.fromRGB(0, 0, 0)
  1366.  
  1367. HuePalleteMarker.ScaleType = Enum.ScaleType.Crop
  1368.  
  1369. HuePalleteMarker.ZIndex = 2
  1370.  
  1371.  
  1372.  
  1373. HueBrightness.Name = "HueBrightness"
  1374.  
  1375. HueBrightness.AnchorPoint = Vector2.new(1, 0)
  1376.  
  1377. HueBrightness.BackgroundTransparency = 1
  1378.  
  1379. HueBrightness.BorderSizePixel = 0
  1380.  
  1381. HueBrightness.Position = UDim2.new(0.981, 0, 0.057, 0)
  1382.  
  1383. HueBrightness.Size = UDim2.new(0.157, 0, 0.886, 0)
  1384.  
  1385. HueBrightness.Image = "rbxassetid://4477380092"
  1386.  
  1387. HueBrightness.ImageColor3 = Color3.fromRGB(255, 255, 255)
  1388.  
  1389. HueBrightness.ScaleType = Enum.ScaleType.Crop
  1390.  
  1391. HueBrightness.ZIndex = 2
  1392.  
  1393.  
  1394.  
  1395. HueBrightnessMarker.Name = "HueBrightnessMarker"
  1396.  
  1397. HueBrightnessMarker.AnchorPoint = Vector2.new(0, 0.5)
  1398.  
  1399. HueBrightnessMarker.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  1400.  
  1401. HueBrightnessMarker.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1402.  
  1403. HueBrightnessMarker.BorderSizePixel = 0
  1404.  
  1405. HueBrightnessMarker.Position = UDim2.new(0, 0, presetcolor and 1 - select(3, Color3.toHSV(presetcolor)) or 0, 0)
  1406.  
  1407. HueBrightnessMarker.Size = UDim2.new(1, 0, 0.028, 0)
  1408.  
  1409. HueBrightnessMarker.ZIndex = 2
  1410.  
  1411.  
  1412.  
  1413. PreviewStatus.MouseButton1Click:Connect(function()
  1414.  
  1415. if not ColorPickerFrame.Visible then
  1416.  
  1417. ColorPickerFrame.Visible = true
  1418.  
  1419. ColorPickerFrame:TweenSize(UDim2.new(1, 0, 2.75, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.25, true)
  1420.  
  1421. elseif ColorPickerFrame.Visible then
  1422.  
  1423. HSD = false
  1424.  
  1425. VD = false
  1426.  
  1427. ColorPickerFrame:TweenSize(UDim2.new(1, 0, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 0.25, true)
  1428.  
  1429. wait(0.25)
  1430.  
  1431. ColorPickerFrame.Visible = false
  1432.  
  1433. end
  1434.  
  1435. end)
  1436.  
  1437.  
  1438.  
  1439. HuePallete.InputBegan:Connect(function(input)
  1440.  
  1441. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1442.  
  1443. HSD = true
  1444.  
  1445. end
  1446.  
  1447. end)
  1448.  
  1449.  
  1450.  
  1451. HuePallete.InputEnded:Connect(function(input)
  1452.  
  1453. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1454.  
  1455. HSD = false
  1456.  
  1457. end
  1458.  
  1459. end)
  1460.  
  1461.  
  1462.  
  1463. HueBrightness.InputBegan:Connect(function(input)
  1464.  
  1465. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1466.  
  1467. VD = true
  1468.  
  1469. end
  1470.  
  1471. end)
  1472.  
  1473.  
  1474.  
  1475. HueBrightness.InputEnded:Connect(function(input)
  1476.  
  1477. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1478.  
  1479. VD = false
  1480.  
  1481. end
  1482.  
  1483. end)
  1484.  
  1485.  
  1486.  
  1487. game:GetService("UserInputService").InputChanged:Connect(function(input)
  1488.  
  1489. if HSD and input.UserInputType == Enum.UserInputType.MouseMovement then
  1490.  
  1491. HuePalleteMarker.Position = UDim2.new(math.clamp((input.Position.X - HuePallete.AbsolutePosition.X) / HuePallete.AbsoluteSize.X, 0, 1), 0, math.clamp((input.Position.Y - HuePallete.AbsolutePosition.Y) / HuePallete.AbsoluteSize.Y, 0, 1), 0)
  1492.  
  1493.  
  1494.  
  1495. PreviewStatus.BackgroundColor3 = Color3.fromHSV(HuePalleteMarker.Position.X.Scale, 1 - HuePalleteMarker.Position.Y.Scale, 1 - HueBrightnessMarker.Position.Y.Scale)
  1496.  
  1497.  
  1498.  
  1499. action(PreviewStatus.BackgroundColor3);
  1500.  
  1501. elseif VD and input.UserInputType == Enum.UserInputType.MouseMovement then
  1502.  
  1503. HueBrightnessMarker.Position = UDim2.new(0, 0, math.clamp((input.Position.Y - HueBrightness.AbsolutePosition.Y) / HueBrightness.AbsoluteSize.Y, 0, 1), 0)
  1504.  
  1505.  
  1506.  
  1507. PreviewStatus.BackgroundColor3 = Color3.fromHSV(HuePalleteMarker.Position.X.Scale, 1 - HuePalleteMarker.Position.Y.Scale, 1 - HueBrightnessMarker.Position.Y.Scale);
  1508.  
  1509.  
  1510.  
  1511. action(PreviewStatus.BackgroundColor3);
  1512.  
  1513. end;
  1514.  
  1515. end);
  1516.  
  1517.  
  1518.  
  1519. Holder.Position = UDim2.new(0, 1, 0, GetNextPosition())
  1520.  
  1521.  
  1522.  
  1523. Holder.Parent = Body
  1524.  
  1525.  
  1526.  
  1527. Body.Size = UDim2.new(1, 0, 0, GetNextPosition()-25);
  1528.  
  1529. end
  1530.  
  1531.  
  1532.  
  1533. function OldStarLibrary:CreateDropdownList(options, action)
  1534.  
  1535. local Dropdown = Instance.new("TextLabel")
  1536.  
  1537. local DropdownButton = Instance.new("TextButton")
  1538.  
  1539.  
  1540.  
  1541. Dropdown.Name = "Dropdown"
  1542.  
  1543.  
  1544.  
  1545. Dropdown.BackgroundColor3 = Library.Colors.Dropdown
  1546.  
  1547. Dropdown.BorderSizePixel = 0
  1548.  
  1549. Dropdown.Size = UDim2.new(0, 228, 0, 20)
  1550.  
  1551. Dropdown.Font = Enum.Font.Code
  1552.  
  1553. Dropdown.Text = options[1]
  1554.  
  1555. Dropdown.TextColor3 = Library.Colors.Text
  1556.  
  1557. Dropdown.TextSize = 15
  1558.  
  1559. Dropdown.TextWrapped = true
  1560.  
  1561. Dropdown.TextXAlignment = Enum.TextXAlignment.Center
  1562.  
  1563. Dropdown.ZIndex = 4
  1564.  
  1565.  
  1566.  
  1567. DropdownButton.Parent = Dropdown
  1568.  
  1569. DropdownButton.BackgroundColor3 = Library.Colors.Button
  1570.  
  1571. DropdownButton.BackgroundTransparency = 1
  1572.  
  1573. DropdownButton.Position = UDim2.new(1, -25, 0, 0)
  1574.  
  1575. DropdownButton.Size = UDim2.new(0, 25, 1, 0)
  1576.  
  1577. DropdownButton.Font = Enum.Font.Code
  1578.  
  1579. DropdownButton.Text = "v"
  1580.  
  1581. DropdownButton.TextColor3 = Library.Colors.Text
  1582.  
  1583. DropdownButton.TextSize = 15
  1584.  
  1585. DropdownButton.TextXAlignment = Enum.TextXAlignment.Center
  1586.  
  1587. DropdownButton.ZIndex = 4
  1588.  
  1589.  
  1590.  
  1591. local Selections = Instance.new("Folder")
  1592.  
  1593. Selections.Parent = Dropdown
  1594.  
  1595. Selections.Name = "Selections"
  1596.  
  1597.  
  1598.  
  1599. Dropdown.Position = UDim2.new(0, 5, 0, GetNextPosition())
  1600.  
  1601.  
  1602.  
  1603. Body.Size = UDim2.new(1,1,0,GetNextPosition()+5)
  1604.  
  1605.  
  1606.  
  1607. Dropdown.Parent = Body
  1608.  
  1609.  
  1610.  
  1611. Body.Size = UDim2.new(1,1,0,GetNextPosition())
  1612.  
  1613.  
  1614.  
  1615. for i,v in pairs(options) do
  1616.  
  1617. local Button = Instance.new("TextButton")
  1618.  
  1619.  
  1620.  
  1621. Button.Name = "Button"
  1622.  
  1623. Button.Parent = Selections
  1624.  
  1625. Button.AutoButtonColor = false
  1626.  
  1627. Button.BackgroundColor3 = Library.Colors.Dropdown
  1628.  
  1629. Button.BorderColor3 = Library.Colors.Border
  1630.  
  1631. Button.BorderSizePixel = 0
  1632.  
  1633. Button.Position = UDim2.new(0, 0, #Selections:GetChildren(), 0)
  1634.  
  1635. Button.Size = UDim2.new(0, 228, 0, 20)
  1636.  
  1637. Button.Font = Enum.Font.Code
  1638.  
  1639. Button.Text = v;
  1640.  
  1641. Button.TextColor3 = Library.Colors.Text
  1642.  
  1643. Button.TextSize = 15
  1644.  
  1645. Button.TextXAlignment = Enum.TextXAlignment.Center
  1646.  
  1647. Button.Visible = false;
  1648.  
  1649. Button.ZIndex = 5;
  1650.  
  1651.  
  1652.  
  1653. Button.InputBegan:Connect(function(input)
  1654.  
  1655. game:GetService("TweenService"):Create(Button, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}):Play();
  1656.  
  1657. end)
  1658.  
  1659.  
  1660.  
  1661. Button.InputEnded:Connect(function(input)
  1662.  
  1663. game:GetService("TweenService"):Create(Button, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(29, 29, 29)}):Play();
  1664.  
  1665. end)
  1666.  
  1667.  
  1668.  
  1669. Button.MouseButton1Click:Connect(function()
  1670.  
  1671. action(v)
  1672.  
  1673. Dropdown.Text = v;
  1674.  
  1675. for i,v in pairs(Selections:GetChildren()) do
  1676.  
  1677. v.Visible = false
  1678.  
  1679. end
  1680.  
  1681. DropdownButton.Text = "v"
  1682.  
  1683. RotateQuad(DropdownButton, {Rotation = 360}, 0.50)
  1684.  
  1685. DropdownButton.Rotation = 0
  1686.  
  1687. end)
  1688.  
  1689. end
  1690.  
  1691.  
  1692.  
  1693. DropdownButton.MouseButton1Click:Connect(function()
  1694.  
  1695. for i,v in pairs(Selections:GetChildren()) do
  1696.  
  1697. if v.Visible == true then
  1698.  
  1699. v.Visible = false
  1700.  
  1701. DropdownButton.Text = "v"
  1702.  
  1703. RotateQuad(DropdownButton, {Rotation = 360}, 0.50)
  1704.  
  1705. DropdownButton.Rotation = 0
  1706.  
  1707. elseif v.Visible == false then
  1708.  
  1709. v.Visible = true
  1710.  
  1711. DropdownButton.Text = "-"
  1712.  
  1713. RotateQuad(DropdownButton, {Rotation = 180}, 0.50)
  1714.  
  1715. DropdownButton.Rotation = 0
  1716.  
  1717. end
  1718.  
  1719. end
  1720.  
  1721. end)
  1722.  
  1723. end
  1724.  
  1725.  
  1726.  
  1727. return OldStarLibrary;
  1728.  
  1729. end
  1730.  
  1731.  
  1732.  
  1733. return Library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement