Advertisement
Newplayer900

Untitled

Jun 25th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.97 KB | None | 0 0
  1. do
  2. local DiscordLib = {}
  3. local UserInputService = cloneref(game:GetService("UserInputService"))
  4. local TweenService = cloneref(game:GetService("TweenService"))
  5. local RunService = cloneref(game:GetService("RunService"))
  6. local LocalPlayer = cloneref(game:GetService("Players")).LocalPlayer
  7. local Mouse = LocalPlayer:GetMouse()
  8. local HttpService = cloneref(game:GetService("HttpService"))
  9. local pfp
  10. local user
  11. local tag
  12. local userinfo = {}
  13.  
  14. pcall(function()
  15. userinfo = HttpService:JSONDecode(readfile("discordlibinfo.txt"));
  16. end)
  17.  
  18. pfp = userinfo["pfp"] or "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=420&height=420&format=png"
  19. user = userinfo["user"] or game.Players.LocalPlayer.Name
  20. tag = userinfo["tag"] or tostring(math.random(1000,9999))
  21.  
  22. local function SaveInfo()
  23. userinfo["pfp"] = pfp
  24. userinfo["user"] = user
  25. userinfo["tag"] = tag
  26. writefile("discordlibinfo.txt", HttpService:JSONEncode(userinfo));
  27. end
  28.  
  29. local function MakeDraggable(topbarobject, object)
  30. local Dragging = nil
  31. local DragInput = nil
  32. local DragStart = nil
  33. local StartPosition = nil
  34.  
  35. local function Update(input)
  36. local Delta = input.Position - DragStart
  37. local pos =
  38. UDim2.new(
  39. StartPosition.X.Scale,
  40. StartPosition.X.Offset + Delta.X,
  41. StartPosition.Y.Scale,
  42. StartPosition.Y.Offset + Delta.Y
  43. )
  44. object.Position = pos
  45. end
  46.  
  47. topbarobject.InputBegan:Connect(
  48. function(input)
  49. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  50. Dragging = true
  51. DragStart = input.Position
  52. StartPosition = object.Position
  53.  
  54. input.Changed:Connect(
  55. function()
  56. if input.UserInputState == Enum.UserInputState.End then
  57. Dragging = false
  58. end
  59. end
  60. )
  61. end
  62. end
  63. )
  64.  
  65. topbarobject.InputChanged:Connect(
  66. function(input)
  67. if
  68. input.UserInputType == Enum.UserInputType.MouseMovement or
  69. input.UserInputType == Enum.UserInputType.Touch
  70. then
  71. DragInput = input
  72. end
  73. end
  74. )
  75.  
  76. UserInputService.InputChanged:Connect(
  77. function(input)
  78. if input == DragInput and Dragging then
  79. Update(input)
  80. end
  81. end
  82. )
  83. end
  84.  
  85. local Discord = Instance.new("ScreenGui")
  86. Discord.Name = "WyvernMenuGui"
  87. Discord.Parent = cloneref(game:GetService("CoreGui"))
  88. Discord.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  89. Discord.DisplayOrder = 9999999999
  90. DiscordLib.Window = function(self, text)
  91. local currentservertoggled = ""
  92. local minimized = false
  93. local fs = false
  94. local settingsopened = false
  95. local MainFrame = Instance.new("ImageLabel")
  96. local BBBB = Instance.new("Frame")
  97. local TopFrame = Instance.new("Frame")
  98. local Title = Instance.new("TextLabel")
  99. local CloseBtn = Instance.new("TextButton")
  100. local CloseIcon = Instance.new("ImageLabel")
  101. local MinimizeBtn = Instance.new("TextButton")
  102. local MinimizeIcon = Instance.new("ImageLabel")
  103. local ServersHolder = Instance.new("Folder")
  104. local Userpad = Instance.new("Frame")
  105. local UserIcon = Instance.new("Frame")
  106. local UserIconCorner = Instance.new("UICorner")
  107. local UserImage = Instance.new("ImageLabel")
  108. local UserCircleImage = Instance.new("ImageLabel")
  109. local UserName = Instance.new("TextLabel")
  110. local UserTag = Instance.new("TextLabel")
  111. local ServersHoldFrame = Instance.new("Frame")
  112. local ServersHold = Instance.new("ScrollingFrame")
  113. local ServersHoldLayout = Instance.new("UIListLayout")
  114. local ServersHoldPadding = Instance.new("UIPadding")
  115. local TopFrameHolder = Instance.new("Frame")
  116. MainFrame.Name = "MainFrame"
  117. MainFrame.Parent = Discord
  118. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  119. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 0)
  120. MainFrame.BorderSizePixel = 0
  121. MainFrame.BackgroundTransparency = 0
  122. MainFrame.Image = "http://www.roblox.com/asset/?id=18108227397"
  123. MainFrame.ClipsDescendants = true
  124. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  125. MainFrame.Size = UDim2.new(0, 681, 0, 396)
  126. BBBB.Name = "MainFrameBB"
  127. BBBB.Parent = MainFrame
  128. BBBB.AnchorPoint = Vector2.new(0.5, 0.5)
  129. BBBB.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  130. BBBB.BorderSizePixel = 0
  131. BBBB.BackgroundTransparency = 0.6
  132. BBBB.ClipsDescendants = true
  133. BBBB.Position = UDim2.new(0.5, 0, 0.5, 0)
  134. BBBB.Size = UDim2.new(0, 681, 0, 396)
  135. TopFrame.Name = "TopFrame"
  136. TopFrame.Parent = MainFrame
  137. TopFrame.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  138. TopFrame.BackgroundTransparency = 1
  139. TopFrame.BorderSizePixel = 0
  140. TopFrame.Position = UDim2.new(-0.000658480625, 0, 0, 0)
  141. TopFrame.Size = UDim2.new(0, 681, 0, 22)
  142. TopFrameHolder.Name = "TopFrameHolder"
  143. TopFrameHolder.Parent = TopFrame
  144. TopFrameHolder.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  145. TopFrameHolder.BackgroundTransparency = 1
  146. TopFrameHolder.BorderSizePixel = 0
  147. TopFrameHolder.Position = UDim2.new(-0.000658480625, 0, 0, 0)
  148. TopFrameHolder.Size = UDim2.new(0, 681, 0, 22)
  149. Title.Name = "Title"
  150. Title.Parent = TopFrame
  151. Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  152. Title.BackgroundTransparency = 0.6
  153. Title.Position = UDim2.new(0, 1, 0, 0)
  154. Title.Size = UDim2.new(0, 700, 0, 20)
  155. Title.Font = Enum.Font.ArimoBold
  156. Title.Text = text
  157. Title.TextColor3 = Color3.fromRGB(0, 0, 0)
  158. Title.TextSize = 25
  159. Title.TextXAlignment = Enum.TextXAlignment.Left
  160. CloseBtn.Name = "CloseBtn"
  161. CloseBtn.Parent = TopFrame
  162. CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  163. CloseBtn.BackgroundTransparency = 1
  164. CloseBtn.Position = UDim2.new(0.959063113, 0, -0.0169996787, 0)
  165. CloseBtn.Size = UDim2.new(0, 28, 0, 22)
  166. CloseBtn.Font = Enum.Font.Gotham
  167. CloseBtn.Text = ""
  168. CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  169. CloseBtn.TextSize = 14
  170. CloseBtn.BorderSizePixel = 0
  171. CloseBtn.AutoButtonColor = false
  172. CloseIcon.Name = "CloseIcon"
  173. CloseIcon.Parent = CloseBtn
  174. CloseIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  175. CloseIcon.BackgroundTransparency = 1
  176. CloseIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
  177. CloseIcon.Size = UDim2.new(0, 17, 0, 17)
  178. CloseIcon.Image = "http://www.roblox.com/asset/?id=18110757343"
  179. CloseIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
  180. MinimizeBtn.Name = "MinimizeButton"
  181. MinimizeBtn.Parent = TopFrame
  182. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  183. MinimizeBtn.BackgroundTransparency = 1
  184. MinimizeBtn.Position = UDim2.new(0.917947114, 0, -0.0169996787, 0)
  185. MinimizeBtn.Size = UDim2.new(0, 28, 0, 22)
  186. MinimizeBtn.Font = Enum.Font.Gotham
  187. MinimizeBtn.Text = ""
  188. MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  189. MinimizeBtn.TextSize = 14
  190. MinimizeBtn.BorderSizePixel = 0
  191. MinimizeBtn.AutoButtonColor = false
  192. MinimizeIcon.Name = "MinimizeLabel"
  193. MinimizeIcon.Parent = MinimizeBtn
  194. MinimizeIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  195. MinimizeIcon.BackgroundTransparency = 1
  196. MinimizeIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
  197. MinimizeIcon.Size = UDim2.new(0, 17, 0, 17)
  198. MinimizeIcon.Image = "http://www.roblox.com/asset/?id=18110714885"
  199. MinimizeIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
  200. ServersHolder.Name = "ServersHolder"
  201. ServersHolder.Parent = TopFrameHolder
  202. ServersHoldFrame.Name = "ServersHoldFrame"
  203. ServersHoldFrame.Parent = MainFrame
  204. ServersHoldFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  205. ServersHoldFrame.BackgroundTransparency = 1
  206. ServersHoldFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  207. ServersHoldFrame.Size = UDim2.new(0, 71, 0, 396)
  208. ServersHold.Name = "ServersHold"
  209. ServersHold.Parent = ServersHoldFrame
  210. ServersHold.Active = true
  211. ServersHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  212. ServersHold.BackgroundTransparency = 1
  213. ServersHold.BorderSizePixel = 0
  214. ServersHold.Position = UDim2.new(-0.000359333731, 0, 0.0580808073, 0)
  215. ServersHold.Size = UDim2.new(0, 71, 0, 373)
  216. ServersHold.ScrollBarThickness = 1
  217. ServersHold.ScrollBarImageTransparency = 1
  218. ServersHold.CanvasSize = UDim2.new(0, 0, 0, 0)
  219. ServersHoldLayout.Name = "ServersHoldLayout"
  220. ServersHoldLayout.Parent = ServersHold
  221. ServersHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  222. ServersHoldLayout.Padding = UDim.new(0, 7)
  223. ServersHoldPadding.Name = "ServersHoldPadding"
  224. ServersHoldPadding.Parent = ServersHold
  225. CloseBtn.MouseButton1Click:Connect(
  226. function()
  227. MainFrame:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.3, true)
  228. end
  229. )
  230. CloseBtn.MouseEnter:Connect(
  231. function()
  232. CloseBtn.BackgroundColor3 = Color3.fromRGB(240, 71, 71)
  233. end
  234. )
  235. CloseBtn.MouseLeave:Connect(
  236. function()
  237. CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  238. end
  239. )
  240. MinimizeBtn.MouseEnter:Connect(
  241. function()
  242. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(40, 43, 46)
  243. end
  244. )
  245. MinimizeBtn.MouseLeave:Connect(
  246. function()
  247. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  248. end
  249. )
  250. MinimizeBtn.MouseButton1Click:Connect(
  251. function()
  252. if (minimized == false) then
  253. MainFrame:TweenSize(
  254. UDim2.new(0, 681, 0, 22),
  255. Enum.EasingDirection.Out,
  256. Enum.EasingStyle.Quart,
  257. 0.3,
  258. true
  259. )
  260. else
  261. MainFrame:TweenSize(
  262. UDim2.new(0, 681, 0, 396),
  263. Enum.EasingDirection.Out,
  264. Enum.EasingStyle.Quart,
  265. 0.3,
  266. true
  267. )
  268. end
  269. minimized = not minimized
  270. end
  271. )
  272. local SettingsOpenBtn = Instance.new("TextButton")
  273. local SettingsOpenBtnIco = Instance.new("ImageLabel")
  274.  
  275. SettingsOpenBtn.Name = "SettingsOpenBtn"
  276. SettingsOpenBtn.Parent = Userpad
  277. SettingsOpenBtn.BackgroundColor3 = Color3.fromRGB(53, 56, 62)
  278. SettingsOpenBtn.BackgroundTransparency = 1.000
  279. SettingsOpenBtn.Position = UDim2.new(0.849161983, 0, 0.279069781, 0)
  280. SettingsOpenBtn.Size = UDim2.new(0, 18, 0, 18)
  281. SettingsOpenBtn.Font = Enum.Font.SourceSans
  282. SettingsOpenBtn.Text = ""
  283. SettingsOpenBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  284. SettingsOpenBtn.TextSize = 14.000
  285.  
  286. SettingsOpenBtnIco.Name = "SettingsOpenBtnIco"
  287. SettingsOpenBtnIco.Parent = SettingsOpenBtn
  288. SettingsOpenBtnIco.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
  289. SettingsOpenBtnIco.BackgroundTransparency = 1.000
  290. SettingsOpenBtnIco.Size = UDim2.new(0, 18, 0, 18)
  291. SettingsOpenBtnIco.Image = "http://www.roblox.com/asset/?id=6031280882"
  292. SettingsOpenBtnIco.ImageColor3 = Color3.fromRGB(220, 220, 220)
  293. local SettingsFrame = Instance.new("Frame")
  294. local Settings = Instance.new("Frame")
  295. local SettingsHolder = Instance.new("Frame")
  296. local CloseSettingsBtn = Instance.new("TextButton")
  297. local CloseSettingsBtnCorner = Instance.new("UICorner")
  298. local CloseSettingsBtnCircle = Instance.new("Frame")
  299. local CloseSettingsBtnCircleCorner = Instance.new("UICorner")
  300. local CloseSettingsBtnIcon = Instance.new("ImageLabel")
  301. local TextLabel = Instance.new("TextLabel")
  302. local UserPanel = Instance.new("Frame")
  303. local UserSettingsPad = Instance.new("Frame")
  304. local UserSettingsPadCorner = Instance.new("UICorner")
  305. local UsernameText = Instance.new("TextLabel")
  306. local UserSettingsPadUserTag = Instance.new("Frame")
  307. local UserSettingsPadUser = Instance.new("TextLabel")
  308. local UserSettingsPadUserTagLayout = Instance.new("UIListLayout")
  309. local UserSettingsPadTag = Instance.new("TextLabel")
  310. local EditBtn = Instance.new("TextButton")
  311. local EditBtnCorner = Instance.new("UICorner")
  312. local UserPanelUserIcon = Instance.new("TextButton")
  313. local UserPanelUserImage = Instance.new("ImageLabel")
  314. local UserPanelUserCircle = Instance.new("ImageLabel")
  315. local BlackFrame = Instance.new("Frame")
  316. local BlackFrameCorner = Instance.new("UICorner")
  317. local ChangeAvatarText = Instance.new("TextLabel")
  318. local SearchIcoFrame = Instance.new("Frame")
  319. local SearchIcoFrameCorner = Instance.new("UICorner")
  320. local SearchIco = Instance.new("ImageLabel")
  321. local UserPanelUserTag = Instance.new("Frame")
  322. local UserPanelUser = Instance.new("TextLabel")
  323. local UserPanelUserTagLayout = Instance.new("UIListLayout")
  324. local UserPanelTag = Instance.new("TextLabel")
  325. local UserPanelCorner = Instance.new("UICorner")
  326. local LeftFrame = Instance.new("Frame")
  327. local MyAccountBtn = Instance.new("TextButton")
  328. local MyAccountBtnCorner = Instance.new("UICorner")
  329. local MyAccountBtnTitle = Instance.new("TextLabel")
  330. local SettingsTitle = Instance.new("TextLabel")
  331. local DiscordInfo = Instance.new("TextLabel")
  332. local CurrentSettingOpen = Instance.new("TextLabel")
  333. SettingsFrame.Name = "SettingsFrame"
  334. SettingsFrame.Parent = MainFrame
  335. SettingsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  336. SettingsFrame.BackgroundTransparency = 1
  337. SettingsFrame.Size = UDim2.new(0, 681, 0, 396)
  338. SettingsFrame.Visible = false
  339. Settings.Name = "Settings"
  340. Settings.Parent = SettingsFrame
  341. Settings.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  342. Settings.BorderSizePixel = 0
  343. Settings.Position = UDim2.new(0, 0, 0.0530303046, 0)
  344. Settings.Size = UDim2.new(0, 681, 0, 375)
  345. SettingsHolder.Name = "SettingsHolder"
  346. SettingsHolder.Parent = Settings
  347. SettingsHolder.AnchorPoint = Vector2.new(0.5, 0.5)
  348. SettingsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  349. SettingsHolder.BackgroundTransparency = 1
  350. SettingsHolder.ClipsDescendants = true
  351. SettingsHolder.Position = UDim2.new(0.49926579, 0, 0.498666674, 0)
  352. SettingsHolder.Size = UDim2.new(0, 0, 0, 0)
  353. CloseSettingsBtn.Name = "CloseSettingsBtn"
  354. CloseSettingsBtn.Parent = SettingsHolder
  355. CloseSettingsBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  356. CloseSettingsBtn.BackgroundColor3 = Color3.fromRGB(113, 117, 123)
  357. CloseSettingsBtn.Position = UDim2.new(0.952967286, 0, 0.0853333324, 0)
  358. CloseSettingsBtn.Selectable = false
  359. CloseSettingsBtn.Size = UDim2.new(0, 30, 0, 30)
  360. CloseSettingsBtn.AutoButtonColor = false
  361. CloseSettingsBtn.Font = Enum.Font.SourceSans
  362. CloseSettingsBtn.Text = ""
  363. CloseSettingsBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  364. CloseSettingsBtn.TextSize = 14
  365. CloseSettingsBtnCorner.CornerRadius = UDim.new(1, 0)
  366. CloseSettingsBtnCorner.Name = "CloseSettingsBtnCorner"
  367. CloseSettingsBtnCorner.Parent = CloseSettingsBtn
  368. CloseSettingsBtnCircle.Name = "CloseSettingsBtnCircle"
  369. CloseSettingsBtnCircle.Parent = CloseSettingsBtn
  370. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  371. CloseSettingsBtnCircle.Position = UDim2.new(0.0879999995, 0, 0.118000001, 0)
  372. CloseSettingsBtnCircle.Size = UDim2.new(0, 24, 0, 24)
  373. CloseSettingsBtnCircleCorner.CornerRadius = UDim.new(1, 0)
  374. CloseSettingsBtnCircleCorner.Name = "CloseSettingsBtnCircleCorner"
  375. CloseSettingsBtnCircleCorner.Parent = CloseSettingsBtnCircle
  376. CloseSettingsBtnIcon.Name = "CloseSettingsBtnIcon"
  377. CloseSettingsBtnIcon.Parent = CloseSettingsBtnCircle
  378. CloseSettingsBtnIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  379. CloseSettingsBtnIcon.BackgroundTransparency = 1
  380. CloseSettingsBtnIcon.Position = UDim2.new(0, 2, 0, 2)
  381. CloseSettingsBtnIcon.Size = UDim2.new(0, 19, 0, 19)
  382. CloseSettingsBtnIcon.Image = "http://www.roblox.com/asset/?id=6035047409"
  383. CloseSettingsBtnIcon.ImageColor3 = Color3.fromRGB(222, 222, 222)
  384. CloseSettingsBtn.MouseButton1Click:Connect(
  385. function()
  386. settingsopened = false
  387. TopFrameHolder.Visible = true
  388. ServersHoldFrame.Visible = true
  389. SettingsHolder:TweenSize(
  390. UDim2.new(0, 0, 0, 0),
  391. Enum.EasingDirection.Out,
  392. Enum.EasingStyle.Quart,
  393. 0.3,
  394. true
  395. )
  396. TweenService:Create(
  397. Settings,
  398. TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  399. {BackgroundTransparency = 1}
  400. ):Play()
  401. for i, v in next, SettingsHolder:GetChildren() do
  402. TweenService:Create(
  403. v,
  404. TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  405. {BackgroundTransparency = 1}
  406. ):Play()
  407. end
  408. wait(0.3)
  409. SettingsFrame.Visible = false
  410. end
  411. )
  412. CloseSettingsBtn.MouseEnter:Connect(
  413. function()
  414. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(72, 76, 82)
  415. end
  416. )
  417. CloseSettingsBtn.MouseLeave:Connect(
  418. function()
  419. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  420. end
  421. )
  422. UserInputService.InputBegan:Connect(
  423. function(io, p)
  424. if (io.KeyCode == Enum.KeyCode.RightControl) then
  425. if (settingsopened == true) then
  426. settingsopened = false
  427. TopFrameHolder.Visible = true
  428. ServersHoldFrame.Visible = true
  429. SettingsHolder:TweenSize(
  430. UDim2.new(0, 0, 0, 0),
  431. Enum.EasingDirection.Out,
  432. Enum.EasingStyle.Quart,
  433. 0.3,
  434. true
  435. )
  436. TweenService:Create(
  437. Settings,
  438. TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  439. {BackgroundTransparency = 1}
  440. ):Play()
  441. for i, v in next, SettingsHolder:GetChildren() do
  442. TweenService:Create(
  443. v,
  444. TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  445. {BackgroundTransparency = 1}
  446. ):Play()
  447. end
  448. wait(0.3)
  449. SettingsFrame.Visible = false
  450. end
  451. end
  452. end
  453. )
  454. TextLabel.Parent = CloseSet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement