Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Lib = {}
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ResetOnSpawn = false
- function Lib:CreateWindow(name)
- wait(0.2)
- local pos = 0.1
- local get = ScreenGui:GetChildren()
- if ScreenGui:FindFirstChildOfClass("ImageLabel") ~= nil then -- checking if there is already a menu
- for i = 1, #get do
- pos = pos + 0.058
- end
- else
- pos = 0.058
- end
- local Main = Instance.new("ImageLabel")
- local JellyFrames = Instance.new("ImageLabel")
- local JellyFrames_2 = Instance.new("ImageLabel")
- local Title = Instance.new("TextLabel")
- local Container = Instance.new("ImageLabel")
- local Jelly = Instance.new("ImageButton")
- Main.Name = name
- Main.Parent = ScreenGui
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BackgroundTransparency = 1.000
- Main.Position = UDim2.new(pos, 0, 0.198288158, 0)
- Main.Size = UDim2.new(0, 175, 0, 30)
- Main.Image = "rbxassetid://3570695787"
- Main.ImageColor3 = Color3.fromRGB(58, 58, 58)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(100, 100, 100, 100)
- Main.SliceScale = 0.040
- JellyFrames.Name = "JellyFrames"
- JellyFrames.Parent = Main
- JellyFrames.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames.BackgroundTransparency = 1.000
- JellyFrames.Position = UDim2.new(0.0199999996, 0, 0.0199999996, 0)
- JellyFrames.Size = UDim2.new(0, 2, 0, 26)
- JellyFrames.Image = "rbxassetid://3570695787"
- JellyFrames.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames.ScaleType = Enum.ScaleType.Slice
- JellyFrames.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames.SliceScale = 0.040
- JellyFrames_2.Name = "JellyFrames"
- JellyFrames_2.Parent = Main
- JellyFrames_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_2.BackgroundTransparency = 1.000
- JellyFrames_2.Position = UDim2.new(0.970000029, 0, 0.0199999996, 0)
- JellyFrames_2.Size = UDim2.new(0, 2, 0, 26)
- JellyFrames_2.Image = "rbxassetid://3570695787"
- JellyFrames_2.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_2.ScaleType = Enum.ScaleType.Slice
- JellyFrames_2.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_2.SliceScale = 0.040
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Size = UDim2.new(1, 0, 1, 0)
- Title.ZIndex = 2
- Title.Font = Enum.Font.SourceSans
- Title.TextColor3 = Color3.fromRGB(206, 206, 206)
- Title.TextScaled = true
- Title.Text = name
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Container.Name = "Container"
- Container.Parent = Main
- Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container.BackgroundTransparency = 1.000
- Container.Position = UDim2.new(0.0285714287, 0, 1, 0)
- Container.Size = UDim2.new(0.949999988, 0, 0, 0)
- Container.Image = "rbxassetid://3570695787"
- Container.ImageColor3 = Color3.fromRGB(58, 58, 58)
- Container.ScaleType = Enum.ScaleType.Slice
- Container.SliceCenter = Rect.new(100, 100, 100, 100)
- Container.SliceScale = 0.040
- Container.ClipsDescendants = true
- Jelly.Name = "Jelly"
- Jelly.Parent = Main
- Jelly.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Jelly.BackgroundTransparency = 1.000
- Jelly.BorderSizePixel = 0
- Jelly.Size = UDim2.new(0, 175, 0, 30)
- Jelly.Image = "http://www.roblox.com/asset/?id=4851028375"
- Jelly.ScaleType = Enum.ScaleType.Crop
- Jelly.SliceCenter = Rect.new(100, 100, 100, 100)
- Jelly.SliceScale = 0.100
- local Details = Instance.new("TextLabel")
- local TextLabel_Roundify_4px = Instance.new("ImageLabel")
- local JellyFrames_3 = Instance.new("ImageLabel")
- local JellyFrames_4 = Instance.new("ImageLabel")
- local UIListLayout = Instance.new("UIListLayout")
- Details.Name = "Details"
- Details.Parent = Container
- Details.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- Details.BackgroundTransparency = 1.000
- Details.BorderSizePixel = 0
- Details.Size = UDim2.new(1, 0, 0, 4)
- Details.Font = Enum.Font.SourceSans
- Details.Text = " "
- Details.TextColor3 = Color3.fromRGB(0, 0, 0)
- Details.TextSize = 14.000
- TextLabel_Roundify_4px.Name = "TextLabel_Roundify_4px"
- TextLabel_Roundify_4px.Parent = Details
- TextLabel_Roundify_4px.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel_Roundify_4px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_Roundify_4px.BackgroundTransparency = 1.000
- TextLabel_Roundify_4px.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextLabel_Roundify_4px.Size = UDim2.new(1, 0, 1, 0)
- TextLabel_Roundify_4px.Image = "rbxassetid://3570695787"
- TextLabel_Roundify_4px.ImageColor3 = Color3.fromRGB(0, 170, 255)
- TextLabel_Roundify_4px.ScaleType = Enum.ScaleType.Slice
- TextLabel_Roundify_4px.SliceCenter = Rect.new(100, 100, 100, 100)
- TextLabel_Roundify_4px.SliceScale = 0.040
- JellyFrames_3.Name = "JellyFrames"
- JellyFrames_3.Parent = Details
- JellyFrames_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_3.BackgroundTransparency = 1.000
- JellyFrames_3.Position = UDim2.new(0.0199999996, 0, 1.01999998, 0)
- JellyFrames_3.Size = UDim2.new(0, 2, 0, 229)
- JellyFrames_3.Image = "rbxassetid://3570695787"
- JellyFrames_3.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_3.ScaleType = Enum.ScaleType.Slice
- JellyFrames_3.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_3.SliceScale = 0.040
- JellyFrames_4.Name = "JellyFrames"
- JellyFrames_4.Parent = Details
- JellyFrames_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_4.BackgroundTransparency = 1.000
- JellyFrames_4.Position = UDim2.new(0.976015091, 0, 1.01999998, 0)
- JellyFrames_4.Size = UDim2.new(0, 2, 0, 229)
- JellyFrames_4.Image = "rbxassetid://3570695787"
- JellyFrames_4.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_4.ScaleType = Enum.ScaleType.Slice
- JellyFrames_4.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_4.SliceScale = 0.040
- UIListLayout.Parent = Container
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- local WindowPart = {}
- function WindowPart:Button(name,callback)
- callback = callback or function() end
- local Button = Instance.new("TextButton")
- local JellyFrames_5 = Instance.new("ImageLabel")
- local JellyFrames_6 = Instance.new("ImageLabel")
- Button.Name = name.."Button"
- Button.Parent = Container
- Button.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Button.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Button.BorderSizePixel = 0
- Button.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Button.Size = UDim2.new(0, 150, 0, 20)
- Button.Font = Enum.Font.SourceSans
- Button.Text = " "..name
- Button.TextColor3 = Color3.fromRGB(206, 206, 206)
- Button.TextSize = 15.000
- Button.TextWrapped = true
- Button.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_5.Name = "JellyFrames"
- JellyFrames_5.Parent = Button
- JellyFrames_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_5.BackgroundTransparency = 1.000
- JellyFrames_5.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_5.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_5.Image = "rbxassetid://3570695787"
- JellyFrames_5.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_5.ScaleType = Enum.ScaleType.Slice
- JellyFrames_5.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_5.SliceScale = 0.040
- JellyFrames_6.Name = "JellyFrames"
- JellyFrames_6.Parent = Button
- JellyFrames_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_6.BackgroundTransparency = 1.000
- JellyFrames_6.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_6.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_6.Image = "rbxassetid://3570695787"
- JellyFrames_6.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_6.ScaleType = Enum.ScaleType.Slice
- JellyFrames_6.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_6.SliceScale = 0.040
- Button.MouseButton1Click:Connect(function()callback()end)
- Container.Size = Container.Size + UDim2.new(0,0,0,25)
- end
- function WindowPart:Toggle(name,callback)
- callback = callback or function() end
- local Toggle = Instance.new("TextLabel")
- local JellyFrames_7 = Instance.new("ImageLabel")
- local JellyFrames_8 = Instance.new("ImageLabel")
- local ToggleButton = Instance.new("TextButton")
- Toggle.Name = name.."Toggle"
- Toggle.Parent = Container
- Toggle.Active = true
- Toggle.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Toggle.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Toggle.BorderSizePixel = 0
- Toggle.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Toggle.Selectable = true
- Toggle.Size = UDim2.new(0, 150, 0, 20)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.Text = " "..name
- Toggle.TextColor3 = Color3.fromRGB(206, 206, 206)
- Toggle.TextSize = 15.000
- Toggle.TextWrapped = true
- Toggle.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_7.Name = "JellyFrames"
- JellyFrames_7.Parent = Toggle
- JellyFrames_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_7.BackgroundTransparency = 1.000
- JellyFrames_7.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_7.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_7.Image = "rbxassetid://3570695787"
- JellyFrames_7.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_7.ScaleType = Enum.ScaleType.Slice
- JellyFrames_7.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_7.SliceScale = 0.040
- JellyFrames_8.Name = "JellyFrames"
- JellyFrames_8.Parent = Toggle
- JellyFrames_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_8.BackgroundTransparency = 1.000
- JellyFrames_8.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_8.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_8.Image = "rbxassetid://3570695787"
- JellyFrames_8.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_8.ScaleType = Enum.ScaleType.Slice
- JellyFrames_8.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_8.SliceScale = 0.040
- ToggleButton.Name = "ToggleButton"
- ToggleButton.Parent = Toggle
- ToggleButton.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- ToggleButton.BorderColor3 = Color3.fromRGB(85, 85, 85)
- ToggleButton.Position = UDim2.new(0.762205422, 0, -0.0123428348, 0)
- ToggleButton.Size = UDim2.new(0, 20, 0, 20)
- ToggleButton.Font = Enum.Font.SourceSans
- ToggleButton.Text = " "
- ToggleButton.TextColor3 = Color3.fromRGB(206, 206, 206)
- ToggleButton.TextScaled = true
- ToggleButton.TextSize = 14.000
- ToggleButton.TextWrapped = true
- local o = false
- ToggleButton.MouseButton1Click:Connect(function()
- if o == false then
- o = true
- ToggleButton.Text = "✓"
- callback()
- else
- o = false
- ToggleButton.Text = ""
- end
- end)
- Container.Size = Container.Size + UDim2.new(0,0,0,25)
- end
- function WindowPart:Box(name,callback)
- callback = callback or function() end
- local Box = Instance.new("TextLabel")
- local JellyFrames_9 = Instance.new("ImageLabel")
- local JellyFrames_10 = Instance.new("ImageLabel")
- local RealBox = Instance.new("TextBox")
- Box.Name = name.."Box"
- Box.Parent = Container
- Box.Active = true
- Box.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Box.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Box.BorderSizePixel = 0
- Box.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Box.Selectable = true
- Box.Size = UDim2.new(0, 150, 0, 20)
- Box.Font = Enum.Font.SourceSans
- Box.Text = " "..name
- Box.TextColor3 = Color3.fromRGB(206, 206, 206)
- Box.TextSize = 15.000
- Box.TextWrapped = true
- Box.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_9.Name = "JellyFrames"
- JellyFrames_9.Parent = Box
- JellyFrames_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_9.BackgroundTransparency = 1.000
- JellyFrames_9.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_9.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_9.Image = "rbxassetid://3570695787"
- JellyFrames_9.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_9.ScaleType = Enum.ScaleType.Slice
- JellyFrames_9.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_9.SliceScale = 0.040
- JellyFrames_10.Name = "JellyFrames"
- JellyFrames_10.Parent = Box
- JellyFrames_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_10.BackgroundTransparency = 1.000
- JellyFrames_10.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_10.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_10.Image = "rbxassetid://3570695787"
- JellyFrames_10.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_10.ScaleType = Enum.ScaleType.Slice
- JellyFrames_10.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_10.SliceScale = 0.040
- RealBox.Name = "RealBox"
- RealBox.Parent = Box
- RealBox.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- RealBox.BorderColor3 = Color3.fromRGB(85, 85, 85)
- RealBox.Position = UDim2.new(0.642205417, 0, -0.0123428348, 0)
- RealBox.Size = UDim2.new(0, 38, 0, 20)
- RealBox.Font = Enum.Font.SourceSans
- RealBox.PlaceholderColor3 = Color3.fromRGB(126, 126, 126)
- RealBox.Text = ""
- RealBox.TextColor3 = Color3.fromRGB(206, 206, 206)
- RealBox.TextScaled = true
- RealBox.TextSize = 14.000
- RealBox.TextWrapped = true
- RealBox.FocusLost:Connect(function()
- callback(RealBox.Text)
- end)
- Container.Size =Container.Size + UDim2.new(0,0,0,25)
- end
- function WindowPart:Slider(name,min,max,estimate,callback)
- callback = callback or function() end
- min = min or 0
- max = max or 100
- estimate = estimate or true
- local Slider = Instance.new("TextLabel")
- local JellyFrames_11 = Instance.new("ImageLabel")
- local JellyFrames_12 = Instance.new("ImageLabel")
- local Slide = Instance.new("ImageButton")
- local Slider_2 = Instance.new("ImageButton")
- Slider.Name = name.."Slider"
- Slider.Parent = Container
- Slider.Active = true
- Slider.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Slider.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Slider.BorderSizePixel = 0
- Slider.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Slider.Selectable = true
- Slider.Size = UDim2.new(0, 150, 0, 20)
- Slider.Font = Enum.Font.SourceSans
- Slider.Text = " "..name
- Slider.TextColor3 = Color3.fromRGB(206, 206, 206)
- Slider.TextSize = 15.000
- Slider.TextWrapped = true
- Slider.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_11.Name = "JellyFrames"
- JellyFrames_11.Parent = Slider
- JellyFrames_11.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_11.BackgroundTransparency = 1.000
- JellyFrames_11.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_11.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_11.Image = "rbxassetid://3570695787"
- JellyFrames_11.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_11.ScaleType = Enum.ScaleType.Slice
- JellyFrames_11.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_11.SliceScale = 0.040
- JellyFrames_12.Name = "JellyFrames"
- JellyFrames_12.Parent = Slider
- JellyFrames_12.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_12.BackgroundTransparency = 1.000
- JellyFrames_12.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_12.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_12.Image = "rbxassetid://3570695787"
- JellyFrames_12.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_12.ScaleType = Enum.ScaleType.Slice
- JellyFrames_12.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_12.SliceScale = 0.040
- Slide.Name = "Slide"
- Slide.Parent = Slider
- Slide.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Slide.BorderColor3 = Color3.fromRGB(85, 85, 85)
- Slide.Position = UDim2.new(0.588872075, 0, 0.0500000007, 0)
- Slide.Size = UDim2.new(-0.162205398, 70, 1, 0)
- Slide.Image = "rbxassetid://3570695787"
- Slide.ImageColor3 = Color3.fromRGB(58, 58, 58)
- Slide.ScaleType = Enum.ScaleType.Slice
- Slide.SliceCenter = Rect.new(100, 100, 100, 100)
- Slide.SliceScale = 0.040
- Slider_2.Name = "Slider"
- Slider_2.Parent = Slide
- Slider_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slider_2.BackgroundTransparency = 1.000
- Slider_2.BorderSizePixel = 0
- Slider_2.Position = UDim2.new(-1.49011612e-08, 0, 0, 0)
- Slider_2.Size = UDim2.new(0, 0, 1, 0)
- Slider_2.Image = "rbxassetid://3570695787"
- Slider_2.ImageTransparency = 0.900
- Slider_2.ScaleType = Enum.ScaleType.Slice
- Slider_2.SliceCenter = Rect.new(100, 100, 100, 100)
- Slider_2.SliceScale = 0.040
- local realVal = Slider.Text.." :"
- local Val = Slider
- local Sliderr = Slide
- local mousepressed = false
- print(Slider)
- local SliderBtn = Slider_2
- local Player = game:GetService("Players").LocalPlayer
- local UIS = game:GetService("UserInputService")
- local RuS = game:GetService("RunService")
- -- Properties
- local held = false
- local step = 0
- local percentage = 0
- function snap(number, factor)
- if factor == 0 then
- return number
- else
- return math.floor(number/factor+0.5)*factor
- end
- end
- UIS.InputEnded:connect(function(input, processed)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- held = false
- mousepressed = false
- end
- end)
- UIS.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- mousepressed = true
- end
- end)
- Sliderr.MouseEnter:connect(function()
- if mousepressed then
- held = true
- end
- end)
- RuS.RenderStepped:connect(function(delta)
- if held then
- local MousePos = UIS:GetMouseLocation().X
- local BtnPos = SliderBtn.Position
- local SliderSize = Sliderr.AbsoluteSize.X
- local SliderPos = Sliderr.AbsolutePosition.X
- local pos = snap((MousePos-SliderPos)/SliderSize,step)
- percentage = math.clamp(pos,0,1)
- SliderBtn.Position = UDim2.new(percentage/100,0,BtnPos.Y.Scale, BtnPos.Y.Offset)
- SliderBtn.Size = UDim2.new(percentage,0,1,0)
- local bry = (math.floor((0 + (max - 0) * percentage) * max) / max)
- if estimate == true then
- local big = math.floor(bry)
- Val.Text = realVal..big..""
- elseif estimate == false then
- Val.Text = realVal..bry..""
- end
- end
- end)
- Container.Size = Container.Size + UDim2.new(0,0,0,25)
- end
- function WindowPart:Dropdown(name,options,callback)
- callback = callback or function() end
- local Dropdown = Instance.new("TextLabel")
- local JellyFrames_13 = Instance.new("ImageLabel")
- local JellyFrames_14 = Instance.new("ImageLabel")
- local ToggleButton_2 = Instance.new("TextButton")
- local Container_2 = Instance.new("ImageLabel")
- local Details_2 = Instance.new("TextLabel")
- local TextLabel_Roundify_4px_2 = Instance.new("ImageLabel")
- local UIListLayout_2 = Instance.new("UIListLayout")
- Dropdown.Name = "Dropdown"
- Dropdown.Parent = Container
- Dropdown.Active = true
- Dropdown.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Dropdown.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Dropdown.BorderSizePixel = 0
- Dropdown.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Dropdown.Selectable = true
- Dropdown.Size = UDim2.new(0, 150, 0, 20)
- Dropdown.Font = Enum.Font.SourceSans
- Dropdown.Text = " Button"
- Dropdown.TextColor3 = Color3.fromRGB(206, 206, 206)
- Dropdown.TextSize = 15.000
- Dropdown.TextWrapped = true
- Dropdown.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_13.Name = "JellyFrames"
- JellyFrames_13.Parent = Dropdown
- JellyFrames_13.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_13.BackgroundTransparency = 1.000
- JellyFrames_13.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_13.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_13.Image = "rbxassetid://3570695787"
- JellyFrames_13.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_13.ScaleType = Enum.ScaleType.Slice
- JellyFrames_13.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_13.SliceScale = 0.040
- JellyFrames_14.Name = "JellyFrames"
- JellyFrames_14.Parent = Dropdown
- JellyFrames_14.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_14.BackgroundTransparency = 1.000
- JellyFrames_14.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_14.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_14.Image = "rbxassetid://3570695787"
- JellyFrames_14.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_14.ScaleType = Enum.ScaleType.Slice
- JellyFrames_14.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_14.SliceScale = 0.040
- ToggleButton_2.Name = "ToggleButton"
- ToggleButton_2.Parent = Dropdown
- ToggleButton_2.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- ToggleButton_2.BorderColor3 = Color3.fromRGB(85, 85, 85)
- ToggleButton_2.Position = UDim2.new(0.762205422, 0, -0.0123428348, 0)
- ToggleButton_2.Size = UDim2.new(0, 20, 0, 20)
- ToggleButton_2.Font = Enum.Font.SourceSans
- ToggleButton_2.Text = "V"
- ToggleButton_2.TextColor3 = Color3.fromRGB(206, 206, 206)
- ToggleButton_2.TextScaled = true
- ToggleButton_2.TextSize = 14.000
- ToggleButton_2.TextWrapped = true
- Container_2.Name = "Container"
- Container_2.Parent = ToggleButton_2
- Container_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container_2.BackgroundTransparency = 1.000
- Container_2.Position = UDim2.new(-5.69999981, 0, 1, 0)
- Container_2.Size = UDim2.new(0, 150, 0, 35)
- Container_2.Visible = false
- Container_2.Image = "rbxassetid://3570695787"
- Container_2.ImageColor3 = Color3.fromRGB(58, 58, 58)
- Container_2.ScaleType = Enum.ScaleType.Slice
- Container_2.SliceCenter = Rect.new(100, 100, 100, 100)
- Container_2.SliceScale = 0.040
- Details_2.Name = "Details"
- Details_2.Parent = Container_2
- Details_2.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- Details_2.BackgroundTransparency = 1.000
- Details_2.BorderSizePixel = 0
- Details_2.Size = UDim2.new(1, 0, 0, 4)
- Details_2.Font = Enum.Font.SourceSans
- Details_2.Text = " "
- Details_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- Details_2.TextSize = 14.000
- TextLabel_Roundify_4px_2.Name = "TextLabel_Roundify_4px"
- TextLabel_Roundify_4px_2.Parent = Details_2
- TextLabel_Roundify_4px_2.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel_Roundify_4px_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_Roundify_4px_2.BackgroundTransparency = 1.000
- TextLabel_Roundify_4px_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextLabel_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0)
- TextLabel_Roundify_4px_2.Image = "rbxassetid://3570695787"
- TextLabel_Roundify_4px_2.ImageColor3 = Color3.fromRGB(0, 170, 255)
- TextLabel_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice
- TextLabel_Roundify_4px_2.SliceCenter = Rect.new(100, 100, 100, 100)
- TextLabel_Roundify_4px_2.SliceScale = 0.040
- UIListLayout_2.Parent = Container_2
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0, 5)
- for i,v in pairs(options) do
- local Button_2 = Instance.new("TextButton")
- local JellyFrames_15 = Instance.new("ImageLabel")
- local JellyFrames_16 = Instance.new("ImageLabel")
- Button_2.Name = "Button"
- Button_2.Parent = Container_2
- Button_2.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Button_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Button_2.BorderSizePixel = 0
- Button_2.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Button_2.Size = UDim2.new(0, 150, 0, 20)
- Button_2.Font = Enum.Font.SourceSans
- Button_2.Text = " Button"
- Button_2.TextColor3 = Color3.fromRGB(206, 206, 206)
- Button_2.TextScaled = true
- Button_2.TextSize = 14.000
- Button_2.TextWrapped = true
- Button_2.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_15.Name = "JellyFrames"
- JellyFrames_15.Parent = Button_2
- JellyFrames_15.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_15.BackgroundTransparency = 1.000
- JellyFrames_15.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_15.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_15.Image = "rbxassetid://3570695787"
- JellyFrames_15.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_15.ScaleType = Enum.ScaleType.Slice
- JellyFrames_15.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_15.SliceScale = 0.040
- JellyFrames_16.Name = "JellyFrames"
- JellyFrames_16.Parent = Button_2
- JellyFrames_16.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_16.BackgroundTransparency = 1.000
- JellyFrames_16.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_16.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_16.Image = "rbxassetid://3570695787"
- JellyFrames_16.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_16.ScaleType = Enum.ScaleType.Slice
- JellyFrames_16.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_16.SliceScale = 0.040
- Button_2.MouseButton1Click:Connect(function()
- callback(v)
- end)
- Container_2.Size = Container_2.Size + UDim2.new(0,0,0,25)
- end
- local real = Container_2.Size
- local rot = 0
- local open = false
- ToggleButton_2.MouseButton1Click:Connect(function()
- if rot == 0 then
- open = false
- for i = 1,180 do
- ToggleButton_2.Rotation = rot
- rot = rot + 1
- wait(0.0025)
- end
- Container_2.Size = UDim2.new(0,150,0,0)
- Container_2.Visible = true
- Container_2:TweenSize(real,"Out","Sine",0.45,false,nil)
- Container.ClipsDescendants = false
- elseif rot == 180 then
- for i = 1,180 do
- ToggleButton_2.Rotation = rot
- rot = rot - 1
- wait(0.01)
- end
- Container_2:TweenSize(UDim2.new(0, 150, 0, 0),"In","Sine",0.45,false,nil)
- Container.ClipsDescendants = true
- Container_2.Visible = false
- end
- end)
- Container.Size =Container.Size + UDim2.new(0,0,0,25)
- end
- function WindowPart:Sector(name)
- local Sector = Instance.new("TextLabel")
- local JellyFrames_17 = Instance.new("ImageLabel")
- local JellyFrames_18 = Instance.new("ImageLabel")
- Sector.Name = name.."Sector"
- Sector.Parent = Container
- Sector.Active = true
- Sector.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
- Sector.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Sector.BorderSizePixel = 0
- Sector.Position = UDim2.new(0.0488721803, 0, 0.0376569033, 0)
- Sector.Selectable = true
- Sector.Size = UDim2.new(0, 150, 0, 20)
- Sector.Font = Enum.Font.SourceSans
- Sector.Text = " "..name
- Sector.TextColor3 = Color3.fromRGB(206, 206, 206)
- Sector.TextSize = 15.000
- Sector.TextWrapped = true
- Sector.TextXAlignment = Enum.TextXAlignment.Left
- JellyFrames_17.Name = "JellyFrames"
- JellyFrames_17.Parent = Sector
- JellyFrames_17.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_17.BackgroundTransparency = 1.000
- JellyFrames_17.Position = UDim2.new(0.964999974, 0, 0.0500000007, 0)
- JellyFrames_17.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_17.Image = "rbxassetid://3570695787"
- JellyFrames_17.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_17.ScaleType = Enum.ScaleType.Slice
- JellyFrames_17.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_17.SliceScale = 0.040
- JellyFrames_18.Name = "JellyFrames"
- JellyFrames_18.Parent = Sector
- JellyFrames_18.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- JellyFrames_18.BackgroundTransparency = 1.000
- JellyFrames_18.Position = UDim2.new(0.0199999996, 0, 0.0500000007, 0)
- JellyFrames_18.Size = UDim2.new(0, 2, 1, -2)
- JellyFrames_18.Image = "rbxassetid://3570695787"
- JellyFrames_18.ImageColor3 = Color3.fromRGB(85, 85, 85)
- JellyFrames_18.ScaleType = Enum.ScaleType.Slice
- JellyFrames_18.SliceCenter = Rect.new(100, 100, 100, 100)
- JellyFrames_18.SliceScale = 0.040
- Container.Size.Y.Offset = Container.Size.Y.Offset + UDim2.new(0,0,0,25)
- end
- return WindowPart;
- end;
- return Lib;
- --[[I thought you would need some help :)
- local window = library:CreateWindow("Window")
- local Button = window:Button("Button",function()
- print("Button Pressed!")
- end)
- local Toggle = window:Toggle("Toggle",function()
- print("Toggle Pressed!")
- end)
- local Box = window:Box("Box",function(Text)
- local text = tonumber(Text)
- print("Box Text Changed To: "..text)
- end)
- local Slider = window:Slider("Slider(rounds up)",0,100,true,function(Val)
- print("Slider Value Changed To: "..Val)
- end)
- local Slider = window:Slider("Slider(doesn't round)",0,100,false,function(Val)
- print("Slider Value Changed To: "..Val)
- end)
- sorry still developing dropdowns
- local Dropdown = window:Dropdown("Dropdown",{"a","b","c","d"},function(Selected)
- print("Dropdown Chosen: "..Selected)
- end)
- local Sector = window:Sector("Sector!")
- local Button = window:Button("Sections Work!", function()
- print("See!")
- end)
- ]]
Add Comment
Please, Sign In to add comment