Advertisement
RDMScript

Untitled

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