Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- local reallybro = game:GetService("CoreGui"):FindFirstChild("Sb2")
- if reallybro then reallybro:Destroy() end
- end
- local Size = 0
- local Sb2 = Instance.new("ScreenGui")
- Sb2.Name = "Sb2"
- Sb2.Parent = game.CoreGui
- Sb2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local busy = false
- local library = {}
- -- only do this once
- function library:CreateInstance(Toggle)-- rgb? or custom color? maybe both idk
- if not Toggle then
- Toggle = "RightShift"
- end
- local MainFrame = Instance.new("Frame")
- local MainFrame = Instance.new("Frame")
- local OpenClose = Instance.new("TextButton")
- local SecondFrame = Instance.new("Frame")
- local Things = Instance.new("Frame")
- local UIGridLayout = Instance.new("UIGridLayout")
- local Decor = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local Ani3 = Instance.new("TextLabel")
- local Decor_2 = Instance.new("TextLabel")
- local Decor_3 = Instance.new("TextLabel")
- local Discord = Instance.new("ImageButton")
- local Decor_4 = Instance.new("Frame")
- local BeginLine = Instance.new("Frame")
- local Ani1 = Instance.new("Frame")
- local Ani2 = Instance.new("Frame")
- local OpeningText = Instance.new("TextButton")
- local ImageLabel_3 = Instance.new("ImageLabel")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = Sb2
- MainFrame.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.453548342, 0,0.33, 0)
- MainFrame.Size = UDim2.new(0, 284, 0, 24)
- Toggled = false
- Input = false
- game:GetService("UserInputService").InputEnded:Connect(function(Value)
- if Value.KeyCode == Enum.KeyCode[Toggle] and not Input then
- Toggled = not Toggled
- if Toggled then
- MainFrame.Visible = false
- else
- MainFrame.Visible = true
- end
- end
- end)
- OpenClose.Name = "Open/Close"
- OpenClose.Parent = MainFrame
- OpenClose.BackgroundColor3 = Color3.new(1, 1, 1)
- OpenClose.BackgroundTransparency = 1
- OpenClose.Position = UDim2.new(0.913662672, 0, 0, 0)
- OpenClose.Size = UDim2.new(0, 24, 0, 24)
- OpenClose.Visible = false
- OpenClose.Font = Enum.Font.GothamSemibold
- OpenClose.Text = "-"
- OpenClose.TextColor3 = Color3.new(1, 1, 1)
- OpenClose.TextScaled = true
- OpenClose.TextSize = 14
- OpenClose.TextWrapped = true
- SecondFrame.Name = "SecondFrame"
- SecondFrame.Parent = MainFrame
- SecondFrame.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
- SecondFrame.BorderSizePixel = 0
- SecondFrame.Position = UDim2.new(0, 0, 1.125, 0)
- SecondFrame.Size = UDim2.new(0, 284, 0, 138) -- (0, 284, 0, 138)
- Things.Name = "Things"
- Things.Parent = SecondFrame
- Things.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Things.BorderColor3 = Color3.new(0.133333, 0.133333, 0.133333)
- Things.BorderSizePixel = 0
- Things.Position = UDim2.new(0.0213319808, 0, 0.0267858095, 0)
- Things.Size = UDim2.new(0, 74, 0, 129)
- UIGridLayout.Parent = Things
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellPadding = UDim2.new(0, 5, 0, 1)
- UIGridLayout.CellSize = UDim2.new(0, 76, 0, 25)
- Decor.Name = "Decor"
- Decor.Parent = SecondFrame
- Decor.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Decor.BackgroundTransparency = 1
- Decor.BorderSizePixel = 0
- Decor.Position = UDim2.new(0.229426429, 0, 0.0267857146, 0)
- Decor.Size = UDim2.new(0, 2, 0, 2)
- Frame.Parent = Decor
- Frame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(11.7290039, 0, 0, 0)
- Frame.Size = UDim2.new(0, 189, 0, 129)
- Frame.Visible = true
- Ani3.Name = "Ani3"
- Ani3.Parent = Decor
- Ani3.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- Ani3.BackgroundTransparency = 1.000
- Ani3.BorderColor3 = Color3.fromRGB(255, 255, 255)
- Ani3.BorderSizePixel = 2
- Ani3.Position = UDim2.new(12, 0, 4, 0)
- Ani3.Size = UDim2.new(0, 187, 0, 45)
- Ani3.Font = Enum.Font.GothamSemibold
- Ani3.Text = "Credits "
- Ani3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Ani3.TextSize = 15.000
- Ani3.TextYAlignment = Enum.TextYAlignment.Top
- Decor_2.Name = "Decor"
- Decor_2.Parent = Ani3
- Decor_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Decor_2.BackgroundTransparency = 1.000
- Decor_2.Position = UDim2.new(-0.00260728598, 0, 2.05, 0)
- Decor_2.Size = UDim2.new(0, 189, 0, 36)
- Decor_2.Font = Enum.Font.GothamSemibold
- Decor_2.Text = "Welcome " .. game:GetService("Players").LocalPlayer.Name
- Decor_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Decor_2.TextSize = 14.000
- Decor_3.Name = "Decor"
- Decor_3.Parent = Ani3
- Decor_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Decor_3.BackgroundTransparency = 1.000
- Decor_3.Position = UDim2.new(-0.00186234526, 0, 0.539682567, 0)
- Decor_3.Size = UDim2.new(0, 189, 0, 19)
- Decor_3.Font = Enum.Font.GothamSemibold
- Decor_3.Text = "Mezr | Sten "
- Decor_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Decor_3.TextSize = 14.000
- Discord.Name = "Discord"
- Discord.Parent = Ani3
- Discord.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Discord.BackgroundTransparency = 1.000
- Discord.Position = UDim2.new(0.391718507, 0, 1.2507937, 0)
- Discord.Size = UDim2.new(0, 43, 0, 43)
- Discord.Image = "http://www.roblox.com/asset/?id=4425657471"
- Decor_4.Name = "Decor"
- Decor_4.Parent = Ani3
- Decor_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Decor_4.BorderSizePixel = 0
- Decor_4.Position = UDim2.new(0.328932345, 0, 0.466666669, 0)
- Decor_4.Size = UDim2.new(0, 61, 0, 1)
- BeginLine.Name = "BeginLine"
- BeginLine.Parent = MainFrame
- BeginLine.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- BeginLine.BorderSizePixel = 0
- BeginLine.Position = UDim2.new(1.94379481e-07, 0, 1, 0)
- BeginLine.Size = UDim2.new(0, 284, 0, 3)
- Ani1.Name = "Ani1"
- Ani1.Parent = MainFrame
- Ani1.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
- Ani1.BorderSizePixel = 0
- Ani1.Position = UDim2.new(0.287424237, 0, 1.24367523, 0)
- Ani1.Size = UDim2.new(0, 202, 0, 135)
- Ani2.Name = "Ani2"
- Ani2.Parent = MainFrame
- Ani2.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.180392)
- Ani2.BorderSizePixel = 0
- Ani2.Position = UDim2.new(0.0184837673, 0, 1.125, 0)
- Ani2.Size = UDim2.new(0, 83, 0, 137)
- OpeningText.Name = "OpeningText"
- OpeningText.Parent = MainFrame
- OpeningText.BackgroundColor3 = Color3.new(1, 1, 1)
- OpeningText.BackgroundTransparency = 1
- OpeningText.Position = UDim2.new(0.021, 0, -0.5, 0)
- OpeningText.Size = UDim2.new(0, 116, 0, 50)
- OpeningText.Font = Enum.Font.GothamSemibold
- OpeningText.TextXAlignment = Enum.TextXAlignment.Left
- OpeningText.Text = ""
- OpeningText.TextColor3 = Color3.new(1, 1, 1)
- OpeningText.TextSize = 20
- ImageLabel_3.Parent = MainFrame
- ImageLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel_3.BackgroundTransparency = 1.000
- ImageLabel_3.Position = UDim2.new(0.324000001, 0, 1.875, 0)
- ImageLabel_3.Size = UDim2.new(0, 100, 0, 100)
- ImageLabel_3.Image = "http://www.roblox.com/asset/?id=4425657471"
- OpeningText.MouseButton1Click:connect(function()
- if Busy == false and Ani3.Visible == false then
- Frame1 = game:GetService("CoreGui"):FindFirstChild("Sb2"):FindFirstChild("MainFrame"):FindFirstChild("SecondFrame"):FindFirstChild("Decor"):FindFirstChild("Frame")
- for i,v in pairs(game:GetService("CoreGui"):FindFirstChild("Sb2"):FindFirstChild("MainFrame"):FindFirstChild("SecondFrame"):FindFirstChild("Decor"):GetChildren())do
- if not v.Name == "Frame" or "Ani3" then
- v.Visible = false
- end
- end
- Frame1.Visible = true
- Busy = true
- Frame1:TweenSize(UDim2.new(0, 0, 0, 129), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- wait(0.3)
- Frame1:TweenSize(UDim2.new(0, 189, 0, 129), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- wait(0.3)
- Ani3.Visible = true
- Busy = false
- end
- end)
- spawn(function()
- if _G.CustomColors == true then
- color1 = _G.ColorBackGround
- color2 = _G.ColorBorder
- color3 = _G.ColorText
- for a,b in pairs(Sb2:GetDescendants()) do
- if b:IsA("Frame") or b:IsA("TextButton") or b:IsA("ScrollingFrame") or b:IsA("TextBox") then
- b.BackgroundColor3 = color2
- end
- if b:IsA("Frame") or b:IsA("TextButton") or b:IsA("ScrollingFrame") or b:IsA("TextLabel") or b:IsA("TextBox") then
- b.BorderColor3 = color1
- end
- if b:IsA("TextButton") or b:IsA("TextLabel") or b:IsA("TextBox") then
- b.TextColor3 = color3
- end
- if b.Name == "Frame" or b.Name == "AutoFarm" or b.Name == "Misc" or b.Name == "Settings" or b.Name == "Teleports" or b.Name == "Tools" or b.Name == "Things" or b.Name == "MobsTeleport" or b.Name == "MobsAutoFarm" or b.Name == "BeginLine" then
- b.BackgroundColor3 = color1
- end
- end
- end
- end)
- Animation = true
- spawn(function()
- if Animation == true then
- OpeningText.Text = "|"
- wait(0.4)
- OpeningText.Text = ""
- wait(0.4)
- OpeningText.Text = "|"
- wait(0.4)
- OpeningText.Text = ""
- wait(0.4)
- sound = Instance.new("Sound", workspace)
- sound.SoundId = "rbxassetid://163233363"
- sound:Play()
- OpeningText.Text = "D|"
- wait(0.1)
- OpeningText.Text = "Di|"
- wait(0.1)
- OpeningText.Text = "Dir|"
- wait(0.1)
- OpeningText.Text = "Dirt|"
- wait(0.1)
- OpeningText.Text = "Dirt |"
- wait(0.1)
- OpeningText.Text = "Dirt H|"
- wait(0.1)
- OpeningText.Text = "Dirt Hu|"
- wait(0.3)
- OpeningText.Text = "Dirt Hub"
- sound:Stop()
- wait(2)
- ImageLabel_3.ImageTransparency = 0
- wait()
- ImageLabel_3.ImageTransparency = 0.20
- wait()
- ImageLabel_3.ImageTransparency = 0.40
- wait()
- ImageLabel_3.ImageTransparency = 0.60
- wait()
- ImageLabel_3.ImageTransparency = 0.80
- wait()
- ImageLabel_3.ImageTransparency = 1
- wait(.5)
- Ani1:TweenSize(UDim2.new(0, 0, 0, 135), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.6,true)
- wait(0.6)
- Ani1.Visible = false
- Ani2:TweenSize(UDim2.new(0, 76, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- wait(0.3)
- Ani2.Visible = false
- OpenClose.Visible = true
- else
- OpenClose.Visible = true
- OpeningText:Destroy()
- Ani1:Destroy()
- Ani2:Destroy()
- end
- end)
- Open = true
- function Ani()
- if Ani3.Visible == true then
- Ani3.Visible = false
- end
- end
- OpenClose.MouseButton1Click:connect(function()
- if Open == true and Busy == false then
- Busy = true
- SecondFrame:TweenSize(UDim2.new(0, 284, 0, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- for i,v in pairs(SecondFrame:GetChildren()) do
- if v.Visible == true then
- v.Visible = false
- end
- end
- OpenClose.Text = "+"
- wait(0.3)
- Open = false
- Busy = false
- elseif Open == false and Busy == false then
- Busy = true
- SecondFrame:TweenSize(UDim2.new(0, 284, 0, 138), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- OpenClose.Text = "-"
- wait(0.3)
- Open = true
- Busy = false
- for i,v in pairs(SecondFrame:GetChildren()) do
- if v.Visible == false then
- v.Visible = true
- end
- end
- end
- end)
- Busy = false
- spawn(function()
- function AssignDraggable(Button)
- local dragging = false
- local dragStart = 0
- local startPos = 0
- local dragInput
- local function update(input)
- local delta = input.Position - dragStart
- Button:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y),'Out','Linear',0.08,true)
- end
- Button.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = Button.Position
- repeat wait() until input.UserInputState == Enum.UserInputState.End
- dragging = false
- end
- end)
- Button.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- AssignDraggable(MainFrame)
- end)
- local GamerLibrary = {}
- function GamerLibrary:CreateTab(name)
- local MiscB = Instance.new("TextButton")
- local Misc = Instance.new("ScrollingFrame")
- local FrameTitle = Instance.new("TextLabel")
- local FrameLine = Instance.new("Frame")
- local Scrol = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- MiscB.Name = "MiscB"
- MiscB.Parent = Things
- MiscB.BackgroundColor3 = Color3.new(1, 1, 1)
- MiscB.BackgroundTransparency = 1
- MiscB.Position = UDim2.new(0, 0, 0.2578125, 0)
- MiscB.Size = UDim2.new(0, 76, 0, 22)
- MiscB.Font = Enum.Font.GothamSemibold
- MiscB.Text = name
- MiscB.TextColor3 = Color3.new(1, 1, 1) -- tween the positon of the opening text to the top
- MiscB.TextSize = 13
- Misc.Name = "Misc"
- Misc.Parent = Decor
- Misc.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- Misc.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Misc.BorderSizePixel = 0
- Misc.Position = UDim2.new(11.5, 0, 3.05175781e-05, 0)
- Misc.Size = UDim2.new(0, 189, 0, 128)
- Misc.CanvasSize = UDim2.new(0, 0, 0, 0)
- Misc.ScrollBarThickness = 5
- Misc.Visible = false
- FrameTitle.Name = "FrameTitle"
- FrameTitle.Parent = Misc
- FrameTitle.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- FrameTitle.BackgroundTransparency = 1.000
- FrameTitle.BorderColor3 = Color3.fromRGB(65, 65, 65)
- FrameTitle.Position = UDim2.new(0.0480001196, 0, -0.00534929615, 0)
- FrameTitle.Size = UDim2.new(0, 179, 0, 25)
- FrameTitle.Font = Enum.Font.GothamSemibold
- FrameTitle.Text = name
- FrameTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- FrameTitle.TextSize = 14.000
- FrameTitle.TextXAlignment = Enum.TextXAlignment.Left
- FrameLine.Name = "FrameLine"
- FrameLine.Parent = FrameTitle
- FrameLine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- FrameLine.BackgroundTransparency = 0.600
- FrameLine.BorderSizePixel = 0
- FrameLine.LayoutOrder = 1
- FrameLine.Position = UDim2.new(-0.0103159808, 0, 0.992666602, 0)
- FrameLine.Size = UDim2.new(0, 1, 0, 97)
- Scrol.Name = "Scrol"
- Scrol.Parent = FrameTitle
- Scrol.Active = true
- Scrol.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Scrol.BackgroundTransparency = 1.000
- Scrol.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Scrol.BorderSizePixel = 0
- Scrol.LayoutOrder = 2
- Scrol.Position = UDim2.new(0, 0, 0.971000969, 0)
- Scrol.Size = UDim2.new(0, 179, 0, 97)
- Scrol.CanvasSize = UDim2.new(0, 165, 0, 0)
- Scrol.ScrollBarThickness = 3
- Scrol.BottomImage = ""
- Scrol.TopImage = ""
- Scrol.MidImage = ""
- Scrol.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
- spawn(function()
- while wait() do
- Scrol.CanvasSize = UDim2.new(0, 165, 0, Size)
- end
- end)
- UIListLayout.Parent = Scrol
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- MiscB.MouseButton1Click:connect(function()
- if Busy == false and Misc.Visible == false then
- Ani()
- Frame1 = game:GetService("CoreGui"):FindFirstChild("Sb2"):FindFirstChild("MainFrame"):FindFirstChild("SecondFrame"):FindFirstChild("Decor"):FindFirstChild("Frame")
- for i,v in pairs(game:GetService("CoreGui"):FindFirstChild("Sb2"):FindFirstChild("MainFrame"):FindFirstChild("SecondFrame"):FindFirstChild("Decor"):GetChildren())do
- if not v.Name == "Frame" or "Ani3" then
- v.Visible = false
- end
- end
- Frame1.Visible = true
- Busy = true
- Frame1:TweenSize(UDim2.new(0, 0, 0, 129), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- wait(0.3)
- Frame1:TweenSize(UDim2.new(0, 189, 0, 129), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 0.3,true)
- wait(0.3)
- Frame1.Visible = false
- Misc.Visible = true
- Busy = false
- end
- end)
- local GayLibrary = {}
- function GayLibrary:CreateButton(name,callback)
- local Button = Instance.new("TextButton")
- local Line_2 = Instance.new("Frame")
- Button.Name = "Button"
- Button.Name = "Button"
- Button.Parent = Scrol
- Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- Button.BackgroundTransparency = 1.000
- Button.Position = UDim2.new(0, 0, 0.257731944, 0)
- Button.Size = UDim2.new(0, 177, 0, 21)
- Button.Font = Enum.Font.GothamSemibold
- Button.Text = name
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 14.000
- Button.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextWrapped = true
- Size = Size + 23
- Line_2.Name = "Line"
- Line_2.Parent = Button
- Line_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Line_2.BorderSizePixel = 0
- Line_2.Position = UDim2.new(0.0281941034, 0, 0.937779009, 0)
- Line_2.Size = UDim2.new(0, 172, 0, 1)
- Button.MouseButton1Click:Connect(function()
- callback()
- end)
- end
- function GayLibrary:CreateToggle(name,callback)
- local ToggleTitle = Instance.new("TextLabel")
- local ToggleButton = Instance.new("TextButton")
- local Line = Instance.new("Frame")
- ToggleTitle.Name = "ToggleTitle"
- ToggleTitle.Parent = Scrol
- ToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleTitle.BackgroundTransparency = 1.000
- ToggleTitle.Position = UDim2.new(-0.00558659201, 0, 0.030927835, 0)
- ToggleTitle.Size = UDim2.new(0, 178, 0, 25)
- ToggleTitle.Font = Enum.Font.GothamSemibold
- ToggleTitle.Text = " " .. name
- ToggleTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleTitle.TextSize = 14.000
- ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
- Size = Size + 25
- ToggleButton.Name = "ToggleButton"
- ToggleButton.Parent = ToggleTitle
- ToggleButton.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- ToggleButton.BackgroundTransparency = 1.000
- ToggleButton.Position = UDim2.new(0.793754101, 0, 0.0266662594, 0)
- ToggleButton.Size = UDim2.new(0, 36, 0, 25)
- ToggleButton.Font = Enum.Font.GothamSemibold
- ToggleButton.Text = "Off"
- ToggleButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- ToggleButton.TextSize = 15.000
- ToggleButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- ToggleButton.TextWrapped = true
- Line.Name = "Line"
- Line.Parent = ToggleTitle
- Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Line.BorderSizePixel = 0
- Line.Position = UDim2.new(0.0281941276, 0, 0.937778294, 0)
- Line.Size = UDim2.new(0, 172, 0, 1)
- ToggleButton.MouseButton1Click:Connect(function()
- if ToggleButton.Text == "Off" then
- ToggleButton.Text = "On"
- ToggleButton.TextColor3 = Color3.fromRGB(0,255,0)
- callback(true)
- elseif ToggleButton.Text == "On" then
- ToggleButton.Text = "Off"
- ToggleButton.TextColor3 = Color3.fromRGB(255,0,0)
- callback(false)
- end
- end)
- end
- function GayLibrary:CreateKeybind(name,defkey,callback)
- local KeybindTitle = Instance.new("TextLabel")
- local Line_4 = Instance.new("Frame")
- local KeybindButton = Instance.new("TextButton")
- Size = Size + 25
- KeybindTitle.Name = "KeybindTitle"
- KeybindTitle.Parent = Scrol
- KeybindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- KeybindTitle.BackgroundTransparency = 1.000
- KeybindTitle.Position = UDim2.new(0, 0, 0.835051537, 0)
- KeybindTitle.Size = UDim2.new(0, 178, 0, 25)
- KeybindTitle.Font = Enum.Font.GothamSemibold
- KeybindTitle.Text = " " .. name
- KeybindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindTitle.TextSize = 14.000
- KeybindTitle.TextXAlignment = Enum.TextXAlignment.Left
- Line_4.Name = "Line"
- Line_4.Parent = KeybindTitle
- Line_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Line_4.BorderSizePixel = 0
- Line_4.Position = UDim2.new(0.0281941276, 0, 0.937778294, 0)
- Line_4.Size = UDim2.new(0, 170, 0, 1)
- KeybindButton.Name = "KeybindButton"
- KeybindButton.Parent = KeybindTitle
- KeybindButton.BackgroundColor3 = Color3.fromRGB(11, 11, 11)
- KeybindButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- KeybindButton.Position = UDim2.new(0.793753982, 0, 0.200000003, 0)
- KeybindButton.Size = UDim2.new(0, 34, 0, 16)
- KeybindButton.Font = Enum.Font.GothamBold
- KeybindButton.Text = "K"
- KeybindButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindButton.TextSize = 12.000
- KeybindButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- KeybindButton.TextWrapped = true
- local enabled = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- KeybindButton.MouseButton1Click:connect(function()
- KeybindButton.Text = "..."
- enabled = true
- mouse.KeyDown:Connect(function(key1)
- if enabled == true then
- KeybindButton.Text = string.upper(key1)
- enabled = false
- end
- end)
- end)
- local enabled2 = false
- mouse.KeyDown:Connect(function(key223)
- enabled2 = true
- if enabled == false and enabled2 == true then
- if key223 == string.lower(KeybindButton.Text) then
- callback()
- end
- end
- end) end
- function GayLibrary:CreateSlider(Name,Min,Max,CallBack)
- local SliderContainer = Instance.new("Frame")
- local SliderTitle = Instance.new("TextLabel")
- local ImageLabel = Instance.new("ImageLabel")
- local SliderValue = Instance.new("TextLabel")
- local ImageButtonSpecial = Instance.new("ImageButton")
- local ImageLabel_2 = Instance.new("ImageLabel")
- local Line_3 = Instance.new("Frame")
- Size = Size + 38
- SliderContainer.Name = "SliderContainer"
- SliderContainer.Parent = Scrol
- SliderContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SliderContainer.BackgroundTransparency = 1.000
- SliderContainer.BorderSizePixel = 0
- SliderContainer.Position = UDim2.new(0, 0, 0.515464544, 0)
- SliderContainer.Size = UDim2.new(0, 172, 0, 35)
- SliderTitle.Name = "SliderTitle"
- SliderTitle.Parent = SliderContainer
- SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SliderTitle.BackgroundTransparency = 1.000
- SliderTitle.Position = UDim2.new(0.0391061455, 0, 0.091428563, 0)
- SliderTitle.Size = UDim2.new(0, 61, 0, 16)
- SliderTitle.Font = Enum.Font.GothamSemibold
- SliderTitle.Text = " " .. Name
- SliderTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- SliderTitle.TextSize = 14.000
- SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
- ImageLabel.Parent = SliderTitle
- ImageLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ImageLabel.BackgroundTransparency = 1.000
- ImageLabel.BorderSizePixel = 0
- ImageLabel.Position = UDim2.new(2.227458, 0, 0, 0)
- ImageLabel.Size = UDim2.new(0.494619429, 0, 1, 0)
- ImageLabel.Image = "rbxassetid://3570695787"
- ImageLabel.ImageColor3 = Color3.fromRGB(13, 13, 13)
- ImageLabel.ScaleType = Enum.ScaleType.Slice
- ImageLabel.SliceCenter = Rect.new(100, 100, 100, 100)
- ImageLabel.SliceScale = 0.040
- SliderValue.Name = "SliderValue"
- SliderValue.Parent = ImageLabel
- SliderValue.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- SliderValue.BackgroundTransparency = 1.000
- SliderValue.BorderColor3 = Color3.fromRGB(255, 255, 255)
- SliderValue.BorderSizePixel = 0
- SliderValue.Position = UDim2.new(-6.70552254e-08, 0, 0.125, 0)
- SliderValue.Size = UDim2.new(0, 30, 0, 11)
- SliderValue.Font = Enum.Font.GothamSemibold
- SliderValue.Text = Min
- SliderValue.TextColor3 = Color3.fromRGB(255, 255, 255)
- SliderValue.TextSize = 13.000
- SliderValue.TextWrapped = true
- ImageButtonSpecial.Parent = SliderContainer
- ImageButtonSpecial.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageButtonSpecial.BackgroundTransparency = 1.000
- ImageButtonSpecial.BorderSizePixel = 0
- ImageButtonSpecial.ClipsDescendants = true
- ImageButtonSpecial.Position = UDim2.new(0.0223463196, 0, 0.634286046, 0)
- ImageButtonSpecial.Size = UDim2.new(0.994839668, 0, 0.180000022, 0)
- ImageButtonSpecial.AutoButtonColor = false
- ImageButtonSpecial.Image = "rbxassetid://3570695787"
- ImageButtonSpecial.ImageColor3 = Color3.fromRGB(26, 26, 26)
- ImageButtonSpecial.ScaleType = Enum.ScaleType.Slice
- ImageButtonSpecial.SliceCenter = Rect.new(100, 100, 100, 100)
- ImageButtonSpecial.SliceScale = 0.040
- ImageLabel_2.Parent = ImageButtonSpecial
- ImageLabel_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ImageLabel_2.BorderSizePixel = 0
- ImageLabel_2.Position = UDim2.new(-0.00116661191, 0, 0, 0)
- ImageLabel_2.Size = UDim2.new(0, 0, 0.349999994, 5)
- ImageLabel_2.Image = "rbxassetid://3570695787"
- ImageLabel_2.ScaleType = Enum.ScaleType.Slice
- ImageLabel_2.SliceCenter = Rect.new(100, 100, 100, 100)
- ImageLabel_2.SliceScale = 0.040
- Line_3.Name = "Line"
- Line_3.Parent = SliderContainer
- Line_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Line_3.BorderSizePixel = 0
- Line_3.Position = UDim2.new(0.0229999628, 0, 1, 0)
- Line_3.Size = UDim2.new(0, 171, 0, 1)
- local mouse = game.Players.LocalPlayer:GetMouse()
- local uis = game:GetService("UserInputService")
- local Value
- ImageButtonSpecial.MouseButton1Down:Connect(function()
- ImageLabel_2.Size = UDim2.new(0, math.clamp(mouse.X - ImageLabel_2.AbsolutePosition.X, 0, 170), 0, 5)
- Value = math.floor((((tonumber(Max) - tonumber(Min)) / 170) * ImageLabel_2.AbsoluteSize.X) + tonumber(Min))
- CallBack(Value)
- SliderValue.Text = tostring(Value)
- move = mouse.Move:Connect(function()
- Value = math.floor((((tonumber(Max) - tonumber(Min)) / 170) * ImageLabel_2.AbsoluteSize.X) + tonumber(Min))
- CallBack(Value)
- SliderValue.Text = tostring(Value)
- ImageLabel_2.Size = UDim2.new(0, math.clamp(mouse.X - ImageLabel_2.AbsolutePosition.X, 0, 170), 0, 5)
- end)
- kill = uis.InputEnded:Connect(function(Mouse)
- if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
- Value = math.floor((((tonumber(Max) - tonumber(Min)) / 170) * ImageLabel_2.AbsoluteSize.X) + tonumber(Min))
- CallBack(Value)
- move:Disconnect()
- kill:Disconnect()
- end
- end)
- end)
- end
- return GayLibrary;
- end
- return GamerLibrary;
- end
- return library;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement