Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- local DiscordLib = {}
- local UserInputService = cloneref(game:GetService("UserInputService"))
- local TweenService = cloneref(game:GetService("TweenService"))
- local RunService = cloneref(game:GetService("RunService"))
- local LocalPlayer = cloneref(game:GetService("Players")).LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- local HttpService = cloneref(game:GetService("HttpService"))
- local pfp
- local user
- local tag
- local userinfo = {}
- pcall(function()
- userinfo = HttpService:JSONDecode(readfile("discordlibinfo.txt"));
- end)
- pfp = userinfo["pfp"] or "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=420&height=420&format=png"
- user = userinfo["user"] or game.Players.LocalPlayer.Name
- tag = userinfo["tag"] or tostring(math.random(1000,9999))
- local function SaveInfo()
- userinfo["pfp"] = pfp
- userinfo["user"] = user
- userinfo["tag"] = tag
- writefile("discordlibinfo.txt", HttpService:JSONEncode(userinfo));
- end
- local function MakeDraggable(topbarobject, object)
- local Dragging = nil
- local DragInput = nil
- local DragStart = nil
- local StartPosition = nil
- local function Update(input)
- local Delta = input.Position - DragStart
- local pos =
- UDim2.new(
- StartPosition.X.Scale,
- StartPosition.X.Offset + Delta.X,
- StartPosition.Y.Scale,
- StartPosition.Y.Offset + Delta.Y
- )
- object.Position = pos
- end
- topbarobject.InputBegan:Connect(
- function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- Dragging = true
- DragStart = input.Position
- StartPosition = object.Position
- input.Changed:Connect(
- function()
- if input.UserInputState == Enum.UserInputState.End then
- Dragging = false
- end
- end
- )
- end
- end
- )
- topbarobject.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
- local Discord = Instance.new("ScreenGui")
- Discord.Name = "WyvernMenuGui"
- Discord.Parent = cloneref(game:GetService("CoreGui"))
- Discord.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Discord.DisplayOrder = 9999999999
- DiscordLib.Window = function(self, text)
- local currentservertoggled = ""
- local minimized = false
- local fs = false
- local settingsopened = false
- local MainFrame = Instance.new("ImageLabel")
- local BBBB = Instance.new("Frame")
- local TopFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local CloseBtn = Instance.new("TextButton")
- local CloseIcon = Instance.new("ImageLabel")
- local MinimizeBtn = Instance.new("TextButton")
- local MinimizeIcon = Instance.new("ImageLabel")
- local ServersHolder = Instance.new("Folder")
- local Userpad = Instance.new("Frame")
- local UserIcon = Instance.new("Frame")
- local UserIconCorner = Instance.new("UICorner")
- local UserImage = Instance.new("ImageLabel")
- local UserCircleImage = Instance.new("ImageLabel")
- local UserName = Instance.new("TextLabel")
- local UserTag = Instance.new("TextLabel")
- local ServersHoldFrame = Instance.new("Frame")
- local ServersHold = Instance.new("ScrollingFrame")
- local ServersHoldLayout = Instance.new("UIListLayout")
- local ServersHoldPadding = Instance.new("UIPadding")
- local TopFrameHolder = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = Discord
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
- MainFrame.BorderSizePixel = 0
- MainFrame.BackgroundTransparency = 0
- MainFrame.Image = "http://www.roblox.com/asset/?id=18108227397"
- MainFrame.ClipsDescendants = true
- MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- MainFrame.Size = UDim2.new(0, 681, 0, 396)
- BBBB.Name = "MainFrameBB"
- BBBB.Parent = MainFrame
- BBBB.AnchorPoint = Vector2.new(0.5, 0.5)
- BBBB.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
- BBBB.BorderSizePixel = 0
- BBBB.BackgroundTransparency = 0.6
- BBBB.ClipsDescendants = true
- BBBB.Position = UDim2.new(0.5, 0, 0.5, 0)
- BBBB.Size = UDim2.new(0, 681, 0, 396)
- TopFrame.Name = "TopFrame"
- TopFrame.Parent = MainFrame
- TopFrame.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
- TopFrame.BackgroundTransparency = 1
- TopFrame.BorderSizePixel = 0
- TopFrame.Position = UDim2.new(-0.000658480625, 0, 0, 0)
- TopFrame.Size = UDim2.new(0, 681, 0, 22)
- TopFrameHolder.Name = "TopFrameHolder"
- TopFrameHolder.Parent = TopFrame
- TopFrameHolder.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
- TopFrameHolder.BackgroundTransparency = 1
- TopFrameHolder.BorderSizePixel = 0
- TopFrameHolder.Position = UDim2.new(-0.000658480625, 0, 0, 0)
- TopFrameHolder.Size = UDim2.new(0, 681, 0, 22)
- Title.Name = "Title"
- Title.Parent = TopFrame
- Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Title.BackgroundTransparency = 0.6
- Title.Position = UDim2.new(0, 1, 0, 0)
- Title.Size = UDim2.new(0, 700, 0, 20)
- Title.Font = Enum.Font.ArimoBold
- Title.Text = text
- Title.TextColor3 = Color3.fromRGB(0, 0, 0)
- Title.TextSize = 25
- Title.TextXAlignment = Enum.TextXAlignment.Left
- CloseBtn.Name = "CloseBtn"
- CloseBtn.Parent = TopFrame
- CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
- CloseBtn.BackgroundTransparency = 1
- CloseBtn.Position = UDim2.new(0.959063113, 0, -0.0169996787, 0)
- CloseBtn.Size = UDim2.new(0, 28, 0, 22)
- CloseBtn.Font = Enum.Font.Gotham
- CloseBtn.Text = ""
- CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseBtn.TextSize = 14
- CloseBtn.BorderSizePixel = 0
- CloseBtn.AutoButtonColor = false
- CloseIcon.Name = "CloseIcon"
- CloseIcon.Parent = CloseBtn
- CloseIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CloseIcon.BackgroundTransparency = 1
- CloseIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
- CloseIcon.Size = UDim2.new(0, 17, 0, 17)
- CloseIcon.Image = "http://www.roblox.com/asset/?id=18110757343"
- CloseIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
- MinimizeBtn.Name = "MinimizeButton"
- MinimizeBtn.Parent = TopFrame
- MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
- MinimizeBtn.BackgroundTransparency = 1
- MinimizeBtn.Position = UDim2.new(0.917947114, 0, -0.0169996787, 0)
- MinimizeBtn.Size = UDim2.new(0, 28, 0, 22)
- MinimizeBtn.Font = Enum.Font.Gotham
- MinimizeBtn.Text = ""
- MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- MinimizeBtn.TextSize = 14
- MinimizeBtn.BorderSizePixel = 0
- MinimizeBtn.AutoButtonColor = false
- MinimizeIcon.Name = "MinimizeLabel"
- MinimizeIcon.Parent = MinimizeBtn
- MinimizeIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MinimizeIcon.BackgroundTransparency = 1
- MinimizeIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
- MinimizeIcon.Size = UDim2.new(0, 17, 0, 17)
- MinimizeIcon.Image = "http://www.roblox.com/asset/?id=18110714885"
- MinimizeIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
- ServersHolder.Name = "ServersHolder"
- ServersHolder.Parent = TopFrameHolder
- ServersHoldFrame.Name = "ServersHoldFrame"
- ServersHoldFrame.Parent = MainFrame
- ServersHoldFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ServersHoldFrame.BackgroundTransparency = 1
- ServersHoldFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
- ServersHoldFrame.Size = UDim2.new(0, 71, 0, 396)
- ServersHold.Name = "ServersHold"
- ServersHold.Parent = ServersHoldFrame
- ServersHold.Active = true
- ServersHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ServersHold.BackgroundTransparency = 1
- ServersHold.BorderSizePixel = 0
- ServersHold.Position = UDim2.new(-0.000359333731, 0, 0.0580808073, 0)
- ServersHold.Size = UDim2.new(0, 71, 0, 373)
- ServersHold.ScrollBarThickness = 1
- ServersHold.ScrollBarImageTransparency = 1
- ServersHold.CanvasSize = UDim2.new(0, 0, 0, 0)
- ServersHoldLayout.Name = "ServersHoldLayout"
- ServersHoldLayout.Parent = ServersHold
- ServersHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
- ServersHoldLayout.Padding = UDim.new(0, 7)
- ServersHoldPadding.Name = "ServersHoldPadding"
- ServersHoldPadding.Parent = ServersHold
- CloseBtn.MouseButton1Click:Connect(
- function()
- MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.3, true)
- end
- )
- CloseBtn.MouseEnter:Connect(
- function()
- CloseBtn.BackgroundColor3 = Color3.fromRGB(240, 71, 71)
- end
- )
- CloseBtn.MouseLeave:Connect(
- function()
- CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
- end
- )
- MinimizeBtn.MouseEnter:Connect(
- function()
- MinimizeBtn.BackgroundColor3 = Color3.fromRGB(40, 43, 46)
- end
- )
- MinimizeBtn.MouseLeave:Connect(
- function()
- MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
- end
- )
- MinimizeBtn.MouseButton1Click:Connect(
- function()
- if (minimized == false) then
- MainFrame:TweenSize(
- UDim2.new(0, 681, 0, 22),
- Enum.EasingDirection.Out,
- Enum.EasingStyle.Quart,
- 0.3,
- true
- )
- else
- MainFrame:TweenSize(
- UDim2.new(0, 681, 0, 396),
- Enum.EasingDirection.Out,
- Enum.EasingStyle.Quart,
- 0.3,
- true
- )
- end
- minimized = not minimized
- end
- )
- local SettingsOpenBtn = Instance.new("TextButton")
- local SettingsOpenBtnIco = Instance.new("ImageLabel")
- SettingsOpenBtn.Name = "SettingsOpenBtn"
- SettingsOpenBtn.Parent = Userpad
- SettingsOpenBtn.BackgroundColor3 = Color3.fromRGB(53, 56, 62)
- SettingsOpenBtn.BackgroundTransparency = 1.000
- SettingsOpenBtn.Position = UDim2.new(0.849161983, 0, 0.279069781, 0)
- SettingsOpenBtn.Size = UDim2.new(0, 18, 0, 18)
- SettingsOpenBtn.Font = Enum.Font.SourceSans
- SettingsOpenBtn.Text = ""
- SettingsOpenBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- SettingsOpenBtn.TextSize = 14.000
- SettingsOpenBtnIco.Name = "SettingsOpenBtnIco"
- SettingsOpenBtnIco.Parent = SettingsOpenBtn
- SettingsOpenBtnIco.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
- SettingsOpenBtnIco.BackgroundTransparency = 1.000
- SettingsOpenBtnIco.Size = UDim2.new(0, 18, 0, 18)
- SettingsOpenBtnIco.Image = "http://www.roblox.com/asset/?id=6031280882"
- SettingsOpenBtnIco.ImageColor3 = Color3.fromRGB(220, 220, 220)
- local SettingsFrame = Instance.new("Frame")
- local Settings = Instance.new("Frame")
- local SettingsHolder = Instance.new("Frame")
- local CloseSettingsBtn = Instance.new("TextButton")
- local CloseSettingsBtnCorner = Instance.new("UICorner")
- local CloseSettingsBtnCircle = Instance.new("Frame")
- local CloseSettingsBtnCircleCorner = Instance.new("UICorner")
- local CloseSettingsBtnIcon = Instance.new("ImageLabel")
- local TextLabel = Instance.new("TextLabel")
- local UserPanel = Instance.new("Frame")
- local UserSettingsPad = Instance.new("Frame")
- local UserSettingsPadCorner = Instance.new("UICorner")
- local UsernameText = Instance.new("TextLabel")
- local UserSettingsPadUserTag = Instance.new("Frame")
- local UserSettingsPadUser = Instance.new("TextLabel")
- local UserSettingsPadUserTagLayout = Instance.new("UIListLayout")
- local UserSettingsPadTag = Instance.new("TextLabel")
- local EditBtn = Instance.new("TextButton")
- local EditBtnCorner = Instance.new("UICorner")
- local UserPanelUserIcon = Instance.new("TextButton")
- local UserPanelUserImage = Instance.new("ImageLabel")
- local UserPanelUserCircle = Instance.new("ImageLabel")
- local BlackFrame = Instance.new("Frame")
- local BlackFrameCorner = Instance.new("UICorner")
- local ChangeAvatarText = Instance.new("TextLabel")
- local SearchIcoFrame = Instance.new("Frame")
- local SearchIcoFrameCorner = Instance.new("UICorner")
- local SearchIco = Instance.new("ImageLabel")
- local UserPanelUserTag = Instance.new("Frame")
- local UserPanelUser = Instance.new("TextLabel")
- local UserPanelUserTagLayout = Instance.new("UIListLayout")
- local UserPanelTag = Instance.new("TextLabel")
- local UserPanelCorner = Instance.new("UICorner")
- local LeftFrame = Instance.new("Frame")
- local MyAccountBtn = Instance.new("TextButton")
- local MyAccountBtnCorner = Instance.new("UICorner")
- local MyAccountBtnTitle = Instance.new("TextLabel")
- local SettingsTitle = Instance.new("TextLabel")
- local DiscordInfo = Instance.new("TextLabel")
- local CurrentSettingOpen = Instance.new("TextLabel")
- SettingsFrame.Name = "SettingsFrame"
- SettingsFrame.Parent = MainFrame
- SettingsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SettingsFrame.BackgroundTransparency = 1
- SettingsFrame.Size = UDim2.new(0, 681, 0, 396)
- SettingsFrame.Visible = false
- Settings.Name = "Settings"
- Settings.Parent = SettingsFrame
- Settings.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Settings.BorderSizePixel = 0
- Settings.Position = UDim2.new(0, 0, 0.0530303046, 0)
- Settings.Size = UDim2.new(0, 681, 0, 375)
- SettingsHolder.Name = "SettingsHolder"
- SettingsHolder.Parent = Settings
- SettingsHolder.AnchorPoint = Vector2.new(0.5, 0.5)
- SettingsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SettingsHolder.BackgroundTransparency = 1
- SettingsHolder.ClipsDescendants = true
- SettingsHolder.Position = UDim2.new(0.49926579, 0, 0.498666674, 0)
- SettingsHolder.Size = UDim2.new(0, 0, 0, 0)
- CloseSettingsBtn.Name = "CloseSettingsBtn"
- CloseSettingsBtn.Parent = SettingsHolder
- CloseSettingsBtn.AnchorPoint = Vector2.new(0.5, 0.5)
- CloseSettingsBtn.BackgroundColor3 = Color3.fromRGB(113, 117, 123)
- CloseSettingsBtn.Position = UDim2.new(0.952967286, 0, 0.0853333324, 0)
- CloseSettingsBtn.Selectable = false
- CloseSettingsBtn.Size = UDim2.new(0, 30, 0, 30)
- CloseSettingsBtn.AutoButtonColor = false
- CloseSettingsBtn.Font = Enum.Font.SourceSans
- CloseSettingsBtn.Text = ""
- CloseSettingsBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- CloseSettingsBtn.TextSize = 14
- CloseSettingsBtnCorner.CornerRadius = UDim.new(1, 0)
- CloseSettingsBtnCorner.Name = "CloseSettingsBtnCorner"
- CloseSettingsBtnCorner.Parent = CloseSettingsBtn
- CloseSettingsBtnCircle.Name = "CloseSettingsBtnCircle"
- CloseSettingsBtnCircle.Parent = CloseSettingsBtn
- CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CloseSettingsBtnCircle.Position = UDim2.new(0.0879999995, 0, 0.118000001, 0)
- CloseSettingsBtnCircle.Size = UDim2.new(0, 24, 0, 24)
- CloseSettingsBtnCircleCorner.CornerRadius = UDim.new(1, 0)
- CloseSettingsBtnCircleCorner.Name = "CloseSettingsBtnCircleCorner"
- CloseSettingsBtnCircleCorner.Parent = CloseSettingsBtnCircle
- CloseSettingsBtnIcon.Name = "CloseSettingsBtnIcon"
- CloseSettingsBtnIcon.Parent = CloseSettingsBtnCircle
- CloseSettingsBtnIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CloseSettingsBtnIcon.BackgroundTransparency = 1
- CloseSettingsBtnIcon.Position = UDim2.new(0, 2, 0, 2)
- CloseSettingsBtnIcon.Size = UDim2.new(0, 19, 0, 19)
- CloseSettingsBtnIcon.Image = "http://www.roblox.com/asset/?id=6035047409"
- CloseSettingsBtnIcon.ImageColor3 = Color3.fromRGB(222, 222, 222)
- CloseSettingsBtn.MouseButton1Click:Connect(
- function()
- settingsopened = false
- TopFrameHolder.Visible = true
- ServersHoldFrame.Visible = true
- SettingsHolder:TweenSize(
- UDim2.new(0, 0, 0, 0),
- Enum.EasingDirection.Out,
- Enum.EasingStyle.Quart,
- 0.3,
- true
- )
- TweenService:Create(
- Settings,
- TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundTransparency = 1}
- ):Play()
- for i, v in next, SettingsHolder:GetChildren() do
- TweenService:Create(
- v,
- TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundTransparency = 1}
- ):Play()
- end
- wait(0.3)
- SettingsFrame.Visible = false
- end
- )
- CloseSettingsBtn.MouseEnter:Connect(
- function()
- CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(72, 76, 82)
- end
- )
- CloseSettingsBtn.MouseLeave:Connect(
- function()
- CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- end
- )
- UserInputService.InputBegan:Connect(
- function(io, p)
- if (io.KeyCode == Enum.KeyCode.RightControl) then
- if (settingsopened == true) then
- settingsopened = false
- TopFrameHolder.Visible = true
- ServersHoldFrame.Visible = true
- SettingsHolder:TweenSize(
- UDim2.new(0, 0, 0, 0),
- Enum.EasingDirection.Out,
- Enum.EasingStyle.Quart,
- 0.3,
- true
- )
- TweenService:Create(
- Settings,
- TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundTransparency = 1}
- ):Play()
- for i, v in next, SettingsHolder:GetChildren() do
- TweenService:Create(
- v,
- TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundTransparency = 1}
- ):Play()
- end
- wait(0.3)
- SettingsFrame.Visible = false
- end
- end
- end
- )
- TextLabel.Parent = CloseSet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement