Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local library = {}
- function library:CreateWindow()
- local CoolestUiInTown = Instance.new("ScreenGui")
- local Top = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local UIGridLayout = Instance.new("UIGridLayout")
- local windoname = Instance.new("TextLabel")
- local HS = Instance.new("TextButton")
- local red = Instance.new("Frame")
- local green = Instance.new("Frame")
- CoolestUiInTown.Name = "CoolestUiInTown"
- CoolestUiInTown.Parent = game.CoreGui
- Top.Name = "Top"
- Top.Parent = CoolestUiInTown
- Top.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Top.BorderSizePixel = 0
- Top.Position = UDim2.new(0.234489053, 0, 0.137802616, 0)
- Top.Size = UDim2.new(0, 136, 0, 20)
- Top.Active = true
- Top.Selectable = true
- Top.Draggable = true
- Frame.Parent = Top
- Frame.BackgroundColor3 = Color3.fromRGB(23, 23, 23)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, 0.999999642, 0)
- Frame.Size = UDim2.new(0, 136, 0, 52)
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame_2.BackgroundTransparency = 1.000
- Frame_2.Position = UDim2.new(0, 0, 0, 3)
- Frame_2.Size = UDim2.new(0, 136, 0, 20)
- windoname.Name = "windoname"
- windoname.Parent = Top
- windoname.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- windoname.BackgroundTransparency = 1.000
- windoname.Position = UDim2.new(0.139705881, 0, 0, 0)
- windoname.Size = UDim2.new(0, 95, 0, 20)
- windoname.Font = Enum.Font.ArialBold
- windoname.Text = "window title"
- windoname.TextColor3 = Color3.fromRGB(255, 255, 255)
- windoname.TextSize = 14.000
- HS.Name = "HS"
- HS.Parent = Top
- HS.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- HS.BackgroundTransparency = 1.000
- HS.Position = UDim2.new(0.838235319, 0, 0, 0)
- HS.Size = UDim2.new(0, 21, 0, 19)
- HS.Font = Enum.Font.ArialBold
- HS.Text = "-"
- HS.TextColor3 = Color3.fromRGB(255, 255, 255)
- HS.TextSize = 14.000
- red.Name = "red"
- red.Parent = Top
- red.BackgroundColor3 = Color3.fromRGB(210, 46, 47)
- red.BackgroundTransparency = 1.000
- green.Name = "green"
- green.Parent = Top
- green.BackgroundColor3 = Color3.fromRGB(45, 192, 45)
- green.BackgroundTransparency = 1.000
- UIGridLayout.Parent = Frame_2
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellSize = UDim2.new(0, 136, 0, 20)
- local script = Instance.new('LocalScript', HS)
- script.Parent.MouseButton1Click:Connect(function()
- if script.Parent.Parent.HS.Text == ("-") then
- wait()
- script.Parent.Parent.HS.Visible = false
- script.Parent.Parent.Frame.Frame.Visible = false
- script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 136,0, 0))
- wait(1)
- script.Parent.Parent.HS.Text = ("+")
- script.Parent.Parent.HS.Visible = true
- else
- if script.Parent.Parent.HS.Text == ("+") then
- wait()
- script.Parent.Parent.HS.Visible = false
- script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 136,0, 77))
- wait(1)
- script.Parent.Parent.Frame.Frame.Visible = true
- script.Parent.Parent.HS.Text = ("-")
- script.Parent.Parent.HS.Visible = true
- end
- end
- end)
- local script = Instance.new('LocalScript', Top)
- local mouse = game.Players.LocalPlayer:GetMouse()
- local player = game.Players.LocalPlayer
- local gui = script.Parent.Parent.Top
- mouse.KeyDown:connect(function(key)
- if key == "j" then
- if gui.Visible == false then
- gui.Visible = true
- else
- gui.Visible = false
- end
- end
- end)
- end
- local EpicLibrary = {}
- function EpicLibrary:CreateButton(text)
- local button = Instance.new("Frame")
- local buttonbody = Instance.new("ImageLabel")
- local Title = Instance.new("TextButton")
- button.Name = "button"
- button.Parent = Frame_2
- button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundTransparency = 1.000
- button.Position = UDim2.new(0, 0, 0.0434782617, 0)
- button.Size = UDim2.new(0, 136, 0, 20)
- buttonbody.Name = "buttonbody"
- buttonbody.Parent = button
- buttonbody.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- buttonbody.BackgroundTransparency = 1.000
- buttonbody.Position = UDim2.new(0.0439999998, 0, 0, 0)
- buttonbody.Size = UDim2.new(0, 124, 0, 20)
- buttonbody.Image = "rbxassetid://3570695787"
- buttonbody.ImageColor3 = Color3.fromRGB(40, 40, 40)
- buttonbody.ScaleType = Enum.ScaleType.Slice
- buttonbody.SliceCenter = Rect.new(100, 100, 100, 100)
- buttonbody.SliceScale = 0.120
- Title.Name = "Title"
- Title.Parent = buttonbody
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Size = UDim2.new(0, 124, 0, 20)
- Title.AutoButtonColor = false
- Title.Font = Enum.Font.ArialBold
- Title.Text = text
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 14.000
- return EpicLibrary
- end
- local CoolLibrary = {}
- function CoolLibrary:CreateToggle
- local toggle = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local onoff = Instance.new("ImageLabel")
- local Click = Instance.new("TextButton")
- toggle.Name = "toggle"
- toggle.Parent = Frame_2
- toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- toggle.BackgroundTransparency = 1.000
- toggle.Position = UDim2.new(0, 0, 0.0434782617, 0)
- toggle.Size = UDim2.new(0, 136, 0, 20)
- Name.Name = "Name"
- Name.Parent = toggle
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.BorderSizePixel = 0
- Name.Position = UDim2.new(0.0881177112, 0, 0, 0)
- Name.Size = UDim2.new(0, 118, 0, 19)
- Name.Font = Enum.Font.ArialBold
- Name.Text = "toggle"
- Name.TextColor3 = Color3.fromRGB(255, 255, 255)
- Name.TextSize = 14.000
- Name.TextXAlignment = Enum.TextXAlignment.Left
- onoff.Name = "onoff"
- onoff.Parent = Name
- onoff.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- onoff.BackgroundTransparency = 1.000
- onoff.Position = UDim2.new(0.813559294, 0, 0, 0)
- onoff.Size = UDim2.new(0, 22, 0, 19)
- onoff.Image = "rbxassetid://3570695787"
- onoff.ImageColor3 = Color3.fromRGB(210, 46, 47)
- onoff.ScaleType = Enum.ScaleType.Slice
- onoff.SliceCenter = Rect.new(100, 100, 100, 100)
- onoff.SliceScale = 0.120
- Click.Name = "Click"
- Click.Parent = onoff
- Click.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Click.BackgroundTransparency = 1.000
- Click.Size = UDim2.new(0, 22, 0, 19)
- Click.Font = Enum.Font.SourceSans
- Click.Text = ""
- Click.TextColor3 = Color3.fromRGB(0, 0, 0)
- Click.TextSize = 14.000
- local script = Instance.new('LocalScript', Click)
- script.Parent.MouseButton1Click:Connect(function()
- local lol = script.Parent.Parent.Parent.Frame
- local color = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
- if lol.ImageColor3 == (color.red.BackgroundColor3) then
- lol.ImageColor3 = (color.green.BackgroundColor3)
- else
- lol.ImageColor3 = (color.red.BackgroundColor3)
- end
- end)
- return CoolLibrary
- end
- return library
- main:CreateButton("lol")
Advertisement
Add Comment
Please, Sign In to add comment