Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Lib = {}
- function Lib:MakeDropdownMenuWButton(Parent, Title,LayoutOrder, Table)
- local Dropdown = Instance.new("Frame",Parent)
- local Button = Instance.new("TextButton",Dropdown)
- local DropdownMenu = Instance.new("ScrollingFrame",Dropdown)
- local UIListLayout = Instance.new("UIListLayout")
- local Arrow = Instance.new("ImageButton")
- local DownSize = UDim2.fromOffset(134,141)
- local UpSize = UDim2.new(0, 134,0, 48)
- local UpImage = ("rbxassetid://")..(67496189)
- local DownImage = ("rbxassetid://")..(53411462)
- Dropdown.Name = "Dropdown"
- Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dropdown.Size = UDim2.new(0, 292, 0, 84)
- Dropdown.LayoutOrder = LayoutOrder
- DropdownMenu.Name = "DropdownMenu"
- DropdownMenu.Parent = Dropdown
- DropdownMenu.Active = true
- DropdownMenu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- DropdownMenu.Position = UDim2.new(0.465201378, 0, 0, 0)
- DropdownMenu.Size = UDim2.new(0, 134,0, 48)
- DropdownMenu.ScrollingEnabled = false
- DropdownMenu.ScrollBarImageTransparency = 1
- Button.Name = Title
- Button.Parent = Dropdown
- Button.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
- Button.Position = UDim2.new(0, 0, 0.119047627, 0)
- Button.Size = UDim2.new(0, 135, 0, 64)
- Button.Font = Enum.Font.SourceSans
- Button.Text = Title
- Button.TextColor3 = Color3.fromRGB(0, 0, 0)
- Button.TextScaled = true
- Button.TextSize = 14.000
- Button.TextWrapped = true
- UIListLayout.Parent = DropdownMenu
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- Arrow.Name = "Arrow"
- Arrow.Parent = Dropdown
- Arrow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Arrow.Position = UDim2.new(0.924105525, 0, 0.119047619, 0)
- Arrow.Size = UDim2.new(0, 22, 0, 43)
- Arrow.Image = UpImage
- local SelectedBox = Instance.new("Frame", Dropdown)
- SelectedBox.Name = "SelectedBox"
- SelectedBox.Size = UDim2.new(0, 145, 0, 48)
- SelectedBox.Position = DropdownMenu.Position
- SelectedBox.Size = UDim2.new(0, 134,0, 48)
- SelectedBox.Visible = true
- local SafeStore = Instance.new("Folder", SelectedBox.Parent)
- DropdownMenu.Visible = false
- Arrow.ZIndex = 3
- Arrow.MouseButton1Click:Connect(function()
- if DropdownMenu.ScrollingEnabled == false then
- DropdownMenu.Size = DownSize
- DropdownMenu.ScrollingEnabled = true
- SelectedBox.Visible = false
- DropdownMenu.Visible = true
- Arrow.Image = DownImage
- elseif DropdownMenu.ScrollingEnabled == true then
- DropdownMenu.Size = UpSize
- DropdownMenu.ScrollingEnabled = false
- Arrow.Image = UpImage
- SelectedBox.Visible = true
- DropdownMenu.Visible = false
- end
- end)
- for i,v in pairs(SelectedBox:GetChildren()) do
- if v:IsA("TextButton") then
- v:Destroy()
- end
- end
- wait(0.1)
- for i,v in pairs(Table) do
- local Place = Instance.new("TextButton")
- Place.Name = v
- Place.Parent = DropdownMenu
- Place.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Place.Size = UDim2.new(0, 145, 0, 48)
- Place.Font = Enum.Font.PatrickHand
- Place.TextColor3 = Color3.fromRGB(255, 255, 255)
- Place.TextScaled = true
- Place.TextSize = 14.000
- Place.TextWrapped = true
- Place.LayoutOrder = i
- Place.Text = v
- if Place.LayoutOrder == 1 then
- local PlaceC = Place:Clone()
- PlaceC.Parent = SelectedBox
- PlaceC.Position = DropdownMenu.Position
- PlaceC.Position = UDim2.fromScale(-0.005,0)
- PlaceC.Active = false
- end
- SelectedBox.Visible = true
- DropdownMenu.Size = UpSize
- DropdownMenu.ScrollingEnabled = false
- Arrow.Image = UpImage
- DropdownMenu.Visible = false
- Place.MouseButton1Click:Connect(function()
- for i,v in pairs(SelectedBox:GetChildren()) do
- if v:IsA("TextButton") then
- v:Destroy()
- end
- end
- wait(0.1)
- local PlaceC = Place:Clone()
- PlaceC.Parent = SelectedBox
- PlaceC.Position = DropdownMenu.Position
- PlaceC.Position = UDim2.fromScale(-0.005,0)
- SelectedBox.Visible = true
- DropdownMenu.Size = UpSize
- DropdownMenu.ScrollingEnabled = false
- Arrow.Image = UpImage
- DropdownMenu.Visible = false
- PlaceC.Active = false
- end)
- end
- return {Dropdown, Button, DropdownMenu}
- end;
- function Lib:Dragify(frame)
- local gui = frame
- local UserInputService = game:GetService("UserInputService")
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end;
- function Lib:MakeBoolFrame(Parent, Text, LayoutOrder)
- local CheckDecal = "http://www.roblox.com/asset/?id=9324353939"
- local UnCheckDecal = "http://www.roblox.com/asset/?id=48138474"
- local Bool = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local ImageButton = Instance.new("ImageButton")
- --Properties:
- local val = Instance.new("BoolValue", Bool)
- val.Name = "Checked"
- val.Value = false
- Bool.Name = "Bool"
- Bool.Parent = Parent
- Bool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Bool.Size = UDim2.new(0, 292, 0, 86)
- Bool.LayoutOrder = LayoutOrder
- TextLabel.Parent = Bool
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Position = UDim2.new(0, 0, 0.209302321, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = Text
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- ImageButton.Parent = Bool
- ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageButton.Position = UDim2.new(0.712328792, 0, 0.116279073, 0)
- ImageButton.Size = UDim2.new(0, 73, 0, 64)
- ImageButton.Image = UnCheckDecal
- ImageButton.MouseButton1Click:Connect(function()
- if val.Value == true then val.Value = false ImageButton.Image = UnCheckDecal elseif val.Value == false then val.Value = true ImageButton.Image = CheckDecal end
- end)
- return Bool
- end;
- function Lib:MakeButtonFrame(Parent, Text, LayoutOrder, IsImage, Image)
- print("Making Frame")
- local Button = nil
- if IsImage then
- Button = Instance.new("ImageButton")
- Button.Image = Image
- else
- Button = Instance.new("TextButton")
- end
- local ButtonFrame = Instance.new("Frame")
- ButtonFrame.Parent = Parent
- ButtonFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ButtonFrame.Size = UDim2.new(0, 292, 0, 86)
- ButtonFrame.LayoutOrder = LayoutOrder
- Button.Parent = ButtonFrame
- Button.Text = Text
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.Position = ButtonFrame.Position
- Button.Size = ButtonFrame.Size
- Button.TextScaled = true
- return Button
- end;
- function Lib:MakeGUI(parent,name,title)
- for i,v in pairs(parent:GetChildren()) do
- if v.Name == name then
- if syn then
- syn.unprotect_gui(v)
- end
- v:Destroy()
- print("extera destroyed")
- end
- end
- local ExploitGui = Instance.new("ScreenGui")
- ExploitGui.Name = name
- ExploitGui.Parent = parent
- ExploitGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- local Frame = Instance.new("Frame")
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.Position = UDim2.new(0.24955909, 0, 0.243103445, 0)
- Frame.Size = UDim2.new(0, 548, 0, 294)
- Frame.Parent = ExploitGui
- if syn then
- syn.protect_gui(ExploitGui)
- end
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Position = UDim2.new(0, 0, -0.170068026, 0)
- TextLabel.Size = UDim2.new(0, 307, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = title
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- return ExploitGui
- end;
- function Lib:MakeMainFrame(Parent)
- local Main = Instance.new("ScrollingFrame")
- Main.Name = "Main"
- Main.Parent = Parent
- Main.Active = true
- Main.ScrollBarImageColor3 = Color3.new(0,0,0)
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.Position = UDim2.new(0.0273722634, 0, 0.0690593496, 0)
- Main.Size = UDim2.new(0, 517, 0, 253)
- local UIListLayout = Instance.new("UIListLayout", Main)
- UIListLayout.FillDirection = Enum.FillDirection.Vertical
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- return Main
- end;
- function Lib:MakeSettings(parent)
- local Frame = parent
- local X = Instance.new("TextButton")
- local Settingsb = Instance.new("ImageButton")
- local SettingsFrame = Instance.new("ScrollingFrame")
- local TextLabel_2 = Instance.new("TextLabel")
- local UIListLayout = Instance.new("UIListLayout", SettingsFrame)
- UIListLayout.FillDirection = Enum.FillDirection.Vertical
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local SettingsX = Instance.new("TextButton")
- X.Name = "X"
- X.Parent = Frame
- X.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- X.Position = UDim2.new(0.916058421, 0, -0.132653058, 0)
- X.Size = UDim2.new(0, 46, 0, 39)
- X.Font = Enum.Font.SourceSans
- X.Text = "X"
- X.TextColor3 = Color3.fromRGB(0, 0, 0)
- X.TextScaled = true
- X.TextSize = 14.000
- X.TextWrapped = true
- Settingsb.Name = "Settingsb"
- Settingsb.Parent = Frame
- Settingsb.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Settingsb.Position = UDim2.new(0.824817538, 0, -0.132653058, 0)
- Settingsb.Size = UDim2.new(0, 50, 0, 39)
- Settingsb.Image = "http://www.roblox.com/asset/?id=2484550853"
- Settingsb.ImageColor3 = Color3.fromRGB(0, 0, 0)
- SettingsFrame.Name = "Settings"
- SettingsFrame.Parent = Frame
- SettingsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SettingsFrame.Size = UDim2.new(0, 548, 0, 294)
- SettingsFrame.Visible = false
- SettingsFrame.ZIndex = 2
- TextLabel_2.Parent = SettingsFrame.Parent
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
- TextLabel_2.ZIndex = 3
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "Settings"
- TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- TextLabel_2.Visible = false
- Settingsb.Visible = true
- SettingsX.Name = "SettingsX"
- SettingsX.Parent = SettingsFrame.Parent
- SettingsX.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SettingsX.Position = UDim2.new(0.899635017, 0, 0, 0)
- SettingsX.Size = UDim2.new(0, 55, 0, 50)
- SettingsX.ZIndex = 3
- SettingsX.Font = Enum.Font.SourceSans
- SettingsX.Text = "X"
- SettingsX.TextColor3 = Color3.fromRGB(0, 0, 0)
- SettingsX.TextScaled = true
- SettingsX.TextSize = 14.000
- SettingsX.TextWrapped = true
- SettingsX.Visible = false
- SettingsFrame.ScrollBarImageColor3 = Color3.new(0,0,0)
- SettingsX.MouseButton1Click:Connect(function()
- SettingsFrame.Visible = false
- SettingsX.Visible = false
- TextLabel_2.Visible = false
- end)
- X.MouseButton1Click:Connect(function()
- parent.Parent.Enabled = false
- end)
- Settingsb.MouseButton1Click:Connect(function()
- SettingsFrame.Visible = true
- SettingsX.Visible = true
- TextLabel_2.Visible = true
- end)
- return SettingsFrame
- end;
- function Lib:ConnectKeyBind(textbox, Key, func)
- local TextBox = textbox
- local KeyConnection = nil
- local UIS = game:GetService("UserInputService")
- local InputKey = nil
- if typeof(Key) == nil then
- InputKey = Enum.KeyCode["E"]
- elseif typeof(Key) == "string" then
- InputKey = Enum.KeyCode[Key]
- TextBox.Text = Key
- elseif typeof(Key) == "EnumItem" then
- InputKey = Key
- TextBox.Text = Key.Name
- else
- error("EnumItem, string, or nil expected ".."Got "..(typeof(Key)))
- end
- local editkeymode = false
- TextBox.Focused:Connect(function()
- KeyConnection = UIS.InputBegan:Connect(function(input,gameProcessedEvent)
- if input.KeyCode.Name == "Unknown" then else
- InputKey = input.KeyCode
- TextBox.Text = input.KeyCode.Name
- TextBox:ReleaseFocus()
- editkeymode = true
- end
- end)
- end)
- TextBox.FocusLost:Connect(function()
- KeyConnection:Disconnect()
- KeyConnection = nil
- print("Disconnect")
- wait(0.1)
- editkeymode = false
- end)
- if typeof(func)==nil then
- error("Function expected got "..(typeof(func)))
- end
- UIS.InputBegan:Connect(function(input,gameProcessedEvent)
- if not editkeymode then
- if input.KeyCode == InputKey and not gameProcessedEvent then
- func()
- end
- end
- end)
- end;
- function Lib:MakeKeyBindFrame(parent, title,LayoutOrder)
- local Bool = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- Bool.Name = "Bool"
- Bool.Parent = parent
- Bool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Bool.Size = UDim2.new(0, 292, 0, 86)
- Bool.LayoutOrder = LayoutOrder
- TextLabel.Parent = Bool
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.Position = UDim2.new(0, 0, 0.209302321, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = title
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- TextBox.Text = "KeyBind here"
- TextBox.Parent = Bool
- TextBox.TextScaled = true
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.Position = UDim2.new(0.712328792, 0, 0.116279073, 0)
- TextBox.Size = UDim2.new(0, 73, 0, 64)
- return TextBox
- end;
- function Lib:FindRemoteEvent(instance, Name)
- for i,v in pairs(instance:GetDescendants())do
- if v.Name == Name then
- return v
- end end
- end;
- function Lib:SendNotif(title, text, delay)
- game.StarterGui:SetCore("SendNotification", {Title = title,Text = text,Duration = delay})
- end;
- return Lib;
Add Comment
Please, Sign In to add comment