Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = {}
- if game:GetService("CoreGui"):FindFirstChild("PinkX") ~= nil then game:GetService("CoreGui"):FindFirstChild("PinkX"):Destroy() end
- local PinkX = Instance.new("ScreenGui")
- PinkX.Name = "PinkX"
- PinkX.Parent = game:GetService("CoreGui")
- function Library.new(Title)
- local Main = Instance.new("ImageLabel")
- local Outline = Instance.new("ImageLabel")
- local TopTitle = Instance.new("ImageLabel")
- local PinkTitle = Instance.new("TextLabel")
- local BlackTitle = Instance.new("TextLabel")
- local List = Instance.new("ScrollingFrame")
- local Categories = Instance.new("Frame")
- Main.Name = "Main"
- Main.Parent = PinkX
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BackgroundTransparency = 1.000
- Main.Position = UDim2.new(0.290881693, 0, 0.239999995, 0)
- Main.Size = UDim2.new(0, 549, 0, 316)
- Main.Image = "rbxassetid://3570695787"
- Main.ImageColor3 = Color3.fromRGB(32, 32, 32)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(100, 100, 100, 100)
- Main.SliceScale = 0.120
- Outline.Name = "Outline"
- Outline.Parent = Main
- Outline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Outline.BackgroundTransparency = 1.000
- Outline.Position = UDim2.new(-0.0168258026, 0, -0.0260216426, 0)
- Outline.Size = UDim2.new(0, 567, 0, 332)
- Outline.ZIndex = 0
- Outline.Image = "rbxassetid://3570695787"
- Outline.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Outline.ScaleType = Enum.ScaleType.Slice
- Outline.SliceCenter = Rect.new(100, 100, 100, 100)
- Outline.SliceScale = 0.120
- TopTitle.Name = "Top Title"
- TopTitle.Parent = Main
- TopTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopTitle.BackgroundTransparency = 1.000
- TopTitle.Position = UDim2.new(0, 0, -7.4505806e-09, 0)
- TopTitle.Size = UDim2.new(0, 549, 0, 47)
- TopTitle.Image = "rbxassetid://3570695787"
- TopTitle.ImageColor3 = Color3.fromRGB(45, 45, 45)
- TopTitle.ScaleType = Enum.ScaleType.Slice
- TopTitle.SliceCenter = Rect.new(100, 100, 100, 100)
- TopTitle.SliceScale = 0.120
- PinkTitle.Name = "Pink Title"
- PinkTitle.Parent = TopTitle
- PinkTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PinkTitle.BackgroundTransparency = 1.000
- PinkTitle.Size = UDim2.new(0, 123, 0, 50)
- PinkTitle.ZIndex = 2
- PinkTitle.Font = Enum.Font.GothamBold
- PinkTitle.Text = Title
- PinkTitle.TextColor3 = Color3.fromRGB(255, 115, 232)
- PinkTitle.TextSize = 30.000
- BlackTitle.Name = "Black Title"
- BlackTitle.Parent = TopTitle
- BlackTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BlackTitle.BackgroundTransparency = 1.000
- BlackTitle.Position = UDim2.new(0, 5, 0, 2)
- BlackTitle.Size = UDim2.new(0, 123, 0, 50)
- BlackTitle.Font = Enum.Font.GothamBold
- BlackTitle.Text = Title
- BlackTitle.TextColor3 = Color3.fromRGB(0, 0, 0)
- BlackTitle.TextSize = 30.000
- List.Name = "List"
- List.Parent = Main
- List.Active = true
- List.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- List.BorderSizePixel = 0
- List.Position = UDim2.new(0, 0, 0.148734182, 0)
- List.Size = UDim2.new(0, 136, 0, 269)
- List.ScrollBarThickness = 8
- Categories.Name = "Categories"
- Categories.Parent = Main
- Categories.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Categories.BackgroundTransparency = 1.000
- Categories.BorderSizePixel = 0
- Categories.Position = UDim2.new(0.247723132, 0, 0.129746839, 0)
- Categories.Size = UDim2.new(0, 413, 0, 274)
- local UIListLayout_4 = Instance.new("UIListLayout")
- local UIPadding_3 = Instance.new("UIPadding")
- UIListLayout_4.Parent = List
- UIListLayout_4.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_4.Padding = UDim.new(0, 12)
- UIPadding_3.Parent = List
- UIPadding_3.PaddingTop = UDim.new(0, 6)
- local Win = {}
- function Win:Category(CatName)
- local Home = Instance.new("ImageButton")
- local Outer = Instance.new("ImageLabel")
- local TextButton = Instance.new("TextButton")
- Home.Name = CatName
- Home.Parent = List
- Home.Active = false
- Home.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Home.BackgroundTransparency = 1.000
- Home.Position = UDim2.new(0.0599999987, 0, 0.0199999996, 0)
- Home.Selectable = false
- Home.Size = UDim2.new(0, 111, 0, 29)
- Home.ZIndex = 2
- Home.Image = "rbxassetid://3570695787"
- Home.ImageColor3 = Color3.fromRGB(28, 28, 28)
- Home.ScaleType = Enum.ScaleType.Slice
- Home.SliceCenter = Rect.new(100, 100, 100, 100)
- Home.SliceScale = 0.120
- Outer.Name = "Outer"
- Outer.Parent = Home
- Outer.AnchorPoint = Vector2.new(0.5, 0.5)
- Outer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Outer.BackgroundTransparency = 1.000
- Outer.Position = UDim2.new(0.5, 0, 0.5, 0)
- Outer.Size = UDim2.new(1, 6, 1, 6)
- Outer.Image = "rbxassetid://3570695787"
- Outer.ImageColor3 = Color3.fromRGB(145, 65, 134)
- Outer.ScaleType = Enum.ScaleType.Slice
- Outer.SliceCenter = Rect.new(100, 100, 100, 100)
- Outer.SliceScale = 0.120
- TextButton.Parent = Home
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 1.000
- TextButton.Size = UDim2.new(0, 105, 0, 29)
- TextButton.ZIndex = 2
- TextButton.Font = Enum.Font.GothamBold
- TextButton.Text = CatName
- TextButton.TextColor3 = Color3.fromRGB(255, 115, 232)
- TextButton.TextSize = 16.000
- local Name = Instance.new("ScrollingFrame")
- Name.Name = CatName
- Name.Parent = Categories
- Name.Visible = false
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.BorderSizePixel = 0
- Name.Selectable = false
- Name.Size = UDim2.new(1, 0, 1, 0)
- Name.CanvasPosition = Vector2.new(0, 164.399994)
- Name.CanvasSize = UDim2.new(0, 0, 0, 0)
- Name.ScrollBarThickness = 8
- local UIListLayout_3 = Instance.new("UIListLayout")
- local UIPadding_2 = Instance.new("UIPadding")
- UIListLayout_3.Parent = Name
- UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_3.Padding = UDim.new(0, 12)
- UIPadding_2.Parent = Name
- UIPadding_2.PaddingTop = UDim.new(0, 6)
- local cat = {}
- function cat:Section(name)
- local Section = Instance.new("ImageLabel")
- local UIListLayout = Instance.new("UIListLayout")
- local SectionTitle = Instance.new("TextLabel")
- Section.Name = "Section"
- Section.Parent = Name
- Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Section.BackgroundTransparency = 1.000
- Section.Position = UDim2.new(0.0145278452, 0, -0.578102231, 0)
- Section.Size = UDim2.new(1, -12, 0, 26)
- Section.Image = "rbxassetid://3570695787"
- Section.ImageColor3 = Color3.fromRGB(42, 42, 42)
- Section.ScaleType = Enum.ScaleType.Slice
- Section.SliceCenter = Rect.new(100, 100, 100, 100)
- Section.SliceScale = 0.120
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,38)
- UIListLayout.Parent = Section
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 6)
- SectionTitle.Name = "SectionTitle"
- SectionTitle.Parent = Section
- SectionTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SectionTitle.BackgroundTransparency = 1.000
- SectionTitle.BorderSizePixel = 0
- SectionTitle.Size = UDim2.new(1, 0, 0, 16)
- SectionTitle.Font = Enum.Font.GothamBold
- SectionTitle.Text = name
- SectionTitle.TextColor3 = Color3.fromRGB(255, 115, 232)
- SectionTitle.TextSize = 16.000
- local sect = {}
- function sect:Button(name,callback)
- local Button = Instance.new("ImageButton")
- local ButtonText = Instance.new("TextLabel")
- local Buttoninner = Instance.new("ImageLabel")
- callback = callback or function() end
- Button.Name = name
- Button.Parent = Section
- Button.Active = false
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.BackgroundTransparency = 1.000
- Button.Position = UDim2.new(0.137829915, 0, 0.109999999, 0)
- Button.Selectable = false
- Button.Size = UDim2.new(0, 317, 0, 39)
- Button.Image = "rbxassetid://3570695787"
- Button.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Button.ScaleType = Enum.ScaleType.Slice
- Button.SliceCenter = Rect.new(100, 100, 100, 100)
- Button.SliceScale = 0.060
- ButtonText.Name = name.."Text"
- ButtonText.Parent = Button
- ButtonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ButtonText.BackgroundTransparency = 1.000
- ButtonText.Position = UDim2.new(0, -3, 0, 0)
- ButtonText.Size = UDim2.new(1, 0, 1, 0)
- ButtonText.ZIndex = 3
- ButtonText.Font = Enum.Font.GothamBold
- ButtonText.Text = " "..name
- ButtonText.TextColor3 = Color3.fromRGB(255, 115, 232)
- ButtonText.TextSize = 16.000
- ButtonText.TextXAlignment = Enum.TextXAlignment.Left
- Buttoninner.Name = name.."inner"
- Buttoninner.Parent = Button
- Buttoninner.AnchorPoint = Vector2.new(0.5, 0.5)
- Buttoninner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Buttoninner.BackgroundTransparency = 1.000
- Buttoninner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Buttoninner.Size = UDim2.new(1, -4, 1, -4)
- Buttoninner.ZIndex = 2
- Buttoninner.Image = "rbxassetid://3570695787"
- Buttoninner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Buttoninner.ScaleType = Enum.ScaleType.Slice
- Buttoninner.SliceCenter = Rect.new(100, 100, 100, 100)
- Buttoninner.SliceScale = 0.060
- m=game.Players.LocalPlayer:GetMouse()
- local function CircleClick(Button1, X, Y)
- coroutine.resume(coroutine.create(function()
- Button1.ClipsDescendants = true
- local Circle = Instance.new("ImageLabel")
- Circle.Name = "Circle"
- Circle.Parent = Button1
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.ZIndex = 10
- Circle.Image = "rbxassetid://3570695787"
- Circle.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Circle.ImageTransparency = 0.500
- Circle.ScaleType = Enum.ScaleType.Slice
- Circle.SliceCenter = Rect.new(100, 100, 100, 100)
- Circle.SliceScale = 0.060
- local NewX = X - Circle.AbsolutePosition.X
- local NewY = Y - Circle.AbsolutePosition.Y
- Circle.Position = UDim2.new(0, NewX, 0, NewY)
- local Size = 0
- if Button1.AbsoluteSize.X > Button1.AbsoluteSize.Y then
- Size = Button1.AbsoluteSize.X*1.5
- elseif Button1.AbsoluteSize.X < Button1.AbsoluteSize.Y then
- Size = Button1.AbsoluteSize.Y*1.5
- elseif Button1.AbsoluteSize.X == Button1.AbsoluteSize.Y then
- Size = Button1.AbsoluteSize.X*1.5
- end
- local Time = 0.4
- Circle:TweenSizeAndPosition(UDim2.new(0, Size, 0, Size), UDim2.new(0.5, -Size/2, 0.5, -Size/2), "Out", "Quad", Time, false, nil)
- for i=1,10 do
- Circle.ImageTransparency = Circle.ImageTransparency + 0.04
- wait(Time/10)
- end
- Circle:Destroy()
- end))
- end
- Button.MouseButton1Down:connect(function()
- CircleClick(Buttoninner, m.X, m.Y)
- callback()
- end)
- Section.Size = Section.Size + UDim2.new(0,0,0,44)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,44)
- end
- function sect:Toggle(name,callback)
- callback = callback or function(tog) end
- local Toggle = Instance.new("ImageButton")
- local ToggleText = Instance.new("TextLabel")
- local Toggleinner = Instance.new("ImageLabel")
- local Tog = Instance.new("ImageLabel")
- local Togg = Instance.new("ImageLabel")
- Toggle.Name = "Toggle"
- Toggle.Parent = Section
- Toggle.Active = false
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.BackgroundTransparency = 1.000
- Toggle.Position = UDim2.new(0.137829915, 0, 0.109999999, 0)
- Toggle.Selectable = false
- Toggle.Size = UDim2.new(0, 317, 0, 39)
- Toggle.Image = "rbxassetid://3570695787"
- Toggle.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Toggle.ScaleType = Enum.ScaleType.Slice
- Toggle.SliceCenter = Rect.new(100, 100, 100, 100)
- Toggle.SliceScale = 0.060
- Section.Size = Section.Size + UDim2.new(0,0,0,44)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,44)
- ToggleText.Name = "ToggleText"
- ToggleText.Parent = Toggle
- ToggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleText.BackgroundTransparency = 1.000
- ToggleText.Position = UDim2.new(0, -3, 0, 0)
- ToggleText.Size = UDim2.new(1, 0, 1, 0)
- ToggleText.ZIndex = 3
- ToggleText.Font = Enum.Font.GothamBold
- ToggleText.Text = " "..name
- ToggleText.TextColor3 = Color3.fromRGB(255, 115, 232)
- ToggleText.TextSize = 16.000
- ToggleText.TextXAlignment = Enum.TextXAlignment.Left
- Toggleinner.Name = "inner"
- Toggleinner.Parent = Toggle
- Toggleinner.AnchorPoint = Vector2.new(0.5, 0.5)
- Toggleinner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggleinner.BackgroundTransparency = 1.000
- Toggleinner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Toggleinner.Size = UDim2.new(1, -4, 1, -4)
- Toggleinner.ZIndex = 2
- Toggleinner.Image = "rbxassetid://3570695787"
- Toggleinner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Toggleinner.ScaleType = Enum.ScaleType.Slice
- Toggleinner.SliceCenter = Rect.new(100, 100, 100, 100)
- Toggleinner.SliceScale = 0.060
- Tog.Name = "Tog"
- Tog.Parent = Toggle
- Tog.AnchorPoint = Vector2.new(0, 0.5)
- Tog.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tog.BackgroundTransparency = 1.000
- Tog.Position = UDim2.new(0.776772857, 0, 0.5, 0)
- Tog.Size = UDim2.new(0, 55, 0, 25)
- Tog.ZIndex = 3
- Tog.Image = "rbxassetid://3570695787"
- Tog.ImageColor3 = Color3.fromRGB(35, 35, 35)
- Tog.ScaleType = Enum.ScaleType.Slice
- Tog.SliceCenter = Rect.new(100, 100, 100, 100)
- Tog.SliceScale = 0.060
- Togg.Name = "Togg"
- Togg.Parent = Tog
- Togg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Togg.BackgroundTransparency = 1.000
- Togg.Size = UDim2.new(0.455000013, 0, 1, 0)
- Togg.ZIndex = 4
- Togg.Image = "rbxassetid://3570695787"
- Togg.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Togg.ScaleType = Enum.ScaleType.Slice
- Togg.SliceCenter = Rect.new(100, 100, 100, 100)
- Togg.SliceScale = 0.060
- local off = true
- Toggle.MouseButton1Click:Connect(function()
- if off == true then off = false
- game.TweenService:Create(Togg, TweenInfo.new(0.3), {Position=UDim2.new(0.5,0,0,0)}):Play()
- game.TweenService:Create(Togg, TweenInfo.new(0.3), {ImageColor3=Color3.fromRGB(255,255,255)}):Play()
- game.TweenService:Create(ToggleText, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,255,255)}):Play()
- else off = true
- game.TweenService:Create(Togg, TweenInfo.new(0.3), {Position=UDim2.new(0,0,0,0)}):Play()
- game.TweenService:Create(Togg, TweenInfo.new(0.3), {ImageColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(ToggleText, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- end
- callback(not off)
- end)
- end
- function sect:Label(name)
- local Label = Instance.new("ImageLabel")
- local TopText = Instance.new("TextLabel")
- local BottomText = Instance.new("TextLabel")
- local Labelinner = Instance.new("ImageLabel")
- Label.Name = "Label"
- Label.Parent = Section
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Position = UDim2.new(0.0299999993, 0, 0.512785792, 0)
- Label.Size = UDim2.new(0, 317, 0, 39)
- Label.Image = "rbxassetid://3570695787"
- Label.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Label.ScaleType = Enum.ScaleType.Slice
- Label.SliceCenter = Rect.new(100, 100, 100, 100)
- Label.SliceScale = 0.060
- Section.Size = Section.Size + UDim2.new(0,0,0,44)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,44)
- TopText.Name = "TopText"
- TopText.Parent = Label
- TopText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TopText.BackgroundTransparency = 1.000
- TopText.Position = UDim2.new(0, -3, 0, 0)
- TopText.Size = UDim2.new(1, 0, 1, 0)
- TopText.ZIndex = 4
- TopText.Text = name
- TopText.Font = Enum.Font.GothamBold
- TopText.TextColor3 = Color3.fromRGB(255, 115, 232)
- TopText.TextSize = 16.000
- BottomText.Name = "BottomText"
- BottomText.Parent = Label
- BottomText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BottomText.BackgroundTransparency = 1.000
- BottomText.Size = UDim2.new(1, 0, 1, 0)
- BottomText.ZIndex = 3
- BottomText.Text = name
- BottomText.Font = Enum.Font.GothamBold
- BottomText.TextColor3 = Color3.fromRGB(0, 0, 0)
- BottomText.TextSize = 16.000
- Labelinner.Name = "Labelinner"
- Labelinner.Parent = Label
- Labelinner.AnchorPoint = Vector2.new(0.5, 0.5)
- Labelinner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Labelinner.BackgroundTransparency = 1.000
- Labelinner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Labelinner.Size = UDim2.new(1, -4, 1, -4)
- Labelinner.ZIndex = 2
- Labelinner.Image = "rbxassetid://3570695787"
- Labelinner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Labelinner.ScaleType = Enum.ScaleType.Slice
- Labelinner.SliceCenter = Rect.new(100, 100, 100, 100)
- Labelinner.SliceScale = 0.060
- end
- function sect:Slider(name, min, default, max, callback)
- min = min or 0
- default = default or 10
- max = max or 100
- callback = callback or function(amt) end
- local Slider = Instance.new("ImageLabel")
- local Sliderinner = Instance.new("ImageLabel")
- local SliderText = Instance.new("TextLabel")
- local Number = Instance.new("TextLabel")
- local Slide = Instance.new("ImageButton")
- local SlideInner = Instance.new("ImageButton")
- Slider.Name = "Slider"
- Slider.Parent = Section
- Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slider.BackgroundTransparency = 1.000
- Slider.Position = UDim2.new(0.0351906158, 0, 0.603846133, 0)
- Slider.Size = UDim2.new(0, 317, 0, 49)
- Slider.Image = "rbxassetid://3570695787"
- Slider.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Slider.ScaleType = Enum.ScaleType.Slice
- Slider.SliceCenter = Rect.new(100, 100, 100, 100)
- Slider.SliceScale = 0.060
- Section.Size = Section.Size + UDim2.new(0,0,0,54)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,54)
- Sliderinner.Name = "Sliderinner"
- Sliderinner.Parent = Slider
- Sliderinner.AnchorPoint = Vector2.new(0.5, 0.5)
- Sliderinner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Sliderinner.BackgroundTransparency = 1.000
- Sliderinner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Sliderinner.Size = UDim2.new(1, -4, 1, -4)
- Sliderinner.ZIndex = 2
- Sliderinner.Image = "rbxassetid://3570695787"
- Sliderinner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Sliderinner.ScaleType = Enum.ScaleType.Slice
- Sliderinner.SliceCenter = Rect.new(100, 100, 100, 100)
- Sliderinner.SliceScale = 0.060
- SliderText.Name = "SliderText"
- SliderText.Parent = Slider
- SliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SliderText.BackgroundTransparency = 1.000
- SliderText.Position = UDim2.new(0, -3, 0, 0)
- SliderText.Size = UDim2.new(0.865179896, 0, 0.571428657, 0)
- SliderText.ZIndex = 3
- SliderText.Font = Enum.Font.GothamBold
- SliderText.Text = " "..name
- SliderText.TextColor3 = Color3.fromRGB(255, 115, 232)
- SliderText.TextSize = 16.000
- SliderText.TextXAlignment = Enum.TextXAlignment.Left
- Number.Name = "Number"
- Number.Parent = Slider
- Number.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Number.BackgroundTransparency = 1.000
- Number.Position = UDim2.new(0, 271, 0, 0)
- Number.Size = UDim2.new(0, 45, 0, 29)
- Number.ZIndex = 3
- Number.Font = Enum.Font.GothamBold
- Number.Text = "16"
- Number.TextColor3 = Color3.fromRGB(255, 115, 232)
- Number.TextSize = 15.000
- Number.TextXAlignment = Enum.TextXAlignment.Left
- Slide.Name = "Slide"
- Slide.Parent = Slider
- Slide.Active = false
- Slide.AnchorPoint = Vector2.new(0.5, 0)
- Slide.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slide.BackgroundTransparency = 1.000
- Slide.Position = UDim2.new(0.5, 0, 0.57099998, 0)
- Slide.Selectable = false
- Slide.Size = UDim2.new(0, 289, 0, 15)
- Slide.ZIndex = 4
- Slide.Image = "rbxassetid://3570695787"
- Slide.ImageColor3 = Color3.fromRGB(40, 40, 40)
- Slide.ScaleType = Enum.ScaleType.Slice
- Slide.SliceCenter = Rect.new(100, 100, 100, 100)
- Slide.SliceScale = 0.060
- SlideInner.Name = "SlideInner"
- SlideInner.Parent = Slide
- SlideInner.Active = false
- SlideInner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SlideInner.BackgroundTransparency = 1.000
- SlideInner.Selectable = false
- SlideInner.Size = UDim2.new(0, 0, 1, 0)
- SlideInner.ZIndex = 5
- SlideInner.Image = "rbxassetid://3570695787"
- SlideInner.ImageColor3 = Color3.fromRGB(255, 115, 232)
- SlideInner.ScaleType = Enum.ScaleType.Slice
- SlideInner.SliceCenter = Rect.new(100, 100, 100, 100)
- SlideInner.SliceScale = 0.060
- local Slider = Slide
- local Inner =SlideInner
- local mouse = game.Players.LocalPlayer:GetMouse()
- local old = ""
- local uis = game:GetService("UserInputService")
- local Value;
- local down = false
- if default ~= min then
- Number.Text = default
- game:GetService("TweenService"):Create(Inner, TweenInfo.new(0.05), {Size = UDim2.new(default/max, 0, 0, 15)}):Play()
- end
- local function Activate()
- spawn(function()
- down = true
- Value = math.floor((((tonumber(max) - tonumber(min)) / 290) * Inner.AbsoluteSize.X) +tonumber(min)) or 0
- pcall(function()
- callback(Value)
- end)
- Number.Text = Value
- game:GetService("TweenService"):Create(Inner, TweenInfo.new(0.05), {Size = UDim2.new(0, math.clamp(mouse.X - Inner.AbsolutePosition.X, 0, 290), 0, 15)}):Play()
- while game:GetService("RunService").RenderStepped:wait() and down do
- Value = math.floor((((tonumber(max) - tonumber(min)) / 290) * Inner.AbsoluteSize.X) +tonumber(min)) or 0
- Number.Text = Value
- pcall(function()
- callback(Value)
- end)
- game:GetService("TweenService"):Create(Inner, TweenInfo.new(0.05), {Size = UDim2.new(0, math.clamp(mouse.X - Inner.AbsolutePosition.X, 0, 290), 0, 15)}):Play()
- end
- end)
- end
- Inner.MouseButton1Down:Connect(function()
- game.TweenService:Create(Slide.SlideInner, TweenInfo.new(0.3), {ImageColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(SliderText, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(Number, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- Activate()
- end)
- Slider.MouseButton1Down:Connect(function()
- game.TweenService:Create(Slide.SlideInner, TweenInfo.new(0.3), {ImageColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(SliderText, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(Number, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- Activate()
- end)
- uis.InputEnded:connect(function(key)
- if key.UserInputType == Enum.UserInputType.MouseButton1 and down then
- down = false
- game.TweenService:Create(Slide.SlideInner, TweenInfo.new(0.3), {ImageColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(SliderText, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- game.TweenService:Create(Number, TweenInfo.new(0.3), {TextColor3=Color3.fromRGB(255,115,232)}):Play()
- Value = math.floor((((tonumber(max) - tonumber(min)) / 290) * Inner.AbsoluteSize.X) +tonumber(min)) or 0
- Number.Text = Value
- pcall(function()
- callback(Value)
- end)
- game:GetService("TweenService"):Create(Inner, TweenInfo.new(0.05), {Size = UDim2.new(0, math.clamp(mouse.X - Inner.AbsolutePosition.X, 0, 290), 0, 15)}):Play()
- end
- end)
- end
- function sect:Dropdown(name,options,callback)
- options = options or {"YOU DIDN'T SET","YOUR OPTIONS"}
- callback = callback or function() end
- local Dropdown = Instance.new("ImageButton")
- local DropText = Instance.new("TextLabel")
- local Dropinner = Instance.new("ImageLabel")
- local Drop = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Scroll = Instance.new("ScrollingFrame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local UIPadding = Instance.new("UIPadding")
- local Mini = Instance.new("ImageButton")
- Dropdown.Name = "Dropdown"
- Dropdown.Parent = Section
- Dropdown.Active = false
- Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dropdown.BackgroundTransparency = 1.000
- Dropdown.Position = UDim2.new(0.137829915, 0, 0.109999999, 0)
- Dropdown.Selectable = false
- Dropdown.Size = UDim2.new(0, 317, 0, 39)
- Dropdown.Image = "rbxassetid://3570695787"
- Dropdown.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Dropdown.ScaleType = Enum.ScaleType.Slice
- Dropdown.SliceCenter = Rect.new(100, 100, 100, 100)
- Dropdown.SliceScale = 0.060
- Section.Size = Section.Size + UDim2.new(0,0,0,44)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,44)
- DropText.Name = "DropText"
- DropText.Parent = Dropdown
- DropText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DropText.BackgroundTransparency = 1.000
- DropText.Position = UDim2.new(0, -3, 0, 0)
- DropText.Size = UDim2.new(1, 0, 1, 0)
- DropText.ZIndex = 3
- DropText.Font = Enum.Font.GothamBold
- DropText.Text = " "..name
- DropText.TextColor3 = Color3.fromRGB(255, 115, 232)
- DropText.TextSize = 16.000
- DropText.TextXAlignment = Enum.TextXAlignment.Left
- Dropinner.Name = "Dropinner"
- Dropinner.Parent = Dropdown
- Dropinner.AnchorPoint = Vector2.new(0.5, 0.5)
- Dropinner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dropinner.BackgroundTransparency = 1.000
- Dropinner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Dropinner.Size = UDim2.new(1, -4, 1, -4)
- Dropinner.ZIndex = 2
- Dropinner.Image = "rbxassetid://3570695787"
- Dropinner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Dropinner.ScaleType = Enum.ScaleType.Slice
- Dropinner.SliceCenter = Rect.new(100, 100, 100, 100)
- Dropinner.SliceScale = 0.060
- Drop.Name = "Drop"
- Drop.Parent = Dropdown
- Drop.BackgroundColor3 = Color3.fromRGB(15, 14, 15)
- Drop.BorderSizePixel = 0
- Drop.ClipsDescendants = true
- Drop.Position = UDim2.new(0, 0, 1, 0)
- Drop.Size = UDim2.new(1, 0, 0, 0)
- Drop.ZIndex = 20
- UICorner.CornerRadius = UDim.new(0, 6)
- UICorner.Parent = Drop
- Scroll.Name = "Scroll"
- Scroll.Parent = Drop
- Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Scroll.BackgroundTransparency = 1.000
- Scroll.BorderSizePixel = 0
- Scroll.Selectable = false
- Scroll.Size = UDim2.new(1, 0, 1, 0)
- Scroll.ZIndex = 21
- Scroll.CanvasSize = UDim2.new(0, 0, 0, 106)
- Scroll.ScrollBarThickness = 6
- UIListLayout_2.Parent = Scroll
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 2)
- UIPadding.Parent = Scroll
- UIPadding.PaddingTop = UDim.new(0, 2)
- Mini.Name = "Mini"
- Mini.Parent = Dropdown
- Mini.Active = false
- Mini.BackgroundTransparency = 1.000
- Mini.Position = UDim2.new(0.856000006, 0, 0, 0)
- Mini.Selectable = false
- Mini.Size = UDim2.new(0, 35, 0, 35)
- Mini.ZIndex = 10
- Mini.Image = "rbxassetid://4370337241"
- Mini.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Mini.ScaleType = Enum.ScaleType.Fit
- for i,v in pairs(options) do
- local Button_2 = Instance.new("TextButton")
- Button_2.Name = v
- Button_2.Text = v
- Button_2.Parent = Scroll
- Button_2.BackgroundColor3 = Color3.fromRGB(25, 24, 25)
- Button_2.BorderSizePixel = 0
- Button_2.Position = UDim2.new(0, 0, 0.208999932, 0)
- Button_2.Size = UDim2.new(1, -12, 0, 32)
- Button_2.ZIndex = 22
- Button_2.AutoButtonColor = false
- Button_2.Font = Enum.Font.ArialBold
- Button_2.TextColor3 = Color3.fromRGB(230, 230, 230)
- Button_2.TextSize = 12.000
- local UICorner_2 = Instance.new("UICorner")
- UICorner_2.CornerRadius = UDim.new(0, 6)
- UICorner_2.Parent = Button_2
- end
- local script = Instance.new('LocalScript', Dropdown)
- local ena = false
- local cooldown = false
- local function CircleClick(Button)
- if cooldown == false then
- cooldown = true
- local clone = Button:Clone()
- clone.AnchorPoint = Vector2.new(0.5, 0.5)
- clone.Size = Button.Size + UDim2.new(0,10,0,10)
- clone.Position = UDim2.new(0.5, 0, 0.5, 0)
- clone.Parent = Button
- Button.BackgroundTransparency = 1
- game.TweenService:Create(clone, TweenInfo.new(0.2),{Size = Button.Size}):Play()
- wait(0.2)
- cooldown = false
- Button.BackgroundTransparency = 0
- clone:Destroy()
- end
- end
- local def = DropText.Text
- local old = DropText.Text
- local br = Name.CanvasSize
- local dr = Section.Size
- local function drop()
- if ena == false then
- ena = true
- old = DropText.Text
- game.TweenService:Create(Mini, TweenInfo.new(0.3), {Rotation = -90}):Play()
- game.TweenService:Create(Drop, TweenInfo.new(0.3), {Size = UDim2.new(1, 0,0, 106)}):Play()
- Section.Size = Section.Size + UDim2.new(0,0,0,111)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,111)
- DropText.Text = " ..."
- for i,v in pairs(Scroll:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Click:Connect(function()
- ena = false
- game.TweenService:Create(Mini, TweenInfo.new(0.3), {Rotation = 0}):Play()
- game.TweenService:Create(Drop, TweenInfo.new(0.3), {Size = UDim2.new(1, 0,0, 0)}):Play()
- callback(v.Text)
- DropText.Text = def..": "..v.Text
- local cooldown = false
- CircleClick(v)
- Section.Size = dr + UDim2.new(0,0,0,111)
- Name.CanvasSize = br+ UDim2.new(0,0,0,111)
- end)
- end
- end
- else
- ena = false
- game.TweenService:Create(Mini, TweenInfo.new(0.3), {Rotation = 0}):Play()
- game.TweenService:Create(Drop, TweenInfo.new(0.3), {Size = UDim2.new(1, 0,0, 0)}):Play()
- Section.Size = dr+ UDim2.new(0,0,0,111)
- Name.CanvasSize = br+ UDim2.new(0,0,0,111)
- DropText.Text = old
- end
- end
- Dropdown.MouseButton1Click:Connect(function()
- drop()
- end)
- Mini.MouseButton1Click:Connect(function()
- drop()
- end)
- end
- function sect:Box(name,callback)
- callback = callback or function() end
- local Box = Instance.new("ImageButton")
- local Boxinner = Instance.new("ImageLabel")
- local BoxText = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local UICorner_3 = Instance.new("UICorner")
- Box.Name = "Box"
- Box.Parent = Section
- Box.Active = false
- Box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Box.BackgroundTransparency = 1.000
- Box.Position = UDim2.new(0.137829915, 0, 0.109999999, 0)
- Box.Selectable = false
- Box.Size = UDim2.new(0, 317, 0, 39)
- Box.Image = "rbxassetid://3570695787"
- Box.ImageColor3 = Color3.fromRGB(255, 115, 232)
- Box.ScaleType = Enum.ScaleType.Slice
- Box.SliceCenter = Rect.new(100, 100, 100, 100)
- Box.SliceScale = 0.060
- Section.Size = Section.Size + UDim2.new(0,0,0,44)
- Name.CanvasSize = Name.CanvasSize + UDim2.new(0,0,0,44)
- Boxinner.Name = "Boxinner"
- Boxinner.Parent = Box
- Boxinner.AnchorPoint = Vector2.new(0.5, 0.5)
- Boxinner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Boxinner.BackgroundTransparency = 1.000
- Boxinner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Boxinner.Size = UDim2.new(1, -4, 1, -4)
- Boxinner.ZIndex = 2
- Boxinner.Image = "rbxassetid://3570695787"
- Boxinner.ImageColor3 = Color3.fromRGB(26, 26, 26)
- Boxinner.ScaleType = Enum.ScaleType.Slice
- Boxinner.SliceCenter = Rect.new(100, 100, 100, 100)
- Boxinner.SliceScale = 0.060
- BoxText.Name = "BoxText"
- BoxText.Parent = Box
- BoxText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BoxText.BackgroundTransparency = 1.000
- BoxText.Position = UDim2.new(0, -3, 0, 0)
- BoxText.Size = UDim2.new(1, 0, 1, 0)
- BoxText.ZIndex = 3
- BoxText.Font = Enum.Font.GothamBold
- BoxText.Text = " "..name
- BoxText.TextColor3 = Color3.fromRGB(255, 115, 232)
- BoxText.TextSize = 16.000
- BoxText.TextXAlignment = Enum.TextXAlignment.Left
- TextBox.Parent = Box
- TextBox.BackgroundColor3 = Color3.fromRGB(21, 19, 21)
- TextBox.Position = UDim2.new(0.711999953, 0, 0.219000012, 0)
- TextBox.Size = UDim2.new(0, 75, 0, 19)
- TextBox.ZIndex = 20
- TextBox.Font = Enum.Font.ArialBold
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextSize = 12.000
- UICorner_3.CornerRadius = UDim.new(0, 4)
- UICorner_3.Parent = TextBox
- local script = Instance.new('LocalScript', Box)
- script.Parent.TextBox.Focused:Connect(function()
- game.TweenService:Create(script.Parent.TextBox, TweenInfo.new(0.3), {Size = UDim2.new(0, 129,0, 19)}):Play()
- game.TweenService:Create(script.Parent.TextBox, TweenInfo.new(0.3), {Position = UDim2.new(0.542, 0,0.219,0)}):Play()
- end)
- script.Parent.TextBox.FocusLost:Connect(function()
- game.TweenService:Create(script.Parent.TextBox, TweenInfo.new(0.3), {Size = UDim2.new(0, 75,0, 19)}):Play()
- game.TweenService:Create(script.Parent.TextBox, TweenInfo.new(0.3), {Position = UDim2.new(0.712, 0,0.219,0)}):Play()
- callback(TextBox.Text)
- end)
- end
- return sect;
- end
- return cat;
- end
- function Win:Sort()
- for i,v in pairs(List:GetChildren()) do
- if v:IsA("ImageButton") then
- v.TextButton.MouseButton1Click:Connect(function()
- print("PRESSED")
- for i1,v1 in pairs(Categories:GetChildren()) do
- v1.Visible = false
- if v1.Name == v.Name then
- v1.Visible = true
- end
- end
- for i2,v2 in pairs(List:GetChildren()) do
- if v2:IsA("ImageButton") then
- game:GetService("TweenService"):Create(v2.Outer, TweenInfo.new(0.3), {ImageColor3 = Color3.fromRGB(145, 65, 134)}):Play()
- end
- end
- game:GetService("TweenService"):Create(v.Outer, TweenInfo.new(0.3), {ImageColor3 = Color3.fromRGB(255, 115, 232)}):Play()
- end)
- end
- end
- end
- return Win;
- end
- return Library;
Advertisement
Add Comment
Please, Sign In to add comment