Advertisement
NightGolden

白脚本20美金UI

Jan 23rd, 2023 (edited)
255
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.38 KB | None | 0 0
  1. local bailib = {}
  2. local Script = "白脚本"
  3. local gFont = "SourceSans"
  4. local UserInputService = game:GetService("UserInputService")
  5. local TweenService = game:GetService("TweenService")
  6. local RunService = game:GetService("RunService")
  7. local LocalPlayer = game:GetService("Players").LocalPlayer
  8. local Mouse = LocalPlayer:GetMouse()
  9. local HttpService = game:GetService("HttpService")
  10. local pfp
  11. local user
  12. local tag
  13. local userinfo = {}
  14.  
  15. pcall(function()
  16. userinfo = HttpService:JSONDecode(readfile("bailibinfo.txt"));
  17. end)
  18.  
  19. pfp = userinfo["pfp"] or "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=420&height=420&format=png"
  20. user = userinfo["user"] or game.Players.LocalPlayer.Name
  21. tag = userinfo["tag"] or tostring(math.random(0,9999))
  22.  
  23. local function SaveInfo()
  24. userinfo["pfp"] = pfp
  25. userinfo["user"] = user
  26. userinfo["tag"] = tag
  27. writefile("bailibinfo.txt", HttpService:JSONEncode(userinfo));
  28. end
  29.  
  30. local function Log(text, r, g, b, font)
  31. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  32. Text = "{" .. tostring(Script) .. "} - " .. text;
  33. Color = Color3.new(r, g, b);
  34. Font = Enum.Font[font];
  35. FontSize = Enum.FontSize.Size10;
  36. })
  37. end
  38. spawn(function()
  39. while task.wait(100) do
  40. Log("我是好人",255,0,0, tostring(gFont))
  41. end
  42. end)
  43. Log("正在加载脚本", 255,255,255, tostring(gFont))
  44.  
  45. local function MakeDraggable(topbarobject, object)
  46.  
  47. end
  48.  
  49.  
  50. local bai = Instance.new("ScreenGui")
  51. bai.Name = "bai"
  52. bai.Parent = game.CoreGui
  53. bai.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  54.  
  55. function bailib:Window(text)
  56. local currentservertoggled = ""
  57. local minimized = false
  58. local fs = false
  59. local settingsopened = false
  60. local MainFrame = Instance.new("Frame")
  61. local TopFrame = Instance.new("Frame")
  62. local Title = Instance.new("TextLabel")
  63. local CloseBtn = Instance.new("TextButton")
  64. local CloseIcon = Instance.new("ImageLabel")
  65. local MinimizeBtn = Instance.new("TextButton")
  66. local MinimizeIcon = Instance.new("ImageLabel")
  67. local ServersHolder = Instance.new("Folder")
  68. local Userpad = Instance.new("Frame")
  69. local UserIcon = Instance.new("Frame")
  70. local UserIconCorner = Instance.new("UICorner")
  71. local UserImage = Instance.new("ImageLabel")
  72. local UserCircleImage = Instance.new("ImageLabel")
  73. local UserName = Instance.new("TextLabel")
  74. local UserTag = Instance.new("TextLabel")
  75. local ServersHoldFrame = Instance.new("Frame")
  76. local ServersHold = Instance.new("ScrollingFrame")
  77. local ServersHoldLayout = Instance.new("UIListLayout")
  78. local ServersHoldPadding = Instance.new("UIPadding")
  79. local TopFrameHolder = Instance.new("Frame")
  80. local Frame = Instance.new("Frame")
  81. local UIGradient = Instance.new("UIGradient")
  82. local Open = Instance.new("TextButton")
  83.  
  84. MainFrame.Name = "MainFrame"
  85. MainFrame.Parent = bai
  86. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  87. MainFrame.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  88. MainFrame.BorderSizePixel = 0
  89. MainFrame.ClipsDescendants = true
  90. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  91. MainFrame.Size = UDim2.new(0, 681, 0, 396)
  92. MainFrame.Active = true
  93. MainFrame.Draggable = true
  94. UserInputService.InputEnded:Connect(function(input)
  95. if input.KeyCode == Enum.KeyCode.LeftControl then
  96. if MainFrame.Visible == true then
  97. MainFrame.Visible = false else
  98. MainFrame.Visible = true
  99. end
  100. end
  101. end)
  102. TopFrame.Name = "TopFrame"
  103. TopFrame.Parent = MainFrame
  104. TopFrame.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  105. TopFrame.BackgroundTransparency = 1.000
  106. TopFrame.BorderSizePixel = 0
  107. TopFrame.Position = UDim2.new(-0.000658480625, 0, 0, 0)
  108. TopFrame.Size = UDim2.new(0, 681, 0, 22)
  109.  
  110. TopFrameHolder.Name = "TopFrameHolder"
  111. TopFrameHolder.Parent = TopFrame
  112. TopFrameHolder.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  113. TopFrameHolder.BackgroundTransparency = 1.000
  114. TopFrameHolder.BorderSizePixel = 0
  115. TopFrameHolder.Position = UDim2.new(-0.000658480625, 0, 0, 0)
  116. TopFrameHolder.Size = UDim2.new(0, 681, 0, 22)
  117.  
  118. Title.Name = "Title"
  119. Title.Parent = TopFrame
  120. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. Title.BackgroundTransparency = 1.000
  122. Title.Position = UDim2.new(0.0102790017, 0, 0, 0)
  123. Title.Size = UDim2.new(0, 100, 0, 23)
  124. Title.Font = Enum.Font.Gotham
  125. Title.Text = text
  126. Title.TextScaled = true
  127. Title.TextColor3 = Color3.fromRGB(99, 102, 109)
  128. Title.TextSize = 13.000
  129. Title.TextXAlignment = Enum.TextXAlignment.Left
  130.  
  131. Open.Name = "Open"
  132. Open.Parent = bai
  133. Open.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  134. Open.Position = UDim2.new(0.00829315186, 0, 0.31107837, 0)
  135. Open.Size = UDim2.new(0, 61, 0, 32)
  136. Open.Font = Enum.Font.SourceSans
  137. Open.Text = "隐藏/打开"
  138. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  139. Open.TextSize = 14.000
  140. Open.Active = true
  141. Open.Draggable = true
  142. Open.MouseButton1Click:Connect(function()
  143. MainFrame.Visible = not MainFrame.Visible
  144. end)
  145.  
  146. CloseBtn.Name = "CloseBtn"
  147. CloseBtn.Parent = TopFrame
  148. CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  149. CloseBtn.BackgroundTransparency = 0
  150. CloseBtn.Position = UDim2.new(0.959063113, 0, -0.0169996787, 0)
  151. CloseBtn.Size = UDim2.new(0, 28, 0, 22)
  152. CloseBtn.Font = Enum.Font.Gotham
  153. CloseBtn.Text = ""
  154. CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  155. CloseBtn.TextSize = 14.000
  156. CloseBtn.BorderSizePixel = 0
  157. CloseBtn.AutoButtonColor = false
  158.  
  159. CloseIcon.Name = "CloseIcon"
  160. CloseIcon.Parent = CloseBtn
  161. CloseIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  162. CloseIcon.BackgroundTransparency = 1.000
  163. CloseIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
  164. CloseIcon.Size = UDim2.new(0, 17, 0, 17)
  165. CloseIcon.Image = "http://www.roblox.com/asset/?id=6035047409"
  166. CloseIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
  167.  
  168. MinimizeBtn.Name = "MinimizeButton"
  169. MinimizeBtn.Parent = TopFrame
  170. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  171. MinimizeBtn.BackgroundTransparency = 0
  172. MinimizeBtn.Position = UDim2.new(0.917947114, 0, -0.0169996787, 0)
  173. MinimizeBtn.Size = UDim2.new(0, 28, 0, 22)
  174. MinimizeBtn.Font = Enum.Font.Gotham
  175. MinimizeBtn.Text = ""
  176. MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  177. MinimizeBtn.TextSize = 14.000
  178. MinimizeBtn.BorderSizePixel = 0
  179. MinimizeBtn.AutoButtonColor = false
  180.  
  181. MinimizeIcon.Name = "MinimizeLabel"
  182. MinimizeIcon.Parent = MinimizeBtn
  183. MinimizeIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  184. MinimizeIcon.BackgroundTransparency = 1.000
  185. MinimizeIcon.Position = UDim2.new(0.189182192, 0, 0.128935531, 0)
  186. MinimizeIcon.Size = UDim2.new(0, 17, 0, 17)
  187. MinimizeIcon.Image = "http://www.roblox.com/asset/?id=6035067836"
  188. MinimizeIcon.ImageColor3 = Color3.fromRGB(220, 221, 222)
  189.  
  190. ServersHolder.Name = "ServersHolder"
  191. ServersHolder.Parent = TopFrameHolder
  192.  
  193. Userpad.Name = "Userpad"
  194. Userpad.Parent = TopFrameHolder
  195. Userpad.BackgroundColor3 = Color3.fromRGB(41, 43, 47)
  196. Userpad.BorderSizePixel = 0
  197. Userpad.Position = UDim2.new(0.106243297, 0, 15.9807148, 0)
  198. Userpad.Size = UDim2.new(0, 179, 0, 43)
  199.  
  200. UserIcon.Name = "UserIcon"
  201. UserIcon.Parent = Userpad
  202. UserIcon.BackgroundColor3 = Color3.fromRGB(31, 33, 36)
  203. UserIcon.BorderSizePixel = 0
  204. UserIcon.Position = UDim2.new(0.0340000018, 0, 0.123999998, 0)
  205. UserIcon.Size = UDim2.new(0, 32, 0, 32)
  206.  
  207. UserIconCorner.CornerRadius = UDim.new(1, 8)
  208. UserIconCorner.Name = "UserIconCorner"
  209. UserIconCorner.Parent = UserIcon
  210.  
  211. UserImage.Name = "UserImage"
  212. UserImage.Parent = UserIcon
  213. UserImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  214. UserImage.BackgroundTransparency = 1.000
  215. UserImage.Size = UDim2.new(0, 32, 0, 32)
  216. UserImage.Image = pfp
  217.  
  218. UserCircleImage.Name = "UserImage"
  219. UserCircleImage.Parent = UserImage
  220. UserCircleImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  221. UserCircleImage.BackgroundTransparency = 1.000
  222. UserCircleImage.Size = UDim2.new(0, 32, 0, 32)
  223. UserCircleImage.Image = "rbxassetid://4031889928"
  224. UserCircleImage.ImageColor3 = Color3.fromRGB(41, 43, 47)
  225.  
  226. UserName.Name = "UserName"
  227. UserName.Parent = Userpad
  228. UserName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  229. UserName.BackgroundTransparency = 1.000
  230. UserName.BorderSizePixel = 0
  231. UserName.Position = UDim2.new(0.230000004, 0, 0.115999997, 0)
  232. UserName.Size = UDim2.new(0, 98, 0, 17)
  233. UserName.Font = Enum.Font.GothamSemibold
  234. UserName.TextColor3 = Color3.fromRGB(255, 255, 255)
  235. UserName.TextSize = 13.000
  236. UserName.TextXAlignment = Enum.TextXAlignment.Left
  237. UserName.ClipsDescendants = true
  238.  
  239. UserTag.Name = "UserTag"
  240. UserTag.Parent = Userpad
  241. UserTag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  242. UserTag.BackgroundTransparency = 1.000
  243. UserTag.BorderSizePixel = 0
  244. UserTag.Position = UDim2.new(0.230000004, 0, 0.455000013, 0)
  245. UserTag.Size = UDim2.new(0, 95, 0, 17)
  246. UserTag.Font = Enum.Font.Gotham
  247. UserTag.TextColor3 = Color3.fromRGB(255, 255, 255)
  248. UserTag.TextSize = 13.000
  249. UserTag.TextTransparency = 0.300
  250. UserTag.TextXAlignment = Enum.TextXAlignment.Left
  251.  
  252. UserName.Text = user
  253. UserTag.Text = "#" .. tag
  254.  
  255. ServersHoldFrame.Name = "ServersHoldFrame"
  256. ServersHoldFrame.Parent = MainFrame
  257. ServersHoldFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  258. ServersHoldFrame.BackgroundTransparency = 1.000
  259. ServersHoldFrame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  260. ServersHoldFrame.Size = UDim2.new(0, 71, 0, 396)
  261.  
  262. ServersHold.Name = "ServersHold"
  263. ServersHold.Parent = ServersHoldFrame
  264. ServersHold.Active = true
  265. ServersHold.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  266. ServersHold.BackgroundTransparency = 1.000
  267. ServersHold.BorderSizePixel = 0
  268. ServersHold.Position = UDim2.new(-0.000359333731, 0, 0.0580808073, 0)
  269. ServersHold.Size = UDim2.new(0, 71, 0, 373)
  270. ServersHold.ScrollBarThickness = 1
  271. ServersHold.ScrollBarImageTransparency = 1
  272. ServersHold.CanvasSize = UDim2.new(0, 0, 0, 0)
  273.  
  274. ServersHoldLayout.Name = "ServersHoldLayout"
  275. ServersHoldLayout.Parent = ServersHold
  276. ServersHoldLayout.SortOrder = Enum.SortOrder.LayoutOrder
  277. ServersHoldLayout.Padding = UDim.new(0, 7)
  278.  
  279. ServersHoldPadding.Name = "ServersHoldPadding"
  280. ServersHoldPadding.Parent = ServersHold
  281.  
  282. Frame.Name = "Frame"
  283. Frame.Parent = MainFrame
  284. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  285. Frame.Position = UDim2.new(0, 0, 0, 0)
  286. Frame.Size = UDim2.new(0, 681, 0, 4)
  287.  
  288. UIGradient.Parent = Frame
  289.  
  290. local function NPLHKB_fake_script() -- Frame.LocalScript
  291. local script = Instance.new('LocalScript', Frame)
  292.  
  293. local button = script.Parent
  294. local gradient = button.UIGradient
  295. local ts = game:GetService("TweenService")
  296. local ti = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
  297. local offset = {Offset = Vector2.new(1, 0)}
  298. local create = ts:Create(gradient, ti, offset)
  299. local startingPos = Vector2.new(-1, 0)
  300. local list = {}
  301. local s, kpt = ColorSequence.new, ColorSequenceKeypoint.new
  302. local counter = 0
  303. local status = "down"
  304. gradient.Offset = startingPos
  305. local function rainbowColors()
  306. local sat, val = 255, 255
  307. for i = 1, 10 do
  308. local hue = i * 17
  309. table.insert(list, Color3.fromHSV(hue / 255, sat / 255, val / 255))
  310. end
  311. end
  312. rainbowColors()
  313. gradient.Color = s({
  314. kpt(0, list[#list]),
  315. kpt(0.5, list[#list - 1]),
  316. kpt(1, list[#list - 2])
  317. })
  318. counter = #list
  319. local function animate()
  320. create:Play()
  321. create.Completed:Wait()
  322. gradient.Offset = startingPos
  323. gradient.Rotation = 180
  324. if counter == #list - 1 and status == "down" then
  325. gradient.Color = s({
  326. kpt(0, gradient.Color.Keypoints[1].Value),
  327. kpt(0.5, list[#list]),
  328. kpt(1, list[1])
  329. })
  330. counter = 1
  331. status = "up"
  332. elseif counter == #list and status == "down" then
  333. gradient.Color = s({
  334. kpt(0, gradient.Color.Keypoints[1].Value),
  335. kpt(0.5, list[1]),
  336. kpt(1, list[2])
  337. })
  338. counter = 2
  339. status = "up"
  340. elseif counter <= #list - 2 and status == "down" then
  341. gradient.Color = s({
  342. kpt(0, gradient.Color.Keypoints[1].Value),
  343. kpt(0.5, list[counter + 1]),
  344. kpt(1, list[counter + 2])
  345. })
  346. counter = counter + 2
  347. status = "up"
  348. end
  349. create:Play()
  350. create.Completed:Wait()
  351. gradient.Offset = startingPos
  352. gradient.Rotation = 0
  353. if counter == #list - 1 and status == "up" then
  354. gradient.Color = s({
  355.  
  356. kpt(0, list[1]),
  357. kpt(0.5, list[#list]),
  358. kpt(1, gradient.Color.Keypoints[3].Value)
  359. })
  360. counter = 1
  361. status = "down"
  362. elseif counter == #list and status == "up" then
  363. gradient.Color = s({
  364. kpt(0, list[2]),
  365. kpt(0.5, list[1]),
  366. kpt(1, gradient.Color.Keypoints[3].Value)
  367. })
  368. counter = 2
  369. status = "down"
  370. elseif counter <= #list - 2 and status == "up" then
  371. gradient.Color = s({
  372. kpt(0, list[counter + 2]),
  373. kpt(0.5, list[counter + 1]),
  374. kpt(1, gradient.Color.Keypoints[3].Value)
  375. })
  376. counter = counter + 2
  377. status = "down"
  378. end
  379. animate()
  380. end
  381. animate()
  382.  
  383. end
  384. coroutine.wrap(NPLHKB_fake_script)()
  385.  
  386. CloseBtn.MouseButton1Click:Connect(function()
  387. bai:Destroy()
  388. end)
  389.  
  390. CloseBtn.MouseEnter:Connect(
  391. function()
  392. CloseBtn.BackgroundColor3 = Color3.fromRGB(240, 71, 71)
  393. end
  394. )
  395.  
  396. CloseBtn.MouseLeave:Connect(
  397. function()
  398. CloseBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  399. end
  400. )
  401.  
  402. MinimizeBtn.MouseEnter:Connect(
  403. function()
  404. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(40, 43, 46)
  405. end
  406. )
  407.  
  408. MinimizeBtn.MouseLeave:Connect(
  409. function()
  410. MinimizeBtn.BackgroundColor3 = Color3.fromRGB(32, 34, 37)
  411. end
  412. )
  413.  
  414. MinimizeBtn.MouseButton1Click:Connect(
  415. function()
  416. if minimized == false then
  417. MinimizeIcon.Image = "http://www.roblox.com/asset/?id=10673592685"
  418. MinimizeBtn.Position = UDim2.new(0.417947114, 0, -0.0169996787, 0)
  419. CloseBtn.Position = UDim2.new(0.459063113, 0, -0.0169996787, 0)
  420. MainFrame:TweenSize(
  421. UDim2.new(0, 340, 0, 22),
  422. Enum.EasingDirection.Out,
  423. Enum.EasingStyle.Quart,
  424. .3,
  425. true
  426. )
  427. else
  428. MinimizeIcon.Image = "http://www.roblox.com/asset/?id=6035067836"
  429. MinimizeBtn.Position = UDim2.new(0.917947114, 0, -0.0169996787, 0)
  430. CloseBtn.Position = UDim2.new(0.959063113, 0, -0.0169996787, 0)
  431. MainFrame:TweenSize(
  432. UDim2.new(0, 681, 0, 396),
  433. Enum.EasingDirection.Out,
  434. Enum.EasingStyle.Quart,
  435. .3,
  436. true
  437. )
  438. end
  439. minimized = not minimized
  440. end
  441. )
  442.  
  443. local SettingsOpenBtn = Instance.new("TextButton")
  444. local SettingsOpenBtnIco = Instance.new("ImageLabel")
  445.  
  446. SettingsOpenBtn.Name = "SettingsOpenBtn"
  447. SettingsOpenBtn.Parent = Userpad
  448. SettingsOpenBtn.BackgroundColor3 = Color3.fromRGB(53, 56, 62)
  449. SettingsOpenBtn.BackgroundTransparency = 1.000
  450. SettingsOpenBtn.Position = UDim2.new(0.849161983, 0, 0.279069781, 0)
  451. SettingsOpenBtn.Size = UDim2.new(0, 18, 0, 18)
  452. SettingsOpenBtn.Font = Enum.Font.SourceSans
  453. SettingsOpenBtn.Text = ""
  454. SettingsOpenBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  455. SettingsOpenBtn.TextSize = 14.000
  456.  
  457. SettingsOpenBtnIco.Name = "SettingsOpenBtnIco"
  458. SettingsOpenBtnIco.Parent = SettingsOpenBtn
  459. SettingsOpenBtnIco.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
  460. SettingsOpenBtnIco.BackgroundTransparency = 1.000
  461. SettingsOpenBtnIco.Size = UDim2.new(0, 18, 0, 18)
  462. SettingsOpenBtnIco.Image = "http://www.roblox.com/asset/?id=6031280882"
  463. SettingsOpenBtnIco.ImageColor3 = Color3.fromRGB(220, 220, 220)
  464. local SettingsFrame = Instance.new("Frame")
  465. local Settings = Instance.new("Frame")
  466. local SettingsHolder = Instance.new("Frame")
  467. local CloseSettingsBtn = Instance.new("TextButton")
  468. local CloseSettingsBtnCorner = Instance.new("UICorner")
  469. local CloseSettingsBtnCircle = Instance.new("Frame")
  470. local CloseSettingsBtnCircleCorner = Instance.new("UICorner")
  471. local CloseSettingsBtnIcon = Instance.new("ImageLabel")
  472. local TextLabel = Instance.new("TextLabel")
  473. local UserPanel = Instance.new("Frame")
  474. local UserSettingsPad = Instance.new("Frame")
  475. local UserSettingsPadCorner = Instance.new("UICorner")
  476. local UsernameText = Instance.new("TextLabel")
  477. local UserSettingsPadUserTag = Instance.new("Frame")
  478. local UserSettingsPadUser = Instance.new("TextLabel")
  479. local UserSettingsPadUserTagLayout = Instance.new("UIListLayout")
  480. local UserSettingsPadTag = Instance.new("TextLabel")
  481. local EditBtn = Instance.new("TextButton")
  482. local EditBtnCorner = Instance.new("UICorner")
  483. local UserPanelUserIcon = Instance.new("TextButton")
  484. local UserPanelUserImage = Instance.new("ImageLabel")
  485. local UserPanelUserCircle = Instance.new("ImageLabel")
  486. local BlackFrame = Instance.new("Frame")
  487. local BlackFrameCorner = Instance.new("UICorner")
  488. local ChangeAvatarText = Instance.new("TextLabel")
  489. local SearchIcoFrame = Instance.new("Frame")
  490. local SearchIcoFrameCorner = Instance.new("UICorner")
  491. local SearchIco = Instance.new("ImageLabel")
  492. local UserPanelUserTag = Instance.new("Frame")
  493. local UserPanelUser = Instance.new("TextLabel")
  494. local UserPanelUserTagLayout = Instance.new("UIListLayout")
  495. local UserPanelTag = Instance.new("TextLabel")
  496. local UserPanelCorner = Instance.new("UICorner")
  497. local LeftFrame = Instance.new("Frame")
  498. local MyAccountBtn = Instance.new("TextButton")
  499. local MyAccountBtnCorner = Instance.new("UICorner")
  500. local MyAccountBtnTitle = Instance.new("TextLabel")
  501. local SettingsTitle = Instance.new("TextLabel")
  502. local DiscordInfo = Instance.new("TextLabel")
  503. local CurrentSettingOpen = Instance.new("TextLabel")
  504.  
  505. SettingsFrame.Name = "SettingsFrame"
  506. SettingsFrame.Parent = MainFrame
  507. SettingsFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  508. SettingsFrame.BackgroundTransparency = 1.000
  509. SettingsFrame.Size = UDim2.new(0, 681, 0, 396)
  510. SettingsFrame.Visible = false
  511.  
  512. Settings.Name = "Settings"
  513. Settings.Parent = SettingsFrame
  514. Settings.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  515. Settings.BorderSizePixel = 0
  516. Settings.Position = UDim2.new(0, 0, 0.0530303046, 0)
  517. Settings.Size = UDim2.new(0, 681, 0, 375)
  518.  
  519. SettingsHolder.Name = "SettingsHolder"
  520. SettingsHolder.Parent = Settings
  521. SettingsHolder.AnchorPoint = Vector2.new(0.5, 0.5)
  522. SettingsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  523. SettingsHolder.BackgroundTransparency = 1.000
  524. SettingsHolder.ClipsDescendants = true
  525. SettingsHolder.Position = UDim2.new(0.49926579, 0, 0.498666674, 0)
  526. SettingsHolder.Size = UDim2.new(0, 0, 0, 0)
  527.  
  528. CloseSettingsBtn.Name = "CloseSettingsBtn"
  529. CloseSettingsBtn.Parent = SettingsHolder
  530. CloseSettingsBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  531. CloseSettingsBtn.BackgroundColor3 = Color3.fromRGB(113, 117, 123)
  532. CloseSettingsBtn.Position = UDim2.new(0.952967286, 0, 0.0853333324, 0)
  533. CloseSettingsBtn.Selectable = false
  534. CloseSettingsBtn.Size = UDim2.new(0, 30, 0, 30)
  535. CloseSettingsBtn.AutoButtonColor = false
  536. CloseSettingsBtn.Font = Enum.Font.SourceSans
  537. CloseSettingsBtn.Text = ""
  538. CloseSettingsBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  539. CloseSettingsBtn.TextSize = 14.000
  540.  
  541. CloseSettingsBtnCorner.CornerRadius = UDim.new(1, 0)
  542. CloseSettingsBtnCorner.Name = "CloseSettingsBtnCorner"
  543. CloseSettingsBtnCorner.Parent = CloseSettingsBtn
  544.  
  545. CloseSettingsBtnCircle.Name = "CloseSettingsBtnCircle"
  546. CloseSettingsBtnCircle.Parent = CloseSettingsBtn
  547. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  548. CloseSettingsBtnCircle.Position = UDim2.new(0.0879999995, 0, 0.118000001, 0)
  549. CloseSettingsBtnCircle.Size = UDim2.new(0, 24, 0, 24)
  550.  
  551. CloseSettingsBtnCircleCorner.CornerRadius = UDim.new(1, 0)
  552. CloseSettingsBtnCircleCorner.Name = "CloseSettingsBtnCircleCorner"
  553. CloseSettingsBtnCircleCorner.Parent = CloseSettingsBtnCircle
  554.  
  555. CloseSettingsBtnIcon.Name = "CloseSettingsBtnIcon"
  556. CloseSettingsBtnIcon.Parent = CloseSettingsBtnCircle
  557. CloseSettingsBtnIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  558. CloseSettingsBtnIcon.BackgroundTransparency = 1.000
  559. CloseSettingsBtnIcon.Position = UDim2.new(0, 2, 0, 2)
  560. CloseSettingsBtnIcon.Size = UDim2.new(0, 19, 0, 19)
  561. CloseSettingsBtnIcon.Image = "http://www.roblox.com/asset/?id=6035047409"
  562. CloseSettingsBtnIcon.ImageColor3 = Color3.fromRGB(222, 222, 222)
  563.  
  564. CloseSettingsBtn.MouseButton1Click:Connect(function()
  565. settingsopened = false
  566. TopFrameHolder.Visible = true
  567. ServersHoldFrame.Visible = true
  568. SettingsHolder:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  569. TweenService:Create(
  570. Settings,
  571. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  572. {BackgroundTransparency = 1}
  573. ):Play()
  574. for i,v in next, SettingsHolder:GetChildren() do
  575. TweenService:Create(
  576. v,
  577. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  578. {BackgroundTransparency = 1}
  579. ):Play()
  580. end
  581. wait(.3)
  582. SettingsFrame.Visible = false
  583. end)
  584.  
  585. CloseSettingsBtn.MouseEnter:Connect(function()
  586. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(72,76,82)
  587. end)
  588.  
  589. CloseSettingsBtn.MouseLeave:Connect(function()
  590. CloseSettingsBtnCircle.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  591. end)
  592.  
  593. UserInputService.InputBegan:Connect(
  594. function(io, p)
  595. if io.KeyCode == Enum.KeyCode.RightControl then
  596. if settingsopened == true then
  597. settingsopened = false
  598. TopFrameHolder.Visible = true
  599. ServersHoldFrame.Visible = true
  600. SettingsHolder:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  601. TweenService:Create(
  602. Settings,
  603. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  604. {BackgroundTransparency = 1}
  605. ):Play()
  606. for i,v in next, SettingsHolder:GetChildren() do
  607. TweenService:Create(
  608. v,
  609. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  610. {BackgroundTransparency = 1}
  611. ):Play()
  612. end
  613. wait(.3)
  614. SettingsFrame.Visible = false
  615. end
  616. end
  617. end
  618. )
  619.  
  620. TextLabel.Parent = CloseSettingsBtn
  621. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  622. TextLabel.BackgroundTransparency = 1.000
  623. TextLabel.Position = UDim2.new(-0.0666666701, 0, 1.06666672, 0)
  624. TextLabel.Size = UDim2.new(0, 34, 0, 22)
  625. TextLabel.Font = Enum.Font.GothamSemibold
  626. TextLabel.Text = "退出"
  627. TextLabel.TextColor3 = Color3.fromRGB(113, 117, 123)
  628. TextLabel.TextSize = 11.000
  629.  
  630. UserPanel.Name = "UserPanel"
  631. UserPanel.Parent = SettingsHolder
  632. UserPanel.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  633. UserPanel.Position = UDim2.new(0.365638763, 0, 0.130666673, 0)
  634. UserPanel.Size = UDim2.new(0, 362, 0, 164)
  635.  
  636. UserSettingsPad.Name = "UserSettingsPad"
  637. UserSettingsPad.Parent = UserPanel
  638. UserSettingsPad.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  639. UserSettingsPad.Position = UDim2.new(0.0331491716, 0, 0.568140388, 0)
  640. UserSettingsPad.Size = UDim2.new(0, 337, 0, 56)
  641.  
  642. UserSettingsPadCorner.Name = "UserSettingsPadCorner"
  643. UserSettingsPadCorner.Parent = UserSettingsPad
  644.  
  645. UsernameText.Name = "UsernameText"
  646. UsernameText.Parent = UserSettingsPad
  647. UsernameText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  648. UsernameText.BackgroundTransparency = 1.000
  649. UsernameText.Position = UDim2.new(0.0419999994, 0, 0.154714286, 0)
  650. UsernameText.Size = UDim2.new(0, 65, 0, 19)
  651. UsernameText.Font = Enum.Font.GothamBold
  652. UsernameText.Text = "编号和名称"
  653. UsernameText.TextColor3 = Color3.fromRGB(126, 130, 136)
  654. UsernameText.TextSize = 11.000
  655. UsernameText.TextXAlignment = Enum.TextXAlignment.Left
  656.  
  657. UserSettingsPadUserTag.Name = "UserSettingsPadUserTag"
  658. UserSettingsPadUserTag.Parent = UserSettingsPad
  659. UserSettingsPadUserTag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  660. UserSettingsPadUserTag.BackgroundTransparency = 1.000
  661. UserSettingsPadUserTag.Position = UDim2.new(0.0419999994, 0, 0.493999988, 0)
  662. UserSettingsPadUserTag.Size = UDim2.new(0, 65, 0, 19)
  663.  
  664. UserSettingsPadUser.Name = "UserSettingsPadUser"
  665. UserSettingsPadUser.Parent = UserSettingsPadUserTag
  666. UserSettingsPadUser.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  667. UserSettingsPadUser.BackgroundTransparency = 1.000
  668. UserSettingsPadUser.Font = Enum.Font.Gotham
  669. UserSettingsPadUser.TextColor3 = Color3.fromRGB(255, 255, 255)
  670. UserSettingsPadUser.TextSize = 13.000
  671. UserSettingsPadUser.TextXAlignment = Enum.TextXAlignment.Left
  672. UserSettingsPadUser.Text = user
  673. UserSettingsPadUser.Size = UDim2.new(0, UserSettingsPadUser.TextBounds.X + 2, 0, 19)
  674.  
  675. UserSettingsPadUserTagLayout.Name = "UserSettingsPadUserTagLayout"
  676. UserSettingsPadUserTagLayout.Parent = UserSettingsPadUserTag
  677. UserSettingsPadUserTagLayout.FillDirection = Enum.FillDirection.Horizontal
  678. UserSettingsPadUserTagLayout.SortOrder = Enum.SortOrder.LayoutOrder
  679.  
  680. UserSettingsPadTag.Name = "UserSettingsPadTag"
  681. UserSettingsPadTag.Parent = UserSettingsPadUserTag
  682. UserSettingsPadTag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  683. UserSettingsPadTag.BackgroundTransparency = 1.000
  684. UserSettingsPadTag.Position = UDim2.new(0.0419999994, 0, 0.493999988, 0)
  685. UserSettingsPadTag.Size = UDim2.new(0, 65, 0, 19)
  686. UserSettingsPadTag.Font = Enum.Font.Gotham
  687. UserSettingsPadTag.Text = "#" .. tag
  688. UserSettingsPadTag.TextColor3 = Color3.fromRGB(184, 186, 189)
  689. UserSettingsPadTag.TextSize = 13.000
  690. UserSettingsPadTag.TextXAlignment = Enum.TextXAlignment.Left
  691.  
  692. EditBtn.Name = "EditBtn"
  693. EditBtn.Parent = UserSettingsPad
  694. EditBtn.BackgroundColor3 = Color3.fromRGB(116, 127, 141)
  695. EditBtn.Position = UDim2.new(0.797671914, 0, 0.232142866, 0)
  696. EditBtn.Size = UDim2.new(0, 55, 0, 30)
  697. EditBtn.Font = Enum.Font.Gotham
  698. EditBtn.Text = "编辑"
  699. EditBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  700. EditBtn.TextSize = 14.000
  701. EditBtn.AutoButtonColor = false
  702.  
  703. EditBtn.MouseEnter:Connect(function()
  704. TweenService:Create(
  705. EditBtn,
  706. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  707. {BackgroundColor3 = Color3.fromRGB(104,114,127)}
  708. ):Play()
  709. end)
  710.  
  711. EditBtn.MouseLeave:Connect(function()
  712. TweenService:Create(
  713. EditBtn,
  714. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  715. {BackgroundColor3 = Color3.fromRGB(116, 127, 141)}
  716. ):Play()
  717. end)
  718.  
  719. EditBtnCorner.CornerRadius = UDim.new(0, 3)
  720. EditBtnCorner.Name = "EditBtnCorner"
  721. EditBtnCorner.Parent = EditBtn
  722.  
  723. UserPanelUserIcon.Name = "UserPanelUserIcon"
  724. UserPanelUserIcon.Parent = UserPanel
  725. UserPanelUserIcon.BackgroundColor3 = Color3.fromRGB(31, 33, 36)
  726. UserPanelUserIcon.BorderSizePixel = 0
  727. UserPanelUserIcon.Position = UDim2.new(0.0340000018, 0, 0.074000001, 0)
  728. UserPanelUserIcon.Size = UDim2.new(0, 71, 0, 71)
  729. UserPanelUserIcon.AutoButtonColor = false
  730. UserPanelUserIcon.Text = ""
  731.  
  732. UserPanelUserImage.Name = "UserPanelUserImage"
  733. UserPanelUserImage.Parent = UserPanelUserIcon
  734. UserPanelUserImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  735. UserPanelUserImage.BackgroundTransparency = 1.000
  736. UserPanelUserImage.Size = UDim2.new(0, 71, 0, 71)
  737. UserPanelUserImage.Image = pfp
  738.  
  739. UserPanelUserCircle.Name = "UserPanelUserCircle"
  740. UserPanelUserCircle.Parent = UserPanelUserImage
  741. UserPanelUserCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  742. UserPanelUserCircle.BackgroundTransparency = 1.000
  743. UserPanelUserCircle.Size = UDim2.new(0, 71, 0, 71)
  744. UserPanelUserCircle.Image = "rbxassetid://4031889928"
  745. UserPanelUserCircle.ImageColor3 = Color3.fromRGB(47, 49, 54)
  746.  
  747. BlackFrame.Name = "BlackFrame"
  748. BlackFrame.Parent = UserPanelUserIcon
  749. BlackFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  750. BlackFrame.BackgroundTransparency = 0.400
  751. BlackFrame.BorderSizePixel = 0
  752. BlackFrame.Size = UDim2.new(0, 71, 0, 71)
  753. BlackFrame.Visible = false
  754.  
  755. BlackFrameCorner.CornerRadius = UDim.new(1, 8)
  756. BlackFrameCorner.Name = "BlackFrameCorner"
  757. BlackFrameCorner.Parent = BlackFrame
  758.  
  759. ChangeAvatarText.Name = "ChangeAvatarText"
  760. ChangeAvatarText.Parent = BlackFrame
  761. ChangeAvatarText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  762. ChangeAvatarText.BackgroundTransparency = 1.000
  763. ChangeAvatarText.Size = UDim2.new(0, 71, 0, 71)
  764. ChangeAvatarText.Font = Enum.Font.GothamBold
  765. ChangeAvatarText.Text = "CHAGNE AVATAR"
  766. ChangeAvatarText.TextColor3 = Color3.fromRGB(255, 255, 255)
  767. ChangeAvatarText.TextSize = 11.000
  768. ChangeAvatarText.TextWrapped = true
  769.  
  770. SearchIcoFrame.Name = "SearchIcoFrame"
  771. SearchIcoFrame.Parent = UserPanelUserIcon
  772. SearchIcoFrame.BackgroundColor3 = Color3.fromRGB(222, 222, 222)
  773. SearchIcoFrame.Position = UDim2.new(0.657999992, 0, 0, 0)
  774. SearchIcoFrame.Size = UDim2.new(0, 20, 0, 20)
  775.  
  776. SearchIcoFrameCorner.CornerRadius = UDim.new(1, 8)
  777. SearchIcoFrameCorner.Name = "SearchIcoFrameCorner"
  778. SearchIcoFrameCorner.Parent = SearchIcoFrame
  779.  
  780. SearchIco.Name = "SearchIco"
  781. SearchIco.Parent = SearchIcoFrame
  782. SearchIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  783. SearchIco.BackgroundTransparency = 1.000
  784. SearchIco.Position = UDim2.new(0.150000006, 0, 0.100000001, 0)
  785. SearchIco.Size = UDim2.new(0, 15, 0, 15)
  786. SearchIco.Image = "http://www.roblox.com/asset/?id=6034407084"
  787. SearchIco.ImageColor3 = Color3.fromRGB(114, 118, 125)
  788.  
  789. UserPanelUserIcon.MouseEnter:Connect(function()
  790. BlackFrame.Visible = true
  791. end)
  792.  
  793. UserPanelUserIcon.MouseLeave:Connect(function()
  794. BlackFrame.Visible = false
  795. end)
  796.  
  797. UserPanelUserIcon.MouseButton1Click:Connect(function()
  798. local NotificationHolder = Instance.new("TextButton")
  799. NotificationHolder.Name = "NotificationHolder"
  800. NotificationHolder.Parent = SettingsHolder
  801. NotificationHolder.BackgroundColor3 = Color3.fromRGB(22,22,22)
  802. NotificationHolder.Position = UDim2.new(-0.00881057233, 0, -0.00266666664, 0)
  803. NotificationHolder.Size = UDim2.new(0, 687, 0, 375)
  804. NotificationHolder.AutoButtonColor = false
  805. NotificationHolder.Font = Enum.Font.SourceSans
  806. NotificationHolder.Text = ""
  807. NotificationHolder.TextColor3 = Color3.fromRGB(0, 0, 0)
  808. NotificationHolder.TextSize = 14.000
  809. NotificationHolder.BackgroundTransparency = 1
  810. NotificationHolder.Visible = true
  811. TweenService:Create(
  812. NotificationHolder,
  813. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  814. {BackgroundTransparency = 0.2}
  815. ):Play()
  816.  
  817.  
  818.  
  819. local AvatarChange = Instance.new("Frame")
  820. local UserChangeCorner = Instance.new("UICorner")
  821. local UnderBar = Instance.new("Frame")
  822. local UnderBarCorner = Instance.new("UICorner")
  823. local UnderBarFrame = Instance.new("Frame")
  824. local Text1 = Instance.new("TextLabel")
  825. local Text2 = Instance.new("TextLabel")
  826. local TextBoxFrame = Instance.new("Frame")
  827. local TextBoxFrameCorner = Instance.new("UICorner")
  828. local TextBoxFrame1 = Instance.new("Frame")
  829. local TextBoxFrame1Corner = Instance.new("UICorner")
  830. local AvatarTextbox = Instance.new("TextBox")
  831. local ChangeBtn = Instance.new("TextButton")
  832. local ChangeCorner = Instance.new("UICorner")
  833. local CloseBtn2 = Instance.new("TextButton")
  834. local Close2Icon = Instance.new("ImageLabel")
  835. local CloseBtn1 = Instance.new("TextButton")
  836. local CloseBtn1Corner = Instance.new("UICorner")
  837. local ResetBtn = Instance.new("TextButton")
  838. local ResetCorner = Instance.new("UICorner")
  839.  
  840.  
  841. AvatarChange.Name = "AvatarChange"
  842. AvatarChange.Parent = NotificationHolder
  843. AvatarChange.AnchorPoint = Vector2.new(0.5, 0.5)
  844. AvatarChange.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  845. AvatarChange.ClipsDescendants = true
  846. AvatarChange.Position = UDim2.new(0.513071597, 0, 0.4746176, 0)
  847. AvatarChange.Size = UDim2.new(0, 0, 0, 0)
  848. AvatarChange.BackgroundTransparency = 1
  849.  
  850. AvatarChange:TweenSize(UDim2.new(0, 346, 0, 198), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  851. TweenService:Create(
  852. AvatarChange,
  853. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  854. {BackgroundTransparency = 0}
  855. ):Play()
  856.  
  857.  
  858. UserChangeCorner.CornerRadius = UDim.new(0, 5)
  859. UserChangeCorner.Name = "UserChangeCorner"
  860. UserChangeCorner.Parent = AvatarChange
  861.  
  862. UnderBar.Name = "UnderBar"
  863. UnderBar.Parent = AvatarChange
  864. UnderBar.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  865. UnderBar.Position = UDim2.new(-0.000297061284, 0, 0.945048928, 0)
  866. UnderBar.Size = UDim2.new(0, 346, 0, 13)
  867.  
  868. UnderBarCorner.CornerRadius = UDim.new(0, 5)
  869. UnderBarCorner.Name = "UnderBarCorner"
  870. UnderBarCorner.Parent = UnderBar
  871.  
  872. UnderBarFrame.Name = "UnderBarFrame"
  873. UnderBarFrame.Parent = UnderBar
  874. UnderBarFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  875. UnderBarFrame.BorderSizePixel = 0
  876. UnderBarFrame.Position = UDim2.new(-0.000297061284, 0, -2.53846145, 0)
  877. UnderBarFrame.Size = UDim2.new(0, 346, 0, 39)
  878.  
  879. Text1.Name = "Text1"
  880. Text1.Parent = AvatarChange
  881. Text1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  882. Text1.BackgroundTransparency = 1.000
  883. Text1.Position = UDim2.new(-0.000594122568, 0, 0.0202020202, 0)
  884. Text1.Size = UDim2.new(0, 346, 0, 68)
  885. Text1.Font = Enum.Font.GothamSemibold
  886. Text1.Text = "要更换你的头像吗?"
  887. Text1.TextColor3 = Color3.fromRGB(255, 255, 255)
  888. Text1.TextSize = 20.000
  889.  
  890. Text2.Name = "Text2"
  891. Text2.Parent = AvatarChange
  892. Text2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  893. Text2.BackgroundTransparency = 1.000
  894. Text2.Position = UDim2.new(-0.000594122568, 0, 0.141587839, 0)
  895. Text2.Size = UDim2.new(0, 346, 0, 63)
  896. Text2.Font = Enum.Font.Gotham
  897. Text2.Text = "输入roblox的图片链接(不知道是啥建议别用)"
  898. Text2.TextColor3 = Color3.fromRGB(171, 172, 176)
  899. Text2.TextSize = 14.000
  900.  
  901. TextBoxFrame.Name = "TextBoxFrame"
  902. TextBoxFrame.Parent = AvatarChange
  903. TextBoxFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  904. TextBoxFrame.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  905. TextBoxFrame.Position = UDim2.new(0.49710983, 0, 0.560606062, 0)
  906. TextBoxFrame.Size = UDim2.new(0, 319, 0, 38)
  907.  
  908. TextBoxFrameCorner.CornerRadius = UDim.new(0, 3)
  909. TextBoxFrameCorner.Name = "TextBoxFrameCorner"
  910. TextBoxFrameCorner.Parent = TextBoxFrame
  911.  
  912. TextBoxFrame1.Name = "TextBoxFrame1"
  913. TextBoxFrame1.Parent = TextBoxFrame
  914. TextBoxFrame1.AnchorPoint = Vector2.new(0.5, 0.5)
  915. TextBoxFrame1.BackgroundColor3 = Color3.fromRGB(48, 51, 57)
  916. TextBoxFrame1.ClipsDescendants = true
  917. TextBoxFrame1.Position = UDim2.new(0.5, 0, 0.5, 0)
  918. TextBoxFrame1.Size = UDim2.new(0, 317, 0, 36)
  919.  
  920. TextBoxFrame1Corner.CornerRadius = UDim.new(0, 3)
  921. TextBoxFrame1Corner.Name = "TextBoxFrame1Corner"
  922. TextBoxFrame1Corner.Parent = TextBoxFrame1
  923.  
  924. AvatarTextbox.Name = "AvatarTextbox"
  925. AvatarTextbox.Parent = TextBoxFrame1
  926. AvatarTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  927. AvatarTextbox.BackgroundTransparency = 1.000
  928. AvatarTextbox.Position = UDim2.new(0.0378548913, 0, 0, 0)
  929. AvatarTextbox.Size = UDim2.new(0, 293, 0, 37)
  930. AvatarTextbox.Font = Enum.Font.Gotham
  931. AvatarTextbox.Text = ""
  932. AvatarTextbox.TextColor3 = Color3.fromRGB(193, 195, 197)
  933. AvatarTextbox.TextSize = 14.000
  934. AvatarTextbox.TextXAlignment = Enum.TextXAlignment.Left
  935.  
  936. ChangeBtn.Name = "ChangeBtn"
  937. ChangeBtn.Parent = AvatarChange
  938. ChangeBtn.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  939. ChangeBtn.Position = UDim2.new(0.749670506, 0, 0.823232353, 0)
  940. ChangeBtn.Size = UDim2.new(0, 76, 0, 27)
  941. ChangeBtn.Font = Enum.Font.Gotham
  942. ChangeBtn.Text = "确定"
  943. ChangeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  944. ChangeBtn.TextSize = 13.000
  945. ChangeBtn.AutoButtonColor = false
  946.  
  947. ChangeBtn.MouseEnter:Connect(function()
  948. TweenService:Create(
  949. ChangeBtn,
  950. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  951. {BackgroundColor3 = Color3.fromRGB(103,123,196)}
  952. ):Play()
  953. end)
  954.  
  955. ChangeBtn.MouseLeave:Connect(function()
  956. TweenService:Create(
  957. ChangeBtn,
  958. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  959. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  960. ):Play()
  961. end)
  962.  
  963. ChangeBtn.MouseButton1Click:Connect(function()
  964. pfp = tostring(AvatarTextbox.Text)
  965. UserImage.Image = pfp
  966. UserPanelUserImage.Image = pfp
  967. SaveInfo()
  968.  
  969. AvatarChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  970. TweenService:Create(
  971. AvatarChange,
  972. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  973. {BackgroundTransparency = 1}
  974. ):Play()
  975. TweenService:Create(
  976. NotificationHolder,
  977. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  978. {BackgroundTransparency = 1}
  979. ):Play()
  980. wait(.2)
  981. NotificationHolder:Destroy()
  982. end)
  983.  
  984.  
  985.  
  986. ChangeCorner.CornerRadius = UDim.new(0, 4)
  987. ChangeCorner.Name = "ChangeCorner"
  988. ChangeCorner.Parent = ChangeBtn
  989.  
  990. CloseBtn2.Name = "CloseBtn2"
  991. CloseBtn2.Parent = AvatarChange
  992. CloseBtn2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  993. CloseBtn2.BackgroundTransparency = 1.000
  994. CloseBtn2.Position = UDim2.new(0.898000002, 0, 0, 0)
  995. CloseBtn2.Size = UDim2.new(0, 26, 0, 26)
  996. CloseBtn2.Font = Enum.Font.Gotham
  997. CloseBtn2.Text = ""
  998. CloseBtn2.TextColor3 = Color3.fromRGB(255, 255, 255)
  999. CloseBtn2.TextSize = 14.000
  1000.  
  1001. Close2Icon.Name = "Close2Icon"
  1002. Close2Icon.Parent = CloseBtn2
  1003. Close2Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1004. Close2Icon.BackgroundTransparency = 1.000
  1005. Close2Icon.Position = UDim2.new(-0.0384615399, 0, 0.312910825, 0)
  1006. Close2Icon.Size = UDim2.new(0, 25, 0, 25)
  1007. Close2Icon.Image = "http://www.roblox.com/asset/?id=6035047409"
  1008. Close2Icon.ImageColor3 = Color3.fromRGB(119, 122, 127)
  1009.  
  1010. CloseBtn1.Name = "CloseBtn1"
  1011. CloseBtn1.Parent = AvatarChange
  1012. CloseBtn1.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  1013. CloseBtn1.BackgroundTransparency = 1.000
  1014. CloseBtn1.Position = UDim2.new(0.495000005, 0, 0.823000014, 0)
  1015. CloseBtn1.Size = UDim2.new(0, 76, 0, 27)
  1016. CloseBtn1.Font = Enum.Font.Gotham
  1017. CloseBtn1.Text = "取消"
  1018. CloseBtn1.TextColor3 = Color3.fromRGB(255, 255, 255)
  1019. CloseBtn1.TextSize = 13.000
  1020.  
  1021. CloseBtn1Corner.CornerRadius = UDim.new(0, 4)
  1022. CloseBtn1Corner.Name = "CloseBtn1Corner"
  1023. CloseBtn1Corner.Parent = CloseBtn1
  1024.  
  1025. ResetBtn.Name = "ResetBtn"
  1026. ResetBtn.Parent = AvatarChange
  1027. ResetBtn.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  1028. ResetBtn.BackgroundTransparency = 1.000
  1029. ResetBtn.Position = UDim2.new(0.260895967, 0, 0.823000014, 0)
  1030. ResetBtn.Size = UDim2.new(0, 76, 0, 27)
  1031. ResetBtn.Font = Enum.Font.Gotham
  1032. ResetBtn.Text = "重置"
  1033. ResetBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  1034. ResetBtn.TextSize = 13.000
  1035.  
  1036. ResetBtn.MouseButton1Click:Connect(function()
  1037. pfp = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=420&height=420&format=png"
  1038. UserImage.Image = pfp
  1039. UserPanelUserImage.Image = pfp
  1040. SaveInfo()
  1041.  
  1042. AvatarChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1043. TweenService:Create(
  1044. AvatarChange,
  1045. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1046. {BackgroundTransparency = 1}
  1047. ):Play()
  1048. TweenService:Create(
  1049. NotificationHolder,
  1050. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1051. {BackgroundTransparency = 1}
  1052. ):Play()
  1053. wait(.2)
  1054. NotificationHolder:Destroy()
  1055. end)
  1056.  
  1057. ResetCorner.CornerRadius = UDim.new(0, 4)
  1058. ResetCorner.Name = "ResetCorner"
  1059. ResetCorner.Parent = ResetBtn
  1060.  
  1061. CloseBtn1.MouseButton1Click:Connect(function()
  1062. AvatarChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1063. TweenService:Create(
  1064. AvatarChange,
  1065. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1066. {BackgroundTransparency = 1}
  1067. ):Play()
  1068. TweenService:Create(
  1069. NotificationHolder,
  1070. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1071. {BackgroundTransparency = 1}
  1072. ):Play()
  1073. wait(.2)
  1074. NotificationHolder:Destroy()
  1075. end)
  1076.  
  1077. CloseBtn2.MouseButton1Click:Connect(function()
  1078. AvatarChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1079. TweenService:Create(
  1080. AvatarChange,
  1081. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1082. {BackgroundTransparency = 1}
  1083. ):Play()
  1084. TweenService:Create(
  1085. NotificationHolder,
  1086. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1087. {BackgroundTransparency = 1}
  1088. ):Play()
  1089. wait(.2)
  1090. NotificationHolder:Destroy()
  1091. end)
  1092.  
  1093. CloseBtn2.MouseEnter:Connect(function()
  1094. TweenService:Create(
  1095. Close2Icon,
  1096. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1097. {ImageColor3 = Color3.fromRGB(210,210,210)}
  1098. ):Play()
  1099. end)
  1100.  
  1101. CloseBtn2.MouseLeave:Connect(function()
  1102. TweenService:Create(
  1103. Close2Icon,
  1104. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1105. {ImageColor3 = Color3.fromRGB(119, 122, 127)}
  1106. ):Play()
  1107. end)
  1108.  
  1109.  
  1110. AvatarTextbox.Focused:Connect(function()
  1111. TweenService:Create(
  1112. TextBoxFrame,
  1113. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1114. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1115. ):Play()
  1116. end)
  1117.  
  1118. AvatarTextbox.FocusLost:Connect(function()
  1119. TweenService:Create(
  1120. TextBoxFrame,
  1121. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1122. {BackgroundColor3 = Color3.fromRGB(37, 40, 43)}
  1123. ):Play()
  1124. end)
  1125.  
  1126.  
  1127. end)
  1128.  
  1129. UserPanelUserTag.Name = "UserPanelUserTag"
  1130. UserPanelUserTag.Parent = UserPanel
  1131. UserPanelUserTag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1132. UserPanelUserTag.BackgroundTransparency = 1.000
  1133. UserPanelUserTag.Position = UDim2.new(0.271143615, 0, 0.231804818, 0)
  1134. UserPanelUserTag.Size = UDim2.new(0, 113, 0, 19)
  1135.  
  1136. UserPanelUser.Name = "UserPanelUser"
  1137. UserPanelUser.Parent = UserPanelUserTag
  1138. UserPanelUser.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1139. UserPanelUser.BackgroundTransparency = 1.000
  1140. UserPanelUser.Font = Enum.Font.GothamSemibold
  1141. UserPanelUser.TextColor3 = Color3.fromRGB(255, 255, 255)
  1142. UserPanelUser.TextSize = 17.000
  1143. UserPanelUser.TextXAlignment = Enum.TextXAlignment.Left
  1144. UserPanelUser.Text = user
  1145. UserPanelUser.Size = UDim2.new(0, UserPanelUser.TextBounds.X + 2, 0, 19)
  1146.  
  1147.  
  1148. UserPanelUserTagLayout.Name = "UserPanelUserTagLayout"
  1149. UserPanelUserTagLayout.Parent = UserPanelUserTag
  1150. UserPanelUserTagLayout.FillDirection = Enum.FillDirection.Horizontal
  1151. UserPanelUserTagLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1152.  
  1153. UserPanelTag.Name = "UserPanelTag"
  1154. UserPanelTag.Parent = UserPanelUserTag
  1155. UserPanelTag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1156. UserPanelTag.BackgroundTransparency = 1.000
  1157. UserPanelTag.Position = UDim2.new(0.0419999994, 0, 0.493999988, 0)
  1158. UserPanelTag.Size = UDim2.new(0, 65, 0, 19)
  1159. UserPanelTag.Font = Enum.Font.Gotham
  1160. UserPanelTag.Text = "#" .. tag
  1161. UserPanelTag.TextColor3 = Color3.fromRGB(184, 186, 189)
  1162. UserPanelTag.TextSize = 17.000
  1163. UserPanelTag.TextXAlignment = Enum.TextXAlignment.Left
  1164.  
  1165. UserPanelCorner.Name = "UserPanelCorner"
  1166. UserPanelCorner.Parent = UserPanel
  1167.  
  1168. LeftFrame.Name = "LeftFrame"
  1169. LeftFrame.Parent = SettingsHolder
  1170. LeftFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1171. LeftFrame.BorderSizePixel = 0
  1172. LeftFrame.Position = UDim2.new(0, 0, -0.000303059904, 0)
  1173. LeftFrame.Size = UDim2.new(0, 233, 0, 375)
  1174.  
  1175. MyAccountBtn.Name = "MyAccountBtn"
  1176. MyAccountBtn.Parent = LeftFrame
  1177. MyAccountBtn.BackgroundColor3 = Color3.fromRGB(57, 60, 67)
  1178. MyAccountBtn.BorderSizePixel = 0
  1179. MyAccountBtn.Position = UDim2.new(0.271232396, 0, 0.101614028, 0)
  1180. MyAccountBtn.Size = UDim2.new(0, 160, 0, 30)
  1181. MyAccountBtn.AutoButtonColor = false
  1182. MyAccountBtn.Font = Enum.Font.SourceSans
  1183. MyAccountBtn.Text = ""
  1184. MyAccountBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  1185. MyAccountBtn.TextSize = 14.000
  1186.  
  1187. MyAccountBtnCorner.CornerRadius = UDim.new(0, 6)
  1188. MyAccountBtnCorner.Name = "MyAccountBtnCorner"
  1189. MyAccountBtnCorner.Parent = MyAccountBtn
  1190.  
  1191. MyAccountBtnTitle.Name = "MyAccountBtnTitle"
  1192. MyAccountBtnTitle.Parent = MyAccountBtn
  1193. MyAccountBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1194. MyAccountBtnTitle.BackgroundTransparency = 1.000
  1195. MyAccountBtnTitle.BorderSizePixel = 0
  1196. MyAccountBtnTitle.Position = UDim2.new(0.0759999976, 0, -0.166999996, 0)
  1197. MyAccountBtnTitle.Size = UDim2.new(0, 95, 0, 39)
  1198. MyAccountBtnTitle.Font = Enum.Font.GothamSemibold
  1199. MyAccountBtnTitle.Text = "我的账号"
  1200. MyAccountBtnTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1201. MyAccountBtnTitle.TextSize = 14.000
  1202. MyAccountBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  1203.  
  1204. SettingsTitle.Name = "SettingsTitle"
  1205. SettingsTitle.Parent = LeftFrame
  1206. SettingsTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1207. SettingsTitle.BackgroundTransparency = 1.000
  1208. SettingsTitle.Position = UDim2.new(0.308999985, 0, 0.0450000018, 0)
  1209. SettingsTitle.Size = UDim2.new(0, 65, 0, 19)
  1210. SettingsTitle.Font = Enum.Font.GothamBlack
  1211. SettingsTitle.Text = "设置"
  1212. SettingsTitle.TextColor3 = Color3.fromRGB(142, 146, 152)
  1213. SettingsTitle.TextSize = 11.000
  1214. SettingsTitle.TextXAlignment = Enum.TextXAlignment.Left
  1215.  
  1216. DiscordInfo.Name = "DiscordInfo"
  1217. DiscordInfo.Parent = LeftFrame
  1218. DiscordInfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1219. DiscordInfo.BackgroundTransparency = 1.000
  1220. DiscordInfo.Position = UDim2.new(0.304721028, 0, 0.821333349, 0)
  1221. DiscordInfo.Size = UDim2.new(0, 133, 0, 44)
  1222. DiscordInfo.Font = Enum.Font.Gotham
  1223. DiscordInfo.Text = "版本 1.0.0 (00001) 主机 0.0.0.1 roblox lua "
  1224. DiscordInfo.TextColor3 = Color3.fromRGB(101, 108, 116)
  1225. DiscordInfo.TextSize = 13.000
  1226. DiscordInfo.TextWrapped = true
  1227. DiscordInfo.TextXAlignment = Enum.TextXAlignment.Left
  1228. DiscordInfo.TextYAlignment = Enum.TextYAlignment.Top
  1229.  
  1230. CurrentSettingOpen.Name = "CurrentSettingOpen"
  1231. CurrentSettingOpen.Parent = LeftFrame
  1232. CurrentSettingOpen.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1233. CurrentSettingOpen.BackgroundTransparency = 1.000
  1234. CurrentSettingOpen.Position = UDim2.new(1.07294846, 0, 0.0450000018, 0)
  1235. CurrentSettingOpen.Size = UDim2.new(0, 65, 0, 19)
  1236. CurrentSettingOpen.Font = Enum.Font.GothamBlack
  1237. CurrentSettingOpen.Text = "我的账号"
  1238. CurrentSettingOpen.TextColor3 = Color3.fromRGB(255, 255, 255)
  1239. CurrentSettingOpen.TextSize = 14.000
  1240. CurrentSettingOpen.TextXAlignment = Enum.TextXAlignment.Left
  1241.  
  1242.  
  1243. SettingsOpenBtn.MouseButton1Click:Connect(function ()
  1244. settingsopened = true
  1245. TopFrameHolder.Visible = false
  1246. ServersHoldFrame.Visible = false
  1247. SettingsFrame.Visible = true
  1248. SettingsHolder:TweenSize(UDim2.new(0, 681, 0, 375), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  1249. Settings.BackgroundTransparency = 1
  1250. TweenService:Create(
  1251. Settings,
  1252. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1253. {BackgroundTransparency = 0}
  1254. ):Play()
  1255. for i,v in next, SettingsHolder:GetChildren() do
  1256. v.BackgroundTransparency = 1
  1257. TweenService:Create(
  1258. v,
  1259. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1260. {BackgroundTransparency = 0}
  1261. ):Play()
  1262. end
  1263. end)
  1264.  
  1265. EditBtn.MouseButton1Click:Connect(function()
  1266. local NotificationHolder = Instance.new("TextButton")
  1267. NotificationHolder.Name = "NotificationHolder"
  1268. NotificationHolder.Parent = SettingsHolder
  1269. NotificationHolder.BackgroundColor3 = Color3.fromRGB(22,22,22)
  1270. NotificationHolder.Position = UDim2.new(-0.00881057233, 0, -0.00266666664, 0)
  1271. NotificationHolder.Size = UDim2.new(0, 687, 0, 375)
  1272. NotificationHolder.AutoButtonColor = false
  1273. NotificationHolder.Font = Enum.Font.SourceSans
  1274. NotificationHolder.Text = ""
  1275. NotificationHolder.TextColor3 = Color3.fromRGB(0, 0, 0)
  1276. NotificationHolder.TextSize = 14.000
  1277. NotificationHolder.BackgroundTransparency = 1
  1278. NotificationHolder.Visible = true
  1279. TweenService:Create(
  1280. NotificationHolder,
  1281. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1282. {BackgroundTransparency = 0.2}
  1283. ):Play()
  1284.  
  1285. local UserChange = Instance.new("Frame")
  1286. local UserChangeCorner = Instance.new("UICorner")
  1287. local UnderBar = Instance.new("Frame")
  1288. local UnderBarCorner = Instance.new("UICorner")
  1289. local UnderBarFrame = Instance.new("Frame")
  1290. local Text1 = Instance.new("TextLabel")
  1291. local Text2 = Instance.new("TextLabel")
  1292. local TextBoxFrame = Instance.new("Frame")
  1293. local TextBoxFrameCorner = Instance.new("UICorner")
  1294. local TextBoxFrame1 = Instance.new("Frame")
  1295. local TextBoxFrame1Corner = Instance.new("UICorner")
  1296. local UsernameTextbox = Instance.new("TextBox")
  1297. local Seperator = Instance.new("Frame")
  1298. local HashtagLabel = Instance.new("TextLabel")
  1299. local TagTextbox = Instance.new("TextBox")
  1300. local ChangeBtn = Instance.new("TextButton")
  1301. local ChangeCorner = Instance.new("UICorner")
  1302. local CloseBtn2 = Instance.new("TextButton")
  1303. local Close2Icon = Instance.new("ImageLabel")
  1304. local CloseBtn1 = Instance.new("TextButton")
  1305. local CloseBtn1Corner = Instance.new("UICorner")
  1306.  
  1307. UserChange.Name = "UserChange"
  1308. UserChange.Parent = NotificationHolder
  1309. UserChange.AnchorPoint = Vector2.new(0.5, 0.5)
  1310. UserChange.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  1311. UserChange.ClipsDescendants = true
  1312. UserChange.Position = UDim2.new(0.513071597, 0, 0.4746176, 0)
  1313. UserChange.Size = UDim2.new(0, 0, 0, 0)
  1314. UserChange.BackgroundTransparency = 1
  1315.  
  1316. UserChange:TweenSize(UDim2.new(0, 346, 0, 198), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1317. TweenService:Create(
  1318. UserChange,
  1319. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1320. {BackgroundTransparency = 0}
  1321. ):Play()
  1322.  
  1323. UserChangeCorner.CornerRadius = UDim.new(0, 5)
  1324. UserChangeCorner.Name = "UserChangeCorner"
  1325. UserChangeCorner.Parent = UserChange
  1326.  
  1327. UnderBar.Name = "UnderBar"
  1328. UnderBar.Parent = UserChange
  1329. UnderBar.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1330. UnderBar.Position = UDim2.new(-0.000297061284, 0, 0.945048928, 0)
  1331. UnderBar.Size = UDim2.new(0, 346, 0, 13)
  1332.  
  1333. UnderBarCorner.CornerRadius = UDim.new(0, 5)
  1334. UnderBarCorner.Name = "UnderBarCorner"
  1335. UnderBarCorner.Parent = UnderBar
  1336.  
  1337. UnderBarFrame.Name = "UnderBarFrame"
  1338. UnderBarFrame.Parent = UnderBar
  1339. UnderBarFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1340. UnderBarFrame.BorderSizePixel = 0
  1341. UnderBarFrame.Position = UDim2.new(-0.000297061284, 0, -2.53846145, 0)
  1342. UnderBarFrame.Size = UDim2.new(0, 346, 0, 39)
  1343.  
  1344. Text1.Name = "Text1"
  1345. Text1.Parent = UserChange
  1346. Text1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1347. Text1.BackgroundTransparency = 1.000
  1348. Text1.Position = UDim2.new(-0.000594122568, 0, 0.0202020202, 0)
  1349. Text1.Size = UDim2.new(0, 346, 0, 68)
  1350. Text1.Font = Enum.Font.GothamSemibold
  1351. Text1.Text = "要更换你的名称?"
  1352. Text1.TextColor3 = Color3.fromRGB(255, 255, 255)
  1353. Text1.TextSize = 20.000
  1354.  
  1355. Text2.Name = "Text2"
  1356. Text2.Parent = UserChange
  1357. Text2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1358. Text2.BackgroundTransparency = 1.000
  1359. Text2.Position = UDim2.new(-0.000594122568, 0, 0.141587839, 0)
  1360. Text2.Size = UDim2.new(0, 346, 0, 63)
  1361. Text2.Font = Enum.Font.Gotham
  1362. Text2.Text = "输入新用户名"
  1363. Text2.TextColor3 = Color3.fromRGB(171, 172, 176)
  1364. Text2.TextSize = 14.000
  1365.  
  1366. TextBoxFrame.Name = "TextBoxFrame"
  1367. TextBoxFrame.Parent = UserChange
  1368. TextBoxFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  1369. TextBoxFrame.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  1370. TextBoxFrame.Position = UDim2.new(0.49710983, 0, 0.560606062, 0)
  1371. TextBoxFrame.Size = UDim2.new(0, 319, 0, 38)
  1372.  
  1373. TextBoxFrameCorner.CornerRadius = UDim.new(0, 3)
  1374. TextBoxFrameCorner.Name = "TextBoxFrameCorner"
  1375. TextBoxFrameCorner.Parent = TextBoxFrame
  1376.  
  1377. TextBoxFrame1.Name = "TextBoxFrame1"
  1378. TextBoxFrame1.Parent = TextBoxFrame
  1379. TextBoxFrame1.AnchorPoint = Vector2.new(0.5, 0.5)
  1380. TextBoxFrame1.BackgroundColor3 = Color3.fromRGB(48, 51, 57)
  1381. TextBoxFrame1.Position = UDim2.new(0.5, 0, 0.5, 0)
  1382. TextBoxFrame1.Size = UDim2.new(0, 317, 0, 36)
  1383.  
  1384. TextBoxFrame1Corner.CornerRadius = UDim.new(0, 3)
  1385. TextBoxFrame1Corner.Name = "TextBoxFrame1Corner"
  1386. TextBoxFrame1Corner.Parent = TextBoxFrame1
  1387.  
  1388. UsernameTextbox.Name = "UsernameTextbox"
  1389. UsernameTextbox.Parent = TextBoxFrame1
  1390. UsernameTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1391. UsernameTextbox.BackgroundTransparency = 1.000
  1392. UsernameTextbox.Position = UDim2.new(0.0378548913, 0, 0, 0)
  1393. UsernameTextbox.Size = UDim2.new(0, 221, 0, 37)
  1394. UsernameTextbox.Font = Enum.Font.Gotham
  1395. UsernameTextbox.Text = user
  1396. UsernameTextbox.TextColor3 = Color3.fromRGB(193, 195, 197)
  1397. UsernameTextbox.TextSize = 14.000
  1398. UsernameTextbox.TextXAlignment = Enum.TextXAlignment.Left
  1399.  
  1400. Seperator.Name = "Seperator"
  1401. Seperator.Parent = TextBoxFrame1
  1402. Seperator.AnchorPoint = Vector2.new(0.5, 0.5)
  1403. Seperator.BackgroundColor3 = Color3.fromRGB(64, 68, 73)
  1404. Seperator.BorderSizePixel = 0
  1405. Seperator.Position = UDim2.new(0.753000021, 0, 0.500999987, 0)
  1406. Seperator.Size = UDim2.new(0, 1, 0, 25)
  1407.  
  1408. HashtagLabel.Name = "HashtagLabel"
  1409. HashtagLabel.Parent = TextBoxFrame1
  1410. HashtagLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1411. HashtagLabel.BackgroundTransparency = 1.000
  1412. HashtagLabel.Position = UDim2.new(0.765877604, 0, -0.0546001866, 0)
  1413. HashtagLabel.Size = UDim2.new(0, 23, 0, 37)
  1414. HashtagLabel.Font = Enum.Font.Gotham
  1415. HashtagLabel.Text = "#"
  1416. HashtagLabel.TextColor3 = Color3.fromRGB(79, 82, 88)
  1417. HashtagLabel.TextSize = 16.000
  1418.  
  1419. TagTextbox.Name = "TagTextbox"
  1420. TagTextbox.Parent = TextBoxFrame1
  1421. TagTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1422. TagTextbox.BackgroundTransparency = 1.000
  1423. TagTextbox.Position = UDim2.new(0.824999988, 0, -0.0280000009, 0)
  1424. TagTextbox.Size = UDim2.new(0, 59, 0, 38)
  1425. TagTextbox.Font = Enum.Font.Gotham
  1426. TagTextbox.PlaceholderColor3 = Color3.fromRGB(210, 211, 212)
  1427. TagTextbox.Text = tag
  1428. TagTextbox.TextColor3 = Color3.fromRGB(193, 195, 197)
  1429. TagTextbox.TextSize = 14.000
  1430. TagTextbox.TextXAlignment = Enum.TextXAlignment.Left
  1431.  
  1432. ChangeBtn.Name = "ChangeBtn"
  1433. ChangeBtn.Parent = UserChange
  1434. ChangeBtn.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  1435. ChangeBtn.Position = UDim2.new(0.749670506, 0, 0.823232353, 0)
  1436. ChangeBtn.Size = UDim2.new(0, 76, 0, 27)
  1437. ChangeBtn.Font = Enum.Font.Gotham
  1438. ChangeBtn.Text = "确定"
  1439. ChangeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  1440. ChangeBtn.TextSize = 13.000
  1441. ChangeBtn.AutoButtonColor = false
  1442.  
  1443. ChangeBtn.MouseEnter:Connect(function()
  1444. TweenService:Create(
  1445. ChangeBtn,
  1446. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1447. {BackgroundColor3 = Color3.fromRGB(103,123,196)}
  1448. ):Play()
  1449. end)
  1450.  
  1451. ChangeBtn.MouseLeave:Connect(function()
  1452. TweenService:Create(
  1453. ChangeBtn,
  1454. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1455. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1456. ):Play()
  1457. end)
  1458.  
  1459. ChangeBtn.MouseButton1Click:Connect(function()
  1460. user = UsernameTextbox.Text
  1461. tag = TagTextbox.Text
  1462. UserSettingsPadUser.Text = user
  1463. UserSettingsPadUser.Size = UDim2.new(0, UserSettingsPadUser.TextBounds.X + 2, 0, 19)
  1464. UserSettingsPadTag.Text = "#" .. tag
  1465. UserPanelTag.Text = "#" .. tag
  1466. UserPanelUser.Text = user
  1467. UserPanelUser.Size = UDim2.new(0, UserPanelUser.TextBounds.X + 2, 0, 19)
  1468. UserName.Text = user
  1469. UserTag.Text = "#" .. tag
  1470. SaveInfo()
  1471.  
  1472. UserChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1473. TweenService:Create(
  1474. UserChange,
  1475. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1476. {BackgroundTransparency = 1}
  1477. ):Play()
  1478. TweenService:Create(
  1479. NotificationHolder,
  1480. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1481. {BackgroundTransparency = 1}
  1482. ):Play()
  1483. wait(.2)
  1484. NotificationHolder:Destroy()
  1485. end)
  1486.  
  1487. ChangeCorner.CornerRadius = UDim.new(0, 4)
  1488. ChangeCorner.Name = "ChangeCorner"
  1489. ChangeCorner.Parent = ChangeBtn
  1490.  
  1491. CloseBtn2.Name = "CloseBtn2"
  1492. CloseBtn2.Parent = UserChange
  1493. CloseBtn2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1494. CloseBtn2.BackgroundTransparency = 1.000
  1495. CloseBtn2.Position = UDim2.new(0.898000002, 0, 0, 0)
  1496. CloseBtn2.Size = UDim2.new(0, 26, 0, 26)
  1497. CloseBtn2.Font = Enum.Font.Gotham
  1498. CloseBtn2.Text = ""
  1499. CloseBtn2.TextColor3 = Color3.fromRGB(255, 255, 255)
  1500. CloseBtn2.TextSize = 14.000
  1501.  
  1502. Close2Icon.Name = "Close2Icon"
  1503. Close2Icon.Parent = CloseBtn2
  1504. Close2Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1505. Close2Icon.BackgroundTransparency = 1.000
  1506. Close2Icon.Position = UDim2.new(-0.0384615399, 0, 0.312910825, 0)
  1507. Close2Icon.Size = UDim2.new(0, 25, 0, 25)
  1508. Close2Icon.Image = "http://www.roblox.com/asset/?id=6035047409"
  1509. Close2Icon.ImageColor3 = Color3.fromRGB(119, 122, 127)
  1510.  
  1511. CloseBtn1.Name = "CloseBtn1"
  1512. CloseBtn1.Parent = UserChange
  1513. CloseBtn1.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  1514. CloseBtn1.BackgroundTransparency = 1.000
  1515. CloseBtn1.Position = UDim2.new(0.495000005, 0, 0.823000014, 0)
  1516. CloseBtn1.Size = UDim2.new(0, 76, 0, 27)
  1517. CloseBtn1.Font = Enum.Font.Gotham
  1518. CloseBtn1.Text = "取消"
  1519. CloseBtn1.TextColor3 = Color3.fromRGB(255, 255, 255)
  1520. CloseBtn1.TextSize = 13.000
  1521.  
  1522. CloseBtn1Corner.CornerRadius = UDim.new(0, 4)
  1523. CloseBtn1Corner.Name = "CloseBtn1Corner"
  1524. CloseBtn1Corner.Parent = CloseBtn1
  1525.  
  1526. CloseBtn1.MouseButton1Click:Connect(function()
  1527. UserChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1528. TweenService:Create(
  1529. UserChange,
  1530. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1531. {BackgroundTransparency = 1}
  1532. ):Play()
  1533. TweenService:Create(
  1534. NotificationHolder,
  1535. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1536. {BackgroundTransparency = 1}
  1537. ):Play()
  1538. wait(.2)
  1539. NotificationHolder:Destroy()
  1540. end)
  1541.  
  1542. CloseBtn2.MouseButton1Click:Connect(function()
  1543. UserChange:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1544. TweenService:Create(
  1545. UserChange,
  1546. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1547. {BackgroundTransparency = 1}
  1548. ):Play()
  1549. TweenService:Create(
  1550. NotificationHolder,
  1551. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1552. {BackgroundTransparency = 1}
  1553. ):Play()
  1554. wait(.2)
  1555. NotificationHolder:Destroy()
  1556. end)
  1557.  
  1558. CloseBtn2.MouseEnter:Connect(function()
  1559. TweenService:Create(
  1560. Close2Icon,
  1561. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1562. {ImageColor3 = Color3.fromRGB(210,210,210)}
  1563. ):Play()
  1564. end)
  1565.  
  1566. CloseBtn2.MouseLeave:Connect(function()
  1567. TweenService:Create(
  1568. Close2Icon,
  1569. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1570. {ImageColor3 = Color3.fromRGB(119, 122, 127)}
  1571. ):Play()
  1572. end)
  1573.  
  1574. TagTextbox.Changed:Connect(function()
  1575. TagTextbox.Text = TagTextbox.Text:sub(1,4)
  1576. end)
  1577.  
  1578. TagTextbox:GetPropertyChangedSignal("Text"):Connect(function()
  1579. TagTextbox.Text = TagTextbox.Text:gsub('%D+', '');
  1580. end)
  1581.  
  1582. UsernameTextbox.Changed:Connect(function()
  1583. UsernameTextbox.Text = UsernameTextbox.Text:sub(1,13)
  1584. end)
  1585.  
  1586. TagTextbox.Focused:Connect(function()
  1587. TweenService:Create(
  1588. TextBoxFrame,
  1589. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1590. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1591. ):Play()
  1592. end)
  1593.  
  1594. TagTextbox.FocusLost:Connect(function()
  1595. TweenService:Create(
  1596. TextBoxFrame,
  1597. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1598. {BackgroundColor3 = Color3.fromRGB(37, 40, 43)}
  1599. ):Play()
  1600. end)
  1601.  
  1602. UsernameTextbox.Focused:Connect(function()
  1603. TweenService:Create(
  1604. TextBoxFrame,
  1605. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1606. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1607. ):Play()
  1608. end)
  1609.  
  1610. UsernameTextbox.FocusLost:Connect(function()
  1611. TweenService:Create(
  1612. TextBoxFrame,
  1613. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1614. {BackgroundColor3 = Color3.fromRGB(37, 40, 43)}
  1615. ):Play()
  1616. end)
  1617.  
  1618. end)
  1619.  
  1620. function bailib:Notification(titletext, desctext, btntext)
  1621. local NotificationHolderMain = Instance.new("TextButton")
  1622. local Notification = Instance.new("Frame")
  1623. local NotificationCorner = Instance.new("UICorner")
  1624. local UnderBar = Instance.new("Frame")
  1625. local UnderBarCorner = Instance.new("UICorner")
  1626. local UnderBarFrame = Instance.new("Frame")
  1627. local Text1 = Instance.new("TextLabel")
  1628. local Text2 = Instance.new("TextLabel")
  1629. local AlrightBtn = Instance.new("TextButton")
  1630. local AlrightCorner = Instance.new("UICorner")
  1631.  
  1632. NotificationHolderMain.Name = "NotificationHolderMain"
  1633. NotificationHolderMain.Parent = MainFrame
  1634. NotificationHolderMain.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  1635. NotificationHolderMain.BackgroundTransparency = 1
  1636. NotificationHolderMain.BorderSizePixel = 0
  1637. NotificationHolderMain.Position = UDim2.new(0, 0, 0.0560000017, 0)
  1638. NotificationHolderMain.Size = UDim2.new(0, 681, 0, 374)
  1639. NotificationHolderMain.AutoButtonColor = false
  1640. NotificationHolderMain.Font = Enum.Font.SourceSans
  1641. NotificationHolderMain.Text = ""
  1642. NotificationHolderMain.TextColor3 = Color3.fromRGB(0, 0, 0)
  1643. NotificationHolderMain.TextSize = 14.000
  1644. TweenService:Create(
  1645. NotificationHolderMain,
  1646. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1647. {BackgroundTransparency = 0.2}
  1648. ):Play()
  1649.  
  1650.  
  1651. Notification.Name = "Notification"
  1652. Notification.Parent = NotificationHolderMain
  1653. Notification.AnchorPoint = Vector2.new(0.5, 0.5)
  1654. Notification.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  1655. Notification.ClipsDescendants = true
  1656. Notification.Position = UDim2.new(0.524819076, 0, 0.469270051, 0)
  1657. Notification.Size = UDim2.new(0, 0, 0, 0)
  1658. Notification.BackgroundTransparency = 1
  1659.  
  1660. Notification:TweenSize(UDim2.new(0, 346, 0, 176), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1661.  
  1662. TweenService:Create(
  1663. Notification,
  1664. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1665. {BackgroundTransparency = 0}
  1666. ):Play()
  1667.  
  1668. NotificationCorner.CornerRadius = UDim.new(0, 5)
  1669. NotificationCorner.Name = "NotificationCorner"
  1670. NotificationCorner.Parent = Notification
  1671.  
  1672. UnderBar.Name = "UnderBar"
  1673. UnderBar.Parent = Notification
  1674. UnderBar.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1675. UnderBar.Position = UDim2.new(-0.000297061284, 0, 0.945048928, 0)
  1676. UnderBar.Size = UDim2.new(0, 346, 0, 10)
  1677.  
  1678. UnderBarCorner.CornerRadius = UDim.new(0, 5)
  1679. UnderBarCorner.Name = "UnderBarCorner"
  1680. UnderBarCorner.Parent = UnderBar
  1681.  
  1682. UnderBarFrame.Name = "UnderBarFrame"
  1683. UnderBarFrame.Parent = UnderBar
  1684. UnderBarFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1685. UnderBarFrame.BorderSizePixel = 0
  1686. UnderBarFrame.Position = UDim2.new(-0.000297061284, 0, -3.76068449, 0)
  1687. UnderBarFrame.Size = UDim2.new(0, 346, 0, 40)
  1688.  
  1689. Text1.Name = "Text1"
  1690. Text1.Parent = Notification
  1691. Text1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1692. Text1.BackgroundTransparency = 1.000
  1693. Text1.Position = UDim2.new(-0.000594122568, 0, 0.0202020202, 0)
  1694. Text1.Size = UDim2.new(0, 346, 0, 68)
  1695. Text1.Font = Enum.Font.GothamSemibold
  1696. Text1.Text = titletext
  1697. Text1.TextColor3 = Color3.fromRGB(255, 255, 255)
  1698. Text1.TextSize = 20.000
  1699.  
  1700. Text2.Name = "Text2"
  1701. Text2.Parent = Notification
  1702. Text2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1703. Text2.BackgroundTransparency = 1.000
  1704. Text2.Position = UDim2.new(0.106342293, 0, 0.317724228, 0)
  1705. Text2.Size = UDim2.new(0, 272, 0, 63)
  1706. Text2.Font = Enum.Font.Gotham
  1707. Text2.Text = desctext
  1708. Text2.TextColor3 = Color3.fromRGB(171, 172, 176)
  1709. Text2.TextSize = 14.000
  1710. Text2.TextWrapped = true
  1711.  
  1712. AlrightBtn.Name = "AlrightBtn"
  1713. AlrightBtn.Parent = Notification
  1714. AlrightBtn.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  1715. AlrightBtn.Position = UDim2.new(0.0332369953, 0, 0.789141417, 0)
  1716. AlrightBtn.Size = UDim2.new(0, 322, 0, 27)
  1717. AlrightBtn.Font = Enum.Font.Gotham
  1718. AlrightBtn.Text = btntext
  1719. AlrightBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  1720. AlrightBtn.TextSize = 13.000
  1721. AlrightBtn.AutoButtonColor = false
  1722.  
  1723. AlrightCorner.CornerRadius = UDim.new(0, 4)
  1724. AlrightCorner.Name = "AlrightCorner"
  1725. AlrightCorner.Parent = AlrightBtn
  1726.  
  1727. AlrightBtn.MouseButton1Click:Connect(function()
  1728. TweenService:Create(
  1729. NotificationHolderMain,
  1730. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1731. {BackgroundTransparency = 1}
  1732. ):Play()
  1733. Notification:TweenSize(UDim2.new(0, 0, 0, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .2, true)
  1734. TweenService:Create(
  1735. Notification,
  1736. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1737. {BackgroundTransparency = 1}
  1738. ):Play()
  1739. wait(.2)
  1740. NotificationHolderMain:Destroy()
  1741. end)
  1742.  
  1743. AlrightBtn.MouseEnter:Connect(function()
  1744. TweenService:Create(
  1745. AlrightBtn,
  1746. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1747. {BackgroundColor3 = Color3.fromRGB(103,123,196)}
  1748. ):Play()
  1749. end)
  1750.  
  1751. AlrightBtn.MouseLeave:Connect(function()
  1752. TweenService:Create(
  1753. AlrightBtn,
  1754. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1755. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1756. ):Play()
  1757. end)
  1758. end
  1759.  
  1760. MakeDraggable(TopFrame, MainFrame)
  1761. ServersHoldPadding.PaddingLeft = UDim.new(0, 14)
  1762. local ServerHold = {}
  1763. function ServerHold:Server(text, img)
  1764. local fc = false
  1765. local currentchanneltoggled = ""
  1766. local Server = Instance.new("TextButton")
  1767. local ServerBtnCorner = Instance.new("UICorner")
  1768. local ServerIco = Instance.new("ImageLabel")
  1769. local ServerWhiteFrame = Instance.new("Frame")
  1770. local ServerWhiteFrameCorner = Instance.new("UICorner")
  1771.  
  1772. Server.Name = "Server"
  1773. Server.Parent = ServersHold
  1774. Server.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1775. Server.Position = UDim2.new(0.125, 0, 0, 0)
  1776. Server.Size = UDim2.new(0, 47, 0, 47)
  1777. Server.AutoButtonColor = false
  1778. Server.Font = Enum.Font.Gotham
  1779. Server.Text = ""
  1780. Server.TextColor3 = Color3.fromRGB(255, 255, 255)
  1781. Server.TextSize = 18.000
  1782.  
  1783. ServerBtnCorner.CornerRadius = UDim.new(1, 0)
  1784. ServerBtnCorner.Name = "ServerCorner"
  1785. ServerBtnCorner.Parent = Server
  1786.  
  1787. ServerIco.Name = "ServerIco"
  1788. ServerIco.Parent = Server
  1789. ServerIco.AnchorPoint = Vector2.new(0.5, 0.5)
  1790. ServerIco.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1791. ServerIco.BackgroundTransparency = 1.000
  1792. ServerIco.Position = UDim2.new(0.489361703, 0, 0.489361703, 0)
  1793. ServerIco.Size = UDim2.new(0, 26, 0, 26)
  1794. ServerIco.Image = ""
  1795.  
  1796. ServerWhiteFrame.Name = "ServerWhiteFrame"
  1797. ServerWhiteFrame.Parent = Server
  1798. ServerWhiteFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  1799. ServerWhiteFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1800. ServerWhiteFrame.Position = UDim2.new(-0.347378343, 0, 0.502659559, 0)
  1801. ServerWhiteFrame.Size = UDim2.new(0, 11, 0, 10)
  1802.  
  1803. ServerWhiteFrameCorner.CornerRadius = UDim.new(1, 0)
  1804. ServerWhiteFrameCorner.Name = "ServerWhiteFrameCorner"
  1805. ServerWhiteFrameCorner.Parent = ServerWhiteFrame
  1806. ServersHold.CanvasSize = UDim2.new(0, 0, 0, ServersHoldLayout.AbsoluteContentSize.Y)
  1807.  
  1808. local ServerFrame = Instance.new("Frame")
  1809. local ServerFrame1 = Instance.new("Frame")
  1810. local ServerFrame2 = Instance.new("Frame")
  1811. local ServerTitleFrame = Instance.new("Frame")
  1812. local ServerTitle = Instance.new("TextLabel")
  1813. local GlowFrame = Instance.new("Frame")
  1814. local Glow = Instance.new("ImageLabel")
  1815. local ServerContentFrame = Instance.new("Frame")
  1816. local ServerCorner = Instance.new("UICorner")
  1817. local ChannelTitleFrame = Instance.new("Frame")
  1818. local Hashtag = Instance.new("TextLabel")
  1819. local ChannelTitle = Instance.new("TextLabel")
  1820. local ChannelContentFrame = Instance.new("Frame")
  1821. local GlowChannel = Instance.new("ImageLabel")
  1822. local ServerChannelHolder = Instance.new("ScrollingFrame")
  1823. local ServerChannelHolderLayout = Instance.new("UIListLayout")
  1824. local ServerChannelHolderPadding = Instance.new("UIPadding")
  1825.  
  1826.  
  1827. ServerFrame.Name = "ServerFrame"
  1828. ServerFrame.Parent = ServersHolder
  1829. ServerFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1830. ServerFrame.BorderSizePixel = 0
  1831. ServerFrame.ClipsDescendants = true
  1832. ServerFrame.Position = UDim2.new(0.105726875, 0, 1.01262593, 0)
  1833. ServerFrame.Size = UDim2.new(0, 609, 0, 373)
  1834. ServerFrame.Visible = false
  1835.  
  1836. ServerFrame1.Name = "ServerFrame1"
  1837. ServerFrame1.Parent = ServerFrame
  1838. ServerFrame1.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1839. ServerFrame1.BorderSizePixel = 0
  1840. ServerFrame1.Position = UDim2.new(0, 0, 0.972290039, 0)
  1841. ServerFrame1.Size = UDim2.new(0, 12, 0, 10)
  1842.  
  1843. ServerFrame2.Name = "ServerFrame2"
  1844. ServerFrame2.Parent = ServerFrame
  1845. ServerFrame2.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1846. ServerFrame2.BorderSizePixel = 0
  1847. ServerFrame2.Position = UDim2.new(0.980295539, 0, 0.972290039, 0)
  1848. ServerFrame2.Size = UDim2.new(0, 12, 0, 9)
  1849.  
  1850. ServerTitleFrame.Name = "ServerTitleFrame"
  1851. ServerTitleFrame.Parent = ServerFrame
  1852. ServerTitleFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1853. ServerTitleFrame.BackgroundTransparency = 1.000
  1854. ServerTitleFrame.BorderSizePixel = 0
  1855. ServerTitleFrame.Position = UDim2.new(-0.0010054264, 0, -0.000900391256, 0)
  1856. ServerTitleFrame.Size = UDim2.new(0, 180, 0, 40)
  1857.  
  1858. ServerTitle.Name = "ServerTitle"
  1859. ServerTitle.Parent = ServerTitleFrame
  1860. ServerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1861. ServerTitle.BackgroundTransparency = 1.000
  1862. ServerTitle.BorderSizePixel = 0
  1863. ServerTitle.Position = UDim2.new(0.0751359761, 0, 0, 0)
  1864. ServerTitle.Size = UDim2.new(0, 97, 0, 39)
  1865. ServerTitle.Font = Enum.Font.GothamSemibold
  1866. ServerTitle.Text = text
  1867. ServerTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1868. ServerTitle.TextSize = 15.000
  1869. ServerTitle.TextXAlignment = Enum.TextXAlignment.Left
  1870.  
  1871. GlowFrame.Name = "GlowFrame"
  1872. GlowFrame.Parent = ServerFrame
  1873. GlowFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1874. GlowFrame.BackgroundTransparency = 1.000
  1875. GlowFrame.BorderSizePixel = 0
  1876. GlowFrame.Position = UDim2.new(-0.0010054264, 0, -0.000900391256, 0)
  1877. GlowFrame.Size = UDim2.new(0, 609, 0, 40)
  1878.  
  1879. Glow.Name = "Glow"
  1880. Glow.Parent = GlowFrame
  1881. Glow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1882. Glow.BackgroundTransparency = 1.000
  1883. Glow.BorderSizePixel = 0
  1884. Glow.Position = UDim2.new(0, -15, 0, -15)
  1885. Glow.Size = UDim2.new(1, 30, 1, 30)
  1886. Glow.ZIndex = 0
  1887. Glow.Image = "rbxassetid://4996891970"
  1888. Glow.ImageColor3 = Color3.fromRGB(15, 15, 15)
  1889. Glow.ScaleType = Enum.ScaleType.Slice
  1890. Glow.SliceCenter = Rect.new(20, 20, 280, 280)
  1891.  
  1892. ServerContentFrame.Name = "ServerContentFrame"
  1893. ServerContentFrame.Parent = ServerFrame
  1894. ServerContentFrame.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  1895. ServerContentFrame.BackgroundTransparency = 1.000
  1896. ServerContentFrame.BorderSizePixel = 0
  1897. ServerContentFrame.Position = UDim2.new(-0.0010054264, 0, 0.106338218, 0)
  1898. ServerContentFrame.Size = UDim2.new(0, 180, 0, 333)
  1899.  
  1900. ServerCorner.CornerRadius = UDim.new(0, 9)
  1901. ServerCorner.Name = "ServerCorner"
  1902. ServerCorner.Parent = ServerFrame
  1903.  
  1904. ChannelTitleFrame.Name = "ChannelTitleFrame"
  1905. ChannelTitleFrame.Parent = ServerFrame
  1906. ChannelTitleFrame.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  1907. ChannelTitleFrame.BorderSizePixel = 0
  1908. ChannelTitleFrame.Position = UDim2.new(0.294561088, 0, -0.000900391256, 0)
  1909. ChannelTitleFrame.Size = UDim2.new(0, 429, 0, 40)
  1910.  
  1911. Hashtag.Name = "Hashtag"
  1912. Hashtag.Parent = ChannelTitleFrame
  1913. Hashtag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1914. Hashtag.BackgroundTransparency = 1.000
  1915. Hashtag.BorderSizePixel = 0
  1916. Hashtag.Position = UDim2.new(0.0279720277, 0, 0, 0)
  1917. Hashtag.Size = UDim2.new(0, 19, 0, 39)
  1918. Hashtag.Font = Enum.Font.Gotham
  1919. Hashtag.Text = "#"
  1920. Hashtag.TextColor3 = Color3.fromRGB(114, 118, 125)
  1921. Hashtag.TextSize = 25.000
  1922.  
  1923. ChannelTitle.Name = "ChannelTitle"
  1924. ChannelTitle.Parent = ChannelTitleFrame
  1925. ChannelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1926. ChannelTitle.BackgroundTransparency = 1.000
  1927. ChannelTitle.BorderSizePixel = 0
  1928. ChannelTitle.Position = UDim2.new(0.0862470865, 0, 0, 0)
  1929. ChannelTitle.Size = UDim2.new(0, 95, 0, 39)
  1930. ChannelTitle.Font = Enum.Font.GothamSemibold
  1931. ChannelTitle.Text = ""
  1932. ChannelTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1933. ChannelTitle.TextSize = 15.000
  1934. ChannelTitle.TextXAlignment = Enum.TextXAlignment.Left
  1935.  
  1936. ChannelContentFrame.Name = "ChannelContentFrame"
  1937. ChannelContentFrame.Parent = ServerFrame
  1938. ChannelContentFrame.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  1939. ChannelContentFrame.BorderSizePixel = 0
  1940. ChannelContentFrame.ClipsDescendants = true
  1941. ChannelContentFrame.Position = UDim2.new(0.294561088, 0, 0.106338218, 0)
  1942. ChannelContentFrame.Size = UDim2.new(0, 429, 0, 333)
  1943.  
  1944. GlowChannel.Name = "GlowChannel"
  1945. GlowChannel.Parent = ChannelContentFrame
  1946. GlowChannel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1947. GlowChannel.BackgroundTransparency = 1.000
  1948. GlowChannel.BorderSizePixel = 0
  1949. GlowChannel.Position = UDim2.new(0, -33, 0, -91)
  1950. GlowChannel.Size = UDim2.new(1.06396091, 30, 0.228228226, 30)
  1951. GlowChannel.ZIndex = 0
  1952. GlowChannel.Image = "rbxassetid://4996891970"
  1953. GlowChannel.ImageColor3 = Color3.fromRGB(15, 15, 15)
  1954. GlowChannel.ScaleType = Enum.ScaleType.Slice
  1955. GlowChannel.SliceCenter = Rect.new(20, 20, 280, 280)
  1956.  
  1957. ServerChannelHolder.Name = "ServerChannelHolder"
  1958. ServerChannelHolder.Parent = ServerContentFrame
  1959. ServerChannelHolder.Active = true
  1960. ServerChannelHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1961. ServerChannelHolder.BackgroundTransparency = 1.000
  1962. ServerChannelHolder.BorderSizePixel = 0
  1963. ServerChannelHolder.Position = UDim2.new(0.00535549596, 0, 0.0241984241, 0)
  1964. ServerChannelHolder.Selectable = false
  1965. ServerChannelHolder.Size = UDim2.new(0, 179, 0, 278)
  1966. ServerChannelHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  1967. ServerChannelHolder.ScrollBarThickness = 4
  1968. ServerChannelHolder.ScrollBarImageColor3 = Color3.fromRGB(18, 19, 21)
  1969. ServerChannelHolder.ScrollBarImageTransparency = 1
  1970.  
  1971. ServerChannelHolderLayout.Name = "ServerChannelHolderLayout"
  1972. ServerChannelHolderLayout.Parent = ServerChannelHolder
  1973. ServerChannelHolderLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1974. ServerChannelHolderLayout.Padding = UDim.new(0, 4)
  1975.  
  1976. ServerChannelHolderPadding.Name = "ServerChannelHolderPadding"
  1977. ServerChannelHolderPadding.Parent = ServerChannelHolder
  1978. ServerChannelHolderPadding.PaddingLeft = UDim.new(0, 9)
  1979.  
  1980. ServerChannelHolder.MouseEnter:Connect(function()
  1981. ServerChannelHolder.ScrollBarImageTransparency = 0
  1982. end)
  1983.  
  1984. ServerChannelHolder.MouseLeave:Connect(function()
  1985. ServerChannelHolder.ScrollBarImageTransparency = 1
  1986. end)
  1987.  
  1988. Server.MouseEnter:Connect(
  1989. function()
  1990. if currentservertoggled ~= Server.Name then
  1991. TweenService:Create(
  1992. Server,
  1993. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1994. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  1995. ):Play()
  1996. TweenService:Create(
  1997. ServerBtnCorner,
  1998. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  1999. {CornerRadius = UDim.new(0, 15)}
  2000. ):Play()
  2001. ServerWhiteFrame:TweenSize(
  2002. UDim2.new(0, 11, 0, 27),
  2003. Enum.EasingDirection.Out,
  2004. Enum.EasingStyle.Quart,
  2005. .3,
  2006. true
  2007. )
  2008. end
  2009. end
  2010. )
  2011.  
  2012. Server.MouseLeave:Connect(
  2013. function()
  2014. if currentservertoggled ~= Server.Name then
  2015. TweenService:Create(
  2016. Server,
  2017. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2018. {BackgroundColor3 = Color3.fromRGB(47, 49, 54)}
  2019. ):Play()
  2020. TweenService:Create(
  2021. ServerBtnCorner,
  2022. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2023. {CornerRadius = UDim.new(1, 0)}
  2024. ):Play()
  2025. ServerWhiteFrame:TweenSize(
  2026. UDim2.new(0, 11, 0, 10),
  2027. Enum.EasingDirection.Out,
  2028. Enum.EasingStyle.Quart,
  2029. .3,
  2030. true
  2031. )
  2032. end
  2033. end
  2034. )
  2035.  
  2036. Server.MouseButton1Click:Connect(
  2037. function()
  2038. currentservertoggled = Server.Name
  2039. for i, v in next, ServersHolder:GetChildren() do
  2040. if v.Name == "ServerFrame" then
  2041. v.Visible = false
  2042. end
  2043. ServerFrame.Visible = true
  2044. end
  2045. for i, v in next, ServersHold:GetChildren() do
  2046. if v.ClassName == "TextButton" then
  2047. TweenService:Create(
  2048. v,
  2049. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2050. {BackgroundColor3 = Color3.fromRGB(47, 49, 54)}
  2051. ):Play()
  2052. TweenService:Create(
  2053. Server,
  2054. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2055. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  2056. ):Play()
  2057. TweenService:Create(
  2058. v.ServerCorner,
  2059. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2060. {CornerRadius = UDim.new(1, 0)}
  2061. ):Play()
  2062. TweenService:Create(
  2063. ServerBtnCorner,
  2064. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2065. {CornerRadius = UDim.new(0, 15)}
  2066. ):Play()
  2067. v.ServerWhiteFrame:TweenSize(
  2068. UDim2.new(0, 11, 0, 10),
  2069. Enum.EasingDirection.Out,
  2070. Enum.EasingStyle.Quart,
  2071. .3,
  2072. true
  2073. )
  2074. ServerWhiteFrame:TweenSize(
  2075. UDim2.new(0, 11, 0, 46),
  2076. Enum.EasingDirection.Out,
  2077. Enum.EasingStyle.Quart,
  2078. .3,
  2079. true
  2080. )
  2081. end
  2082. end
  2083. end
  2084. )
  2085.  
  2086. if img == "" then
  2087. Server.Text = string.sub(text, 1, 1)
  2088. else
  2089. ServerIco.Image = img
  2090. end
  2091.  
  2092. if fs == false then
  2093. TweenService:Create(
  2094. Server,
  2095. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2096. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  2097. ):Play()
  2098. TweenService:Create(
  2099. ServerBtnCorner,
  2100. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2101. {CornerRadius = UDim.new(0, 15)}
  2102. ):Play()
  2103. ServerWhiteFrame:TweenSize(
  2104. UDim2.new(0, 11, 0, 46),
  2105. Enum.EasingDirection.Out,
  2106. Enum.EasingStyle.Quart,
  2107. .3,
  2108. true
  2109. )
  2110. ServerFrame.Visible = true
  2111. Server.Name = "Server"
  2112. currentservertoggled = Server.Name
  2113. fs = true
  2114. end
  2115. local ChannelHold = {}
  2116. function ChannelHold:Channel(text)
  2117. local ChannelBtn = Instance.new("TextButton")
  2118. local ChannelBtnCorner = Instance.new("UICorner")
  2119. local ChannelBtnHashtag = Instance.new("TextLabel")
  2120. local ChannelBtnTitle = Instance.new("TextLabel")
  2121.  
  2122. ChannelBtn.Name = "ChannelBtn"
  2123. ChannelBtn.Parent = ServerChannelHolder
  2124. ChannelBtn.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  2125. ChannelBtn.BorderSizePixel = 0
  2126. ChannelBtn.Position = UDim2.new(0.24118948, 0, 0.578947365, 0)
  2127. ChannelBtn.Size = UDim2.new(0, 160, 0, 30)
  2128. ChannelBtn.AutoButtonColor = false
  2129. ChannelBtn.Font = Enum.Font.SourceSans
  2130. ChannelBtn.Text = ""
  2131. ChannelBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  2132. ChannelBtn.TextSize = 14.000
  2133.  
  2134. ChannelBtnCorner.CornerRadius = UDim.new(0, 6)
  2135. ChannelBtnCorner.Name = "ChannelBtnCorner"
  2136. ChannelBtnCorner.Parent = ChannelBtn
  2137.  
  2138. ChannelBtnHashtag.Name = "ChannelBtnHashtag"
  2139. ChannelBtnHashtag.Parent = ChannelBtn
  2140. ChannelBtnHashtag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2141. ChannelBtnHashtag.BackgroundTransparency = 1.000
  2142. ChannelBtnHashtag.BorderSizePixel = 0
  2143. ChannelBtnHashtag.Position = UDim2.new(0.0279720314, 0, 0, 0)
  2144. ChannelBtnHashtag.Size = UDim2.new(0, 24, 0, 30)
  2145. ChannelBtnHashtag.Font = Enum.Font.Gotham
  2146. ChannelBtnHashtag.Text = "#"
  2147. ChannelBtnHashtag.TextColor3 = Color3.fromRGB(114, 118, 125)
  2148. ChannelBtnHashtag.TextSize = 21.000
  2149.  
  2150. ChannelBtnTitle.Name = "ChannelBtnTitle"
  2151. ChannelBtnTitle.Parent = ChannelBtn
  2152. ChannelBtnTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2153. ChannelBtnTitle.BackgroundTransparency = 1.000
  2154. ChannelBtnTitle.BorderSizePixel = 0
  2155. ChannelBtnTitle.Position = UDim2.new(0.173747092, 0, -0.166666672, 0)
  2156. ChannelBtnTitle.Size = UDim2.new(0, 95, 0, 39)
  2157. ChannelBtnTitle.Font = Enum.Font.Gotham
  2158. ChannelBtnTitle.Text = text
  2159. ChannelBtnTitle.TextColor3 = Color3.fromRGB(114, 118, 125)
  2160. ChannelBtnTitle.TextSize = 14.000
  2161. ChannelBtnTitle.TextXAlignment = Enum.TextXAlignment.Left
  2162. ServerChannelHolder.CanvasSize = UDim2.new(0, 0, 0, ServerChannelHolderLayout.AbsoluteContentSize.Y)
  2163.  
  2164. local ChannelHolder = Instance.new("ScrollingFrame")
  2165. local ChannelHolderLayout = Instance.new("UIListLayout")
  2166.  
  2167. ChannelHolder.Name = "ChannelHolder"
  2168. ChannelHolder.Parent = ChannelContentFrame
  2169. ChannelHolder.Active = true
  2170. ChannelHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2171. ChannelHolder.BackgroundTransparency = 1.000
  2172. ChannelHolder.BorderSizePixel = 0
  2173. ChannelHolder.Position = UDim2.new(0.0360843192, 0, 0.0241984241, 0)
  2174. ChannelHolder.Size = UDim2.new(0, 412, 0, 314)
  2175. ChannelHolder.ScrollBarThickness = 6
  2176. ChannelHolder.CanvasSize = UDim2.new(0,0,0,0)
  2177. ChannelHolder.ScrollBarImageTransparency = 0
  2178. ChannelHolder.ScrollBarImageColor3 = Color3.fromRGB(18, 19, 21)
  2179. ChannelHolder.Visible = false
  2180. ChannelHolder.ClipsDescendants = false
  2181.  
  2182. ChannelHolderLayout.Name = "ChannelHolderLayout"
  2183. ChannelHolderLayout.Parent = ChannelHolder
  2184. ChannelHolderLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2185. ChannelHolderLayout.Padding = UDim.new(0, 6)
  2186.  
  2187. ChannelBtn.MouseEnter:Connect(function()
  2188. if currentchanneltoggled ~= ChannelBtn.Name then
  2189. ChannelBtn.BackgroundColor3 = Color3.fromRGB(52,55,60)
  2190. ChannelBtnTitle.TextColor3 = Color3.fromRGB(220,221,222)
  2191. end
  2192. end)
  2193.  
  2194. ChannelBtn.MouseLeave:Connect(function()
  2195. if currentchanneltoggled ~= ChannelBtn.Name then
  2196. ChannelBtn.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  2197. ChannelBtnTitle.TextColor3 = Color3.fromRGB(114, 118, 125)
  2198. end
  2199. end)
  2200.  
  2201. ChannelBtn.MouseButton1Click:Connect(function()
  2202. for i, v in next, ChannelContentFrame:GetChildren() do
  2203. if v.Name == "ChannelHolder" then
  2204. v.Visible = false
  2205. end
  2206. ChannelHolder.Visible = true
  2207. end
  2208. for i, v in next, ServerChannelHolder:GetChildren() do
  2209. if v.ClassName == "TextButton" then
  2210. v.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  2211. v.ChannelBtnTitle.TextColor3 = Color3.fromRGB(114, 118, 125)
  2212. end
  2213. ServerFrame.Visible = true
  2214. end
  2215. ChannelTitle.Text = text
  2216. ChannelBtn.BackgroundColor3 = Color3.fromRGB(57,60,67)
  2217. ChannelBtnTitle.TextColor3 = Color3.fromRGB(255,255,255)
  2218. currentchanneltoggled = ChannelBtn.Name
  2219. end)
  2220.  
  2221. if fc == false then
  2222. fc = true
  2223. ChannelTitle.Text = text
  2224. ChannelBtn.BackgroundColor3 = Color3.fromRGB(57,60,67)
  2225. ChannelBtnTitle.TextColor3 = Color3.fromRGB(255,255,255)
  2226. currentchanneltoggled = ChannelBtn.Name
  2227. ChannelHolder.Visible = true
  2228. end
  2229. local ChannelContent = {}
  2230. function ChannelContent:Button(text,callback)
  2231. local Button = Instance.new("TextButton")
  2232. local ButtonCorner = Instance.new("UICorner")
  2233.  
  2234. Button.Name = "Button"
  2235. Button.Parent = ChannelHolder
  2236. Button.BackgroundColor3 = Color3.fromRGB(114, 137, 228)
  2237. Button.Size = UDim2.new(0, 401, 0, 30)
  2238. Button.AutoButtonColor = false
  2239. Button.Font = Enum.Font.Gotham
  2240. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  2241. Button.TextSize = 14.000
  2242. Button.Text = text
  2243.  
  2244. ButtonCorner.CornerRadius = UDim.new(0, 4)
  2245. ButtonCorner.Name = "ButtonCorner"
  2246. ButtonCorner.Parent = Button
  2247.  
  2248. Button.MouseEnter:Connect(function()
  2249. TweenService:Create(
  2250. Button,
  2251. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2252. {BackgroundColor3 = Color3.fromRGB(103,123,196)}
  2253. ):Play()
  2254. end)
  2255.  
  2256. Button.MouseButton1Click:Connect(function()
  2257. pcall(callback)
  2258. Button.TextSize = 0
  2259. TweenService:Create(
  2260. Button,
  2261. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2262. {TextSize = 14}
  2263. ):Play()
  2264. end)
  2265.  
  2266. Button.MouseLeave:Connect(function()
  2267. TweenService:Create(
  2268. Button,
  2269. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2270. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  2271. ):Play()
  2272. end)
  2273. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2274. end
  2275. function ChannelContent:Toggle(text,default,callback)
  2276. local toggled = false
  2277. local Toggle = Instance.new("TextButton")
  2278. local ToggleTitle = Instance.new("TextLabel")
  2279. local ToggleFrame = Instance.new("Frame")
  2280. local ToggleFrameCorner = Instance.new("UICorner")
  2281. local ToggleFrameCircle = Instance.new("Frame")
  2282. local ToggleFrameCircleCorner = Instance.new("UICorner")
  2283. local Icon = Instance.new("ImageLabel")
  2284.  
  2285. Toggle.Name = "Toggle"
  2286. Toggle.Parent = ChannelHolder
  2287. Toggle.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  2288. Toggle.BorderSizePixel = 0
  2289. Toggle.Position = UDim2.new(0.261979163, 0, 0.190789461, 0)
  2290. Toggle.Size = UDim2.new(0, 401, 0, 30)
  2291. Toggle.AutoButtonColor = false
  2292. Toggle.Font = Enum.Font.Gotham
  2293. Toggle.Text = ""
  2294. Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
  2295. Toggle.TextSize = 14.000
  2296.  
  2297. ToggleTitle.Name = "ToggleTitle"
  2298. ToggleTitle.Parent = Toggle
  2299. ToggleTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2300. ToggleTitle.BackgroundTransparency = 1.000
  2301. ToggleTitle.Position = UDim2.new(0, 5, 0, 0)
  2302. ToggleTitle.Size = UDim2.new(0, 200, 0, 30)
  2303. ToggleTitle.Font = Enum.Font.Gotham
  2304. ToggleTitle.Text = text
  2305. ToggleTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  2306. ToggleTitle.TextSize = 14.000
  2307. ToggleTitle.TextXAlignment = Enum.TextXAlignment.Left
  2308.  
  2309. ToggleFrame.Name = "ToggleFrame"
  2310. ToggleFrame.Parent = Toggle
  2311. ToggleFrame.BackgroundColor3 = Color3.fromRGB(114, 118, 125)
  2312. ToggleFrame.Position = UDim2.new(0.900481343, -5, 0.13300018, 0)
  2313. ToggleFrame.Size = UDim2.new(0, 40, 0, 21)
  2314.  
  2315. ToggleFrameCorner.CornerRadius = UDim.new(1, 8)
  2316. ToggleFrameCorner.Name = "ToggleFrameCorner"
  2317. ToggleFrameCorner.Parent = ToggleFrame
  2318.  
  2319. ToggleFrameCircle.Name = "ToggleFrameCircle"
  2320. ToggleFrameCircle.Parent = ToggleFrame
  2321. ToggleFrameCircle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2322. ToggleFrameCircle.Position = UDim2.new(0.234999999, -5, 0.133000001, 0)
  2323. ToggleFrameCircle.Size = UDim2.new(0, 15, 0, 15)
  2324.  
  2325. ToggleFrameCircleCorner.CornerRadius = UDim.new(1, 0)
  2326. ToggleFrameCircleCorner.Name = "ToggleFrameCircleCorner"
  2327. ToggleFrameCircleCorner.Parent = ToggleFrameCircle
  2328.  
  2329. Icon.Name = "Icon"
  2330. Icon.Parent = ToggleFrameCircle
  2331. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  2332. Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2333. Icon.BackgroundTransparency = 1.000
  2334. Icon.BorderColor3 = Color3.fromRGB(27, 42, 53)
  2335. Icon.Position = UDim2.new(0, 8, 0, 8)
  2336. Icon.Size = UDim2.new(0, 13, 0, 13)
  2337. Icon.Image = "http://www.roblox.com/asset/?id=6035047409"
  2338. Icon.ImageColor3 = Color3.fromRGB(114, 118, 125)
  2339.  
  2340. Toggle.MouseButton1Click:Connect(function()
  2341. if toggled == false then
  2342. TweenService:Create(
  2343. Icon,
  2344. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2345. {ImageColor3 = Color3.fromRGB(67,181,129)}
  2346. ):Play()
  2347. TweenService:Create(
  2348. ToggleFrame,
  2349. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2350. {BackgroundColor3 = Color3.fromRGB(67,181,129)}
  2351. ):Play()
  2352. ToggleFrameCircle:TweenPosition(UDim2.new(0.655, -5, 0.133000001, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  2353. TweenService:Create(
  2354. Icon,
  2355. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2356. {ImageTransparency = 1}
  2357. ):Play()
  2358. Icon.Image = "http://www.roblox.com/asset/?id=6023426926"
  2359. wait(.1)
  2360. TweenService:Create(
  2361. Icon,
  2362. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2363. {ImageTransparency = 0}
  2364. ):Play()
  2365. else
  2366. TweenService:Create(
  2367. Icon,
  2368. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2369. {ImageColor3 = Color3.fromRGB(114, 118, 125)}
  2370. ):Play()
  2371. TweenService:Create(
  2372. ToggleFrame,
  2373. TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2374. {BackgroundColor3 = Color3.fromRGB(114, 118, 125)}
  2375. ):Play()
  2376. ToggleFrameCircle:TweenPosition(UDim2.new(0.234999999, -5, 0.133000001, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, .3, true)
  2377. TweenService:Create(
  2378. Icon,
  2379. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2380. {ImageTransparency = 1}
  2381. ):Play()
  2382. Icon.Image = "http://www.roblox.com/asset/?id=6035047409"
  2383. wait(.1)
  2384. TweenService:Create(
  2385. Icon,
  2386. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  2387. {ImageTransparency = 0}
  2388. ):Play()
  2389. end
  2390. toggled = not toggled
  2391. pcall(callback, toggled)
  2392. end)
  2393.  
  2394. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2395. end
  2396.  
  2397. function ChannelContent:Slider(text, min, max, start, callback)
  2398. local SliderFunc = {}
  2399. local dragging = false
  2400. local Slider = Instance.new("TextButton")
  2401. local SliderTitle = Instance.new("TextLabel")
  2402. local SliderFrame = Instance.new("Frame")
  2403. local SliderFrameCorner = Instance.new("UICorner")
  2404. local CurrentValueFrame = Instance.new("Frame")
  2405. local CurrentValueFrameCorner = Instance.new("UICorner")
  2406. local Zip = Instance.new("Frame")
  2407. local ZipCorner = Instance.new("UICorner")
  2408. local ValueBubble = Instance.new("Frame")
  2409. local ValueBubbleCorner = Instance.new("UICorner")
  2410. local SquareBubble = Instance.new("Frame")
  2411. local GlowBubble = Instance.new("ImageLabel")
  2412. local ValueLabel = Instance.new("TextLabel")
  2413.  
  2414.  
  2415. Slider.Name = "Slider"
  2416. Slider.Parent = ChannelHolder
  2417. Slider.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  2418. Slider.BorderSizePixel = 0
  2419. Slider.Position = UDim2.new(0, 0, 0.216560602, 0)
  2420. Slider.Size = UDim2.new(0, 401, 0, 38)
  2421. Slider.AutoButtonColor = false
  2422. Slider.Font = Enum.Font.Gotham
  2423. Slider.Text = ""
  2424. Slider.TextColor3 = Color3.fromRGB(255, 255, 255)
  2425. Slider.TextSize = 14.000
  2426.  
  2427. SliderTitle.Name = "SliderTitle"
  2428. SliderTitle.Parent = Slider
  2429. SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2430. SliderTitle.BackgroundTransparency = 1.000
  2431. SliderTitle.Position = UDim2.new(0, 5, 0, -4)
  2432. SliderTitle.Size = UDim2.new(0, 200, 0, 27)
  2433. SliderTitle.Font = Enum.Font.Gotham
  2434. SliderTitle.Text = text
  2435. SliderTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  2436. SliderTitle.TextSize = 14.000
  2437. SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  2438.  
  2439. SliderFrame.Name = "SliderFrame"
  2440. SliderFrame.Parent = Slider
  2441. SliderFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  2442. SliderFrame.BackgroundColor3 = Color3.fromRGB(79, 84, 92)
  2443. SliderFrame.Position = UDim2.new(0.497999996, 0, 0.757000029, 0)
  2444. SliderFrame.Size = UDim2.new(0, 385, 0, 8)
  2445.  
  2446. SliderFrameCorner.Name = "SliderFrameCorner"
  2447. SliderFrameCorner.Parent = SliderFrame
  2448.  
  2449. CurrentValueFrame.Name = "CurrentValueFrame"
  2450. CurrentValueFrame.Parent = SliderFrame
  2451. CurrentValueFrame.BackgroundColor3 = Color3.fromRGB(114, 137, 218)
  2452. CurrentValueFrame.Size = UDim2.new((start or 0) / max, 0, 0, 8)
  2453.  
  2454. CurrentValueFrameCorner.Name = "CurrentValueFrameCorner"
  2455. CurrentValueFrameCorner.Parent = CurrentValueFrame
  2456.  
  2457. Zip.Name = "Zip"
  2458. Zip.Parent = SliderFrame
  2459. Zip.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2460. Zip.Position = UDim2.new((start or 0)/max, -6,-0.644999981, 0)
  2461. Zip.Size = UDim2.new(0, 10, 0, 18)
  2462. ZipCorner.CornerRadius = UDim.new(0, 3)
  2463. ZipCorner.Name = "ZipCorner"
  2464. ZipCorner.Parent = Zip
  2465.  
  2466. ValueBubble.Name = "ValueBubble"
  2467. ValueBubble.Parent = Zip
  2468. ValueBubble.AnchorPoint = Vector2.new(0.5, 0.5)
  2469. ValueBubble.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  2470. ValueBubble.Position = UDim2.new(0.5, 0, -1.00800002, 0)
  2471. ValueBubble.Size = UDim2.new(0, 36, 0, 21)
  2472. ValueBubble.Visible = false
  2473.  
  2474.  
  2475. Zip.MouseEnter:Connect(function()
  2476. if dragging == false then
  2477. ValueBubble.Visible = true
  2478. end
  2479. end)
  2480.  
  2481. Zip.MouseLeave:Connect(function()
  2482. if dragging == false then
  2483. ValueBubble.Visible = false
  2484. end
  2485. end)
  2486.  
  2487.  
  2488. ValueBubbleCorner.CornerRadius = UDim.new(0, 3)
  2489. ValueBubbleCorner.Name = "ValueBubbleCorner"
  2490. ValueBubbleCorner.Parent = ValueBubble
  2491.  
  2492. SquareBubble.Name = "SquareBubble"
  2493. SquareBubble.Parent = ValueBubble
  2494. SquareBubble.AnchorPoint = Vector2.new(0.5, 0.5)
  2495. SquareBubble.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  2496. SquareBubble.BorderSizePixel = 0
  2497. SquareBubble.Position = UDim2.new(0.493000001, 0, 0.637999971, 0)
  2498. SquareBubble.Rotation = 45.000
  2499. SquareBubble.Size = UDim2.new(0, 19, 0, 19)
  2500.  
  2501. GlowBubble.Name = "GlowBubble"
  2502. GlowBubble.Parent = ValueBubble
  2503. GlowBubble.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2504. GlowBubble.BackgroundTransparency = 1.000
  2505. GlowBubble.BorderSizePixel = 0
  2506. GlowBubble.Position = UDim2.new(0, -15, 0, -15)
  2507. GlowBubble.Size = UDim2.new(1, 30, 1, 30)
  2508. GlowBubble.ZIndex = 0
  2509. GlowBubble.Image = "rbxassetid://4996891970"
  2510. GlowBubble.ImageColor3 = Color3.fromRGB(15, 15, 15)
  2511. GlowBubble.ScaleType = Enum.ScaleType.Slice
  2512. GlowBubble.SliceCenter = Rect.new(20, 20, 280, 280)
  2513.  
  2514. ValueLabel.Name = "ValueLabel"
  2515. ValueLabel.Parent = ValueBubble
  2516. ValueLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2517. ValueLabel.BackgroundTransparency = 1.000
  2518. ValueLabel.Size = UDim2.new(0, 36, 0, 21)
  2519. ValueLabel.Font = Enum.Font.Gotham
  2520. ValueLabel.Text = tostring(start and math.floor((start / max) * (max - min) + min) or 0)
  2521. ValueLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  2522. ValueLabel.TextSize = 10.000
  2523. local function move(input)
  2524. local pos =
  2525. UDim2.new(
  2526. math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1),
  2527. -6,
  2528. -0.644999981,
  2529. 0
  2530. )
  2531. local pos1 =
  2532. UDim2.new(
  2533. math.clamp((input.Position.X - SliderFrame.AbsolutePosition.X) / SliderFrame.AbsoluteSize.X, 0, 1),
  2534. 0,
  2535. 0,
  2536. 8
  2537. )
  2538. CurrentValueFrame.Size = pos1
  2539. Zip.Position = pos
  2540. local value = math.floor(((pos.X.Scale * max) / max) * (max - min) + min)
  2541. ValueLabel.Text = tostring(value)
  2542. pcall(callback, value)
  2543. end
  2544. Zip.InputBegan:Connect(
  2545. function(input)
  2546. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2547. dragging = true
  2548. ValueBubble.Visible = true
  2549. end
  2550. end
  2551. )
  2552. Zip.InputEnded:Connect(
  2553. function(input)
  2554. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2555. dragging = false
  2556. ValueBubble.Visible = false
  2557. end
  2558. end
  2559. )
  2560. game:GetService("UserInputService").InputChanged:Connect(
  2561. function(input)
  2562. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  2563. move(input)
  2564. end
  2565. end
  2566. )
  2567.  
  2568. function SliderFunc:Change(tochange)
  2569. CurrentValueFrame.Size = UDim2.new((tochange or 0) / max, 0, 0, 8)
  2570. Zip.Position = UDim2.new((tochange or 0)/max, -6,-0.644999981, 0)
  2571. ValueLabel.Text = tostring(tochange and math.floor((tochange / max) * (max - min) + min) or 0)
  2572. pcall(callback, tochange)
  2573. end
  2574.  
  2575. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2576. return SliderFunc
  2577. end
  2578. function ChannelContent:Seperator()
  2579. local Seperator1 = Instance.new("Frame")
  2580. local Seperator2 = Instance.new("Frame")
  2581.  
  2582. Seperator1.Name = "Seperator1"
  2583. Seperator1.Parent = ChannelHolder
  2584. Seperator1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2585. Seperator1.BackgroundTransparency = 1.000
  2586. Seperator1.Position = UDim2.new(0, 0, 0.350318581, 0)
  2587. Seperator1.Size = UDim2.new(0, 100, 0, 8)
  2588.  
  2589. Seperator2.Name = "Seperator2"
  2590. Seperator2.Parent = Seperator1
  2591. Seperator2.BackgroundColor3 = Color3.fromRGB(66, 69, 74)
  2592. Seperator2.BorderSizePixel = 0
  2593. Seperator2.Position = UDim2.new(0, 0, 0, 4)
  2594. Seperator2.Size = UDim2.new(0, 401, 0, 1)
  2595. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2596. end
  2597. function ChannelContent:Dropdown(text, list, callback)
  2598. local DropFunc = {}
  2599. local itemcount = 0
  2600. local framesize = 0
  2601. local DropTog = false
  2602. local Dropdown = Instance.new("Frame")
  2603. local DropdownTitle = Instance.new("TextLabel")
  2604. local DropdownFrameOutline = Instance.new("Frame")
  2605. local DropdownFrameOutlineCorner = Instance.new("UICorner")
  2606. local DropdownFrame = Instance.new("Frame")
  2607. local DropdownFrameCorner = Instance.new("UICorner")
  2608. local CurrentSelectedText = Instance.new("TextLabel")
  2609. local ArrowImg = Instance.new("ImageLabel")
  2610. local DropdownFrameBtn = Instance.new("TextButton")
  2611.  
  2612. Dropdown.Name = "Dropdown"
  2613. Dropdown.Parent = ChannelHolder
  2614. Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2615. Dropdown.BackgroundTransparency = 1.000
  2616. Dropdown.Position = UDim2.new(0.0796874985, 0, 0.445175439, 0)
  2617. Dropdown.Size = UDim2.new(0, 403, 0, 73)
  2618.  
  2619. DropdownTitle.Name = "DropdownTitle"
  2620. DropdownTitle.Parent = Dropdown
  2621. DropdownTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2622. DropdownTitle.BackgroundTransparency = 1.000
  2623. DropdownTitle.Position = UDim2.new(0, 5, 0, 0)
  2624. DropdownTitle.Size = UDim2.new(0, 200, 0, 29)
  2625. DropdownTitle.Font = Enum.Font.Gotham
  2626. DropdownTitle.Text = text
  2627. DropdownTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  2628. DropdownTitle.TextSize = 14.000
  2629. DropdownTitle.TextXAlignment = Enum.TextXAlignment.Left
  2630.  
  2631. DropdownFrameOutline.Name = "DropdownFrameOutline"
  2632. DropdownFrameOutline.Parent = DropdownTitle
  2633. DropdownFrameOutline.AnchorPoint = Vector2.new(0.5, 0.5)
  2634. DropdownFrameOutline.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  2635. DropdownFrameOutline.Position = UDim2.new(0.988442957, 0, 1.6197437, 0)
  2636. DropdownFrameOutline.Size = UDim2.new(0, 396, 0, 36)
  2637.  
  2638. DropdownFrameOutlineCorner.CornerRadius = UDim.new(0, 3)
  2639. DropdownFrameOutlineCorner.Name = "DropdownFrameOutlineCorner"
  2640. DropdownFrameOutlineCorner.Parent = DropdownFrameOutline
  2641.  
  2642. DropdownFrame.Name = "DropdownFrame"
  2643. DropdownFrame.Parent = DropdownTitle
  2644. DropdownFrame.BackgroundColor3 = Color3.fromRGB(48, 51, 57)
  2645. DropdownFrame.ClipsDescendants = true
  2646. DropdownFrame.Position = UDim2.new(0.00999999978, 0, 1.06638527, 0)
  2647. DropdownFrame.Selectable = true
  2648. DropdownFrame.Size = UDim2.new(0, 392, 0, 32)
  2649.  
  2650. DropdownFrameCorner.CornerRadius = UDim.new(0, 3)
  2651. DropdownFrameCorner.Name = "DropdownFrameCorner"
  2652. DropdownFrameCorner.Parent = DropdownFrame
  2653.  
  2654. CurrentSelectedText.Name = "CurrentSelectedText"
  2655. CurrentSelectedText.Parent = DropdownFrame
  2656. CurrentSelectedText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2657. CurrentSelectedText.BackgroundTransparency = 1.000
  2658. CurrentSelectedText.Position = UDim2.new(0.0178571437, 0, 0, 0)
  2659. CurrentSelectedText.Size = UDim2.new(0, 193, 0, 32)
  2660. CurrentSelectedText.Font = Enum.Font.Gotham
  2661. CurrentSelectedText.Text = "..."
  2662. CurrentSelectedText.TextColor3 = Color3.fromRGB(212, 212, 212)
  2663. CurrentSelectedText.TextSize = 14.000
  2664. CurrentSelectedText.TextXAlignment = Enum.TextXAlignment.Left
  2665.  
  2666. ArrowImg.Name = "ArrowImg"
  2667. ArrowImg.Parent = CurrentSelectedText
  2668. ArrowImg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2669. ArrowImg.BackgroundTransparency = 1.000
  2670. ArrowImg.Position = UDim2.new(1.84974098, 0, 0.167428851, 0)
  2671. ArrowImg.Size = UDim2.new(0, 22, 0, 22)
  2672. ArrowImg.Image = "http://www.roblox.com/asset/?id=6034818372"
  2673. ArrowImg.ImageColor3 = Color3.fromRGB(212, 212, 212)
  2674.  
  2675. DropdownFrameBtn.Name = "DropdownFrameBtn"
  2676. DropdownFrameBtn.Parent = DropdownFrame
  2677. DropdownFrameBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2678. DropdownFrameBtn.BackgroundTransparency = 1.000
  2679. DropdownFrameBtn.Size = UDim2.new(0, 392, 0, 32)
  2680. DropdownFrameBtn.Font = Enum.Font.SourceSans
  2681. DropdownFrameBtn.Text = ""
  2682. DropdownFrameBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  2683. DropdownFrameBtn.TextSize = 14.000
  2684.  
  2685. local DropdownFrameMainOutline = Instance.new("Frame")
  2686. local DropdownFrameMainOutlineCorner = Instance.new("UICorner")
  2687. local DropdownFrameMain = Instance.new("Frame")
  2688. local DropdownFrameMainCorner = Instance.new("UICorner")
  2689. local DropItemHolderLabel = Instance.new("TextLabel")
  2690. local DropItemHolder = Instance.new("ScrollingFrame")
  2691. local DropItemHolderLayout = Instance.new("UIListLayout")
  2692.  
  2693. DropdownFrameMainOutline.Name = "DropdownFrameMainOutline"
  2694. DropdownFrameMainOutline.Parent = DropdownTitle
  2695. DropdownFrameMainOutline.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  2696. DropdownFrameMainOutline.Position = UDim2.new(-0.00155700743, 0, 2.16983342, 0)
  2697. DropdownFrameMainOutline.Size = UDim2.new(0, 396, 0, 81)
  2698. DropdownFrameMainOutline.Visible = false
  2699.  
  2700. DropdownFrameMainOutlineCorner.CornerRadius = UDim.new(0, 3)
  2701. DropdownFrameMainOutlineCorner.Name = "DropdownFrameMainOutlineCorner"
  2702. DropdownFrameMainOutlineCorner.Parent = DropdownFrameMainOutline
  2703.  
  2704. DropdownFrameMain.Name = "DropdownFrameMain"
  2705. DropdownFrameMain.Parent = DropdownTitle
  2706. DropdownFrameMain.BackgroundColor3 = Color3.fromRGB(47, 49, 54)
  2707. DropdownFrameMain.ClipsDescendants = true
  2708. DropdownFrameMain.Position = UDim2.new(0.00999999978, 0, 2.2568965, 0)
  2709. DropdownFrameMain.Selectable = true
  2710. DropdownFrameMain.Size = UDim2.new(0, 392, 0, 77)
  2711. DropdownFrameMain.Visible = false
  2712.  
  2713. DropdownFrameMainCorner.CornerRadius = UDim.new(0, 3)
  2714. DropdownFrameMainCorner.Name = "DropdownFrameMainCorner"
  2715. DropdownFrameMainCorner.Parent = DropdownFrameMain
  2716.  
  2717. DropItemHolderLabel.Name = "ItemHolderLabel"
  2718. DropItemHolderLabel.Parent = DropdownFrameMain
  2719. DropItemHolderLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2720. DropItemHolderLabel.BackgroundTransparency = 1.000
  2721. DropItemHolderLabel.Position = UDim2.new(0.0178571437, 0, 0, 0)
  2722. DropItemHolderLabel.Size = UDim2.new(0, 193, 0, 13)
  2723. DropItemHolderLabel.Font = Enum.Font.Gotham
  2724. DropItemHolderLabel.Text = ""
  2725. DropItemHolderLabel.TextColor3 = Color3.fromRGB(212, 212, 212)
  2726. DropItemHolderLabel.TextSize = 14.000
  2727. DropItemHolderLabel.TextXAlignment = Enum.TextXAlignment.Left
  2728.  
  2729. DropItemHolder.Name = "ItemHolder"
  2730. DropItemHolder.Parent = DropItemHolderLabel
  2731. DropItemHolder.Active = true
  2732. DropItemHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2733. DropItemHolder.BackgroundTransparency = 1.000
  2734. DropItemHolder.Position = UDim2.new(0, 0, 0.215384638, 0)
  2735. DropItemHolder.Size = UDim2.new(0, 385, 0, 0)
  2736. DropItemHolder.CanvasSize = UDim2.new(0, 0, 0, 0)
  2737. DropItemHolder.ScrollBarThickness = 6
  2738. DropItemHolder.BorderSizePixel = 0
  2739. DropItemHolder.ScrollBarImageColor3 = Color3.fromRGB(28, 29, 32)
  2740.  
  2741. DropItemHolderLayout.Name = "ItemHolderLayout"
  2742. DropItemHolderLayout.Parent = DropItemHolder
  2743. DropItemHolderLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2744. DropItemHolderLayout.Padding = UDim.new(0, 0)
  2745.  
  2746. DropdownFrameBtn.MouseButton1Click:Connect(function()
  2747. if DropTog == false then
  2748. DropdownFrameMain.Visible = true
  2749. DropdownFrameMainOutline.Visible = true
  2750. Dropdown.Size = UDim2.new(0, 403, 0, 73 + DropdownFrameMainOutline.AbsoluteSize.Y)
  2751. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2752.  
  2753. else
  2754. Dropdown.Size = UDim2.new(0, 403, 0, 73)
  2755. DropdownFrameMain.Visible = false
  2756. DropdownFrameMainOutline.Visible = false
  2757. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2758. end
  2759. DropTog = not DropTog
  2760. end)
  2761.  
  2762.  
  2763. for i,v in next, list do
  2764. itemcount = itemcount + 1
  2765.  
  2766. if itemcount == 1 then
  2767. framesize = 29
  2768. elseif itemcount == 2 then
  2769. framesize = 58
  2770. elseif itemcount >= 3 then
  2771. framesize = 87
  2772. end
  2773.  
  2774. local Item = Instance.new("TextButton")
  2775. local ItemCorner = Instance.new("UICorner")
  2776. local ItemText = Instance.new("TextLabel")
  2777.  
  2778. Item.Name = "Item"
  2779. Item.Parent = DropItemHolder
  2780. Item.BackgroundColor3 = Color3.fromRGB(42, 44, 48)
  2781. Item.Size = UDim2.new(0, 379, 0, 29)
  2782. Item.AutoButtonColor = false
  2783. Item.Font = Enum.Font.SourceSans
  2784. Item.Text = ""
  2785. Item.TextColor3 = Color3.fromRGB(0, 0, 0)
  2786. Item.TextSize = 14.000
  2787. Item.BackgroundTransparency = 1
  2788.  
  2789. ItemCorner.CornerRadius = UDim.new(0, 4)
  2790. ItemCorner.Name = "ItemCorner"
  2791. ItemCorner.Parent = Item
  2792.  
  2793. ItemText.Name = "ItemText"
  2794. ItemText.Parent = Item
  2795. ItemText.BackgroundColor3 = Color3.fromRGB(42, 44, 48)
  2796. ItemText.BackgroundTransparency = 1.000
  2797. ItemText.Position = UDim2.new(0.0211081803, 0, 0, 0)
  2798. ItemText.Size = UDim2.new(0, 192, 0, 29)
  2799. ItemText.Font = Enum.Font.Gotham
  2800. ItemText.TextColor3 = Color3.fromRGB(212, 212, 212)
  2801. ItemText.TextSize = 14.000
  2802. ItemText.TextXAlignment = Enum.TextXAlignment.Left
  2803. ItemText.Text = v
  2804.  
  2805. Item.MouseEnter:Connect(function()
  2806. ItemText.TextColor3 = Color3.fromRGB(255,255,255)
  2807. Item.BackgroundTransparency = 0
  2808. end)
  2809.  
  2810. Item.MouseLeave:Connect(function()
  2811. ItemText.TextColor3 = Color3.fromRGB(212, 212, 212)
  2812. Item.BackgroundTransparency = 1
  2813. end)
  2814.  
  2815. Item.MouseButton1Click:Connect(function()
  2816. CurrentSelectedText.Text = v
  2817. pcall(callback, v)
  2818. Dropdown.Size = UDim2.new(0, 403, 0, 73)
  2819. DropdownFrameMain.Visible = false
  2820. DropdownFrameMainOutline.Visible = false
  2821. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2822. DropTog = not DropTog
  2823. end)
  2824.  
  2825. DropItemHolder.CanvasSize = UDim2.new(0,0,0,DropItemHolderLayout.AbsoluteContentSize.Y)
  2826.  
  2827. DropItemHolder.Size = UDim2.new(0, 385, 0, framesize)
  2828. DropdownFrameMain.Size = UDim2.new(0, 392, 0, framesize + 6)
  2829. DropdownFrameMainOutline.Size = UDim2.new(0, 396, 0, framesize + 10)
  2830. end
  2831.  
  2832. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2833.  
  2834. function DropFunc:Clear()
  2835. for i,v in next, DropItemHolder:GetChildren() do
  2836. if v.Name == "Item" then
  2837. v:Destroy()
  2838. end
  2839. end
  2840.  
  2841. CurrentSelectedText.Text = "..."
  2842.  
  2843. itemcount = 0
  2844. framesize = 0
  2845. DropItemHolder.Size = UDim2.new(0, 385, 0, 0)
  2846. DropdownFrameMain.Size = UDim2.new(0, 392, 0, 0)
  2847. DropdownFrameMainOutline.Size = UDim2.new(0, 396, 0, 0)
  2848. Dropdown.Size = UDim2.new(0, 403, 0, 73)
  2849. DropdownFrameMain.Visible = false
  2850. DropdownFrameMainOutline.Visible = false
  2851. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2852. end
  2853.  
  2854. function DropFunc:Add(textadd)
  2855. itemcount = itemcount + 1
  2856.  
  2857. if itemcount == 1 then
  2858. framesize = 29
  2859. elseif itemcount == 2 then
  2860. framesize = 58
  2861. elseif itemcount >= 3 then
  2862. framesize = 87
  2863. end
  2864.  
  2865. local Item = Instance.new("TextButton")
  2866. local ItemCorner = Instance.new("UICorner")
  2867. local ItemText = Instance.new("TextLabel")
  2868.  
  2869. Item.Name = "Item"
  2870. Item.Parent = DropItemHolder
  2871. Item.BackgroundColor3 = Color3.fromRGB(42, 44, 48)
  2872. Item.Size = UDim2.new(0, 379, 0, 29)
  2873. Item.AutoButtonColor = false
  2874. Item.Font = Enum.Font.SourceSans
  2875. Item.Text = ""
  2876. Item.TextColor3 = Color3.fromRGB(0, 0, 0)
  2877. Item.TextSize = 14.000
  2878. Item.BackgroundTransparency = 1
  2879.  
  2880. ItemCorner.CornerRadius = UDim.new(0, 4)
  2881. ItemCorner.Name = "ItemCorner"
  2882. ItemCorner.Parent = Item
  2883.  
  2884. ItemText.Name = "ItemText"
  2885. ItemText.Parent = Item
  2886. ItemText.BackgroundColor3 = Color3.fromRGB(42, 44, 48)
  2887. ItemText.BackgroundTransparency = 1.000
  2888. ItemText.Position = UDim2.new(0.0211081803, 0, 0, 0)
  2889. ItemText.Size = UDim2.new(0, 192, 0, 29)
  2890. ItemText.Font = Enum.Font.Gotham
  2891. ItemText.TextColor3 = Color3.fromRGB(212, 212, 212)
  2892. ItemText.TextSize = 14.000
  2893. ItemText.TextXAlignment = Enum.TextXAlignment.Left
  2894. ItemText.Text = textadd
  2895.  
  2896. Item.MouseEnter:Connect(function()
  2897. ItemText.TextColor3 = Color3.fromRGB(255,255,255)
  2898. Item.BackgroundTransparency = 0
  2899. end)
  2900.  
  2901. Item.MouseLeave:Connect(function()
  2902. ItemText.TextColor3 = Color3.fromRGB(212, 212, 212)
  2903. Item.BackgroundTransparency = 1
  2904. end)
  2905.  
  2906. Item.MouseButton1Click:Connect(function()
  2907. CurrentSelectedText.Text = textadd
  2908. pcall(callback, textadd)
  2909. Dropdown.Size = UDim2.new(0, 403, 0, 73)
  2910. DropdownFrameMain.Visible = false
  2911. DropdownFrameMainOutline.Visible = false
  2912. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  2913. DropTog = not DropTog
  2914. end)
  2915.  
  2916. DropItemHolder.CanvasSize = UDim2.new(0,0,0,DropItemHolderLayout.AbsoluteContentSize.Y)
  2917.  
  2918. DropItemHolder.Size = UDim2.new(0, 385, 0, framesize)
  2919. DropdownFrameMain.Size = UDim2.new(0, 392, 0, framesize + 6)
  2920. DropdownFrameMainOutline.Size = UDim2.new(0, 396, 0, framesize + 10)
  2921. end
  2922. return DropFunc
  2923. end
  2924. function ChannelContent:Colorpicker(text, preset, callback)
  2925. local OldToggleColor = Color3.fromRGB(0, 0, 0)
  2926. local OldColor = Color3.fromRGB(0, 0, 0)
  2927. local OldColorSelectionPosition = nil
  2928. local OldHueSelectionPosition = nil
  2929. local ColorH, ColorS, ColorV = 1, 1, 1
  2930. local RainbowColorPicker = false
  2931. local ColorPickerInput = nil
  2932. local ColorInput = nil
  2933. local HueInput = nil
  2934.  
  2935. local Colorpicker = Instance.new("Frame")
  2936. local ColorpickerTitle = Instance.new("TextLabel")
  2937. local ColorpickerFrameOutline = Instance.new("Frame")
  2938. local ColorpickerFrameOutlineCorner = Instance.new("UICorner")
  2939. local ColorpickerFrame = Instance.new("Frame")
  2940. local ColorpickerFrameCorner = Instance.new("UICorner")
  2941. local Color = Instance.new("ImageLabel")
  2942. local ColorCorner = Instance.new("UICorner")
  2943. local ColorSelection = Instance.new("ImageLabel")
  2944. local Hue = Instance.new("ImageLabel")
  2945. local HueCorner = Instance.new("UICorner")
  2946. local HueGradient = Instance.new("UIGradient")
  2947. local HueSelection = Instance.new("ImageLabel")
  2948. local PresetClr = Instance.new("Frame")
  2949. local PresetClrCorner = Instance.new("UICorner")
  2950.  
  2951. Colorpicker.Name = "Colorpicker"
  2952. Colorpicker.Parent = ChannelHolder
  2953. Colorpicker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2954. Colorpicker.BackgroundTransparency = 1.000
  2955. Colorpicker.Position = UDim2.new(0.0895741582, 0, 0.474232763, 0)
  2956. Colorpicker.Size = UDim2.new(0, 403, 0, 175)
  2957.  
  2958. ColorpickerTitle.Name = "ColorpickerTitle"
  2959. ColorpickerTitle.Parent = Colorpicker
  2960. ColorpickerTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2961. ColorpickerTitle.BackgroundTransparency = 1.000
  2962. ColorpickerTitle.Position = UDim2.new(0, 5, 0, 0)
  2963. ColorpickerTitle.Size = UDim2.new(0, 200, 0, 29)
  2964. ColorpickerTitle.Font = Enum.Font.Gotham
  2965. ColorpickerTitle.Text = text
  2966. ColorpickerTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  2967. ColorpickerTitle.TextSize = 14.000
  2968. ColorpickerTitle.TextXAlignment = Enum.TextXAlignment.Left
  2969.  
  2970. ColorpickerFrameOutline.Name = "ColorpickerFrameOutline"
  2971. ColorpickerFrameOutline.Parent = ColorpickerTitle
  2972. ColorpickerFrameOutline.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  2973. ColorpickerFrameOutline.Position = UDim2.new(-0.00100000005, 0, 0.991999984, 0)
  2974. ColorpickerFrameOutline.Size = UDim2.new(0, 238, 0, 139)
  2975.  
  2976. ColorpickerFrameOutlineCorner.CornerRadius = UDim.new(0, 3)
  2977. ColorpickerFrameOutlineCorner.Name = "ColorpickerFrameOutlineCorner"
  2978. ColorpickerFrameOutlineCorner.Parent = ColorpickerFrameOutline
  2979.  
  2980. ColorpickerFrame.Name = "ColorpickerFrame"
  2981. ColorpickerFrame.Parent = ColorpickerTitle
  2982. ColorpickerFrame.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  2983. ColorpickerFrame.ClipsDescendants = true
  2984. ColorpickerFrame.Position = UDim2.new(0.00999999978, 0, 1.06638515, 0)
  2985. ColorpickerFrame.Selectable = true
  2986. ColorpickerFrame.Size = UDim2.new(0, 234, 0, 135)
  2987.  
  2988. ColorpickerFrameCorner.CornerRadius = UDim.new(0, 3)
  2989. ColorpickerFrameCorner.Name = "ColorpickerFrameCorner"
  2990. ColorpickerFrameCorner.Parent = ColorpickerFrame
  2991.  
  2992. Color.Name = "Color"
  2993. Color.Parent = ColorpickerFrame
  2994. Color.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  2995. Color.Position = UDim2.new(0, 10, 0, 10)
  2996. Color.Size = UDim2.new(0, 154, 0, 118)
  2997. Color.ZIndex = 10
  2998. Color.Image = "rbxassetid://4155801252"
  2999.  
  3000. ColorCorner.CornerRadius = UDim.new(0, 3)
  3001. ColorCorner.Name = "ColorCorner"
  3002. ColorCorner.Parent = Color
  3003.  
  3004. ColorSelection.Name = "ColorSelection"
  3005. ColorSelection.Parent = Color
  3006. ColorSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  3007. ColorSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3008. ColorSelection.BackgroundTransparency = 1.000
  3009. ColorSelection.Position = UDim2.new(preset and select(3, Color3.toHSV(preset)))
  3010. ColorSelection.Size = UDim2.new(0, 18, 0, 18)
  3011. ColorSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  3012. ColorSelection.ScaleType = Enum.ScaleType.Fit
  3013.  
  3014. Hue.Name = "Hue"
  3015. Hue.Parent = ColorpickerFrame
  3016. Hue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3017. Hue.Position = UDim2.new(0, 171, 0, 10)
  3018. Hue.Size = UDim2.new(0, 18, 0, 118)
  3019.  
  3020. HueCorner.CornerRadius = UDim.new(0, 3)
  3021. HueCorner.Name = "HueCorner"
  3022. HueCorner.Parent = Hue
  3023.  
  3024. HueGradient.Color = ColorSequence.new {
  3025. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 4)),
  3026. ColorSequenceKeypoint.new(0.20, Color3.fromRGB(234, 255, 0)),
  3027. ColorSequenceKeypoint.new(0.40, Color3.fromRGB(21, 255, 0)),
  3028. ColorSequenceKeypoint.new(0.60, Color3.fromRGB(0, 255, 255)),
  3029. ColorSequenceKeypoint.new(0.80, Color3.fromRGB(0, 17, 255)),
  3030. ColorSequenceKeypoint.new(0.90, Color3.fromRGB(255, 0, 251)),
  3031. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 4))
  3032. }
  3033. HueGradient.Rotation = 270
  3034. HueGradient.Name = "HueGradient"
  3035. HueGradient.Parent = Hue
  3036.  
  3037. HueSelection.Name = "HueSelection"
  3038. HueSelection.Parent = Hue
  3039. HueSelection.AnchorPoint = Vector2.new(0.5, 0.5)
  3040. HueSelection.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3041. HueSelection.BackgroundTransparency = 1.000
  3042. HueSelection.Position = UDim2.new(0.48, 0, 1 - select(1, Color3.toHSV(preset)))
  3043. HueSelection.Size = UDim2.new(0, 18, 0, 18)
  3044. HueSelection.Image = "http://www.roblox.com/asset/?id=4805639000"
  3045.  
  3046. PresetClr.Name = "PresetClr"
  3047. PresetClr.Parent = ColorpickerFrame
  3048. PresetClr.BackgroundColor3 = preset
  3049. PresetClr.Position = UDim2.new(0.846153855, 0, 0.0740740746, 0)
  3050. PresetClr.Size = UDim2.new(0, 25, 0, 25)
  3051.  
  3052. PresetClrCorner.CornerRadius = UDim.new(0, 3)
  3053. PresetClrCorner.Name = "PresetClrCorner"
  3054. PresetClrCorner.Parent = PresetClr
  3055.  
  3056. local function UpdateColorPicker(nope)
  3057. PresetClr.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
  3058. Color.BackgroundColor3 = Color3.fromHSV(ColorH, 1, 1)
  3059.  
  3060. pcall(callback, PresetClr.BackgroundColor3)
  3061. end
  3062.  
  3063. ColorH =
  3064. 1 -
  3065. (math.clamp(HueSelection.AbsolutePosition.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  3066. Hue.AbsoluteSize.Y)
  3067. ColorS =
  3068. (math.clamp(ColorSelection.AbsolutePosition.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  3069. Color.AbsoluteSize.X)
  3070. ColorV =
  3071. 1 -
  3072. (math.clamp(ColorSelection.AbsolutePosition.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  3073. Color.AbsoluteSize.Y)
  3074.  
  3075. PresetClr.BackgroundColor3 = preset
  3076. Color.BackgroundColor3 = preset
  3077. pcall(callback, PresetClr.BackgroundColor3)
  3078.  
  3079. Color.InputBegan:Connect(
  3080. function(input)
  3081. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3082.  
  3083. if ColorInput then
  3084. ColorInput:Disconnect()
  3085. end
  3086.  
  3087. ColorInput =
  3088. RunService.RenderStepped:Connect(
  3089. function()
  3090. local ColorX =
  3091. (math.clamp(Mouse.X - Color.AbsolutePosition.X, 0, Color.AbsoluteSize.X) /
  3092. Color.AbsoluteSize.X)
  3093. local ColorY =
  3094. (math.clamp(Mouse.Y - Color.AbsolutePosition.Y, 0, Color.AbsoluteSize.Y) /
  3095. Color.AbsoluteSize.Y)
  3096.  
  3097. ColorSelection.Position = UDim2.new(ColorX, 0, ColorY, 0)
  3098. ColorS = ColorX
  3099. ColorV = 1 - ColorY
  3100.  
  3101. UpdateColorPicker(true)
  3102. end
  3103. )
  3104. end
  3105. end
  3106. )
  3107.  
  3108. Color.InputEnded:Connect(
  3109. function(input)
  3110. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3111. if ColorInput then
  3112. ColorInput:Disconnect()
  3113. end
  3114. end
  3115. end
  3116. )
  3117.  
  3118. Hue.InputBegan:Connect(
  3119. function(input)
  3120. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3121.  
  3122.  
  3123. if HueInput then
  3124. HueInput:Disconnect()
  3125. end
  3126.  
  3127. HueInput =
  3128. RunService.RenderStepped:Connect(
  3129. function()
  3130. local HueY =
  3131. (math.clamp(Mouse.Y - Hue.AbsolutePosition.Y, 0, Hue.AbsoluteSize.Y) /
  3132. Hue.AbsoluteSize.Y)
  3133.  
  3134. HueSelection.Position = UDim2.new(0.48, 0, HueY, 0)
  3135. ColorH = 1 - HueY
  3136.  
  3137. UpdateColorPicker(true)
  3138. end
  3139. )
  3140. end
  3141. end
  3142. )
  3143.  
  3144. Hue.InputEnded:Connect(
  3145. function(input)
  3146. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3147. if HueInput then
  3148. HueInput:Disconnect()
  3149. end
  3150. end
  3151. end
  3152. )
  3153.  
  3154. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  3155. end
  3156.  
  3157. function ChannelContent:Textbox(text, placetext, disapper, callback)
  3158. local Textbox = Instance.new("Frame")
  3159. local TextboxTitle = Instance.new("TextLabel")
  3160. local TextboxFrameOutline = Instance.new("Frame")
  3161. local TextboxFrameOutlineCorner = Instance.new("UICorner")
  3162. local TextboxFrame = Instance.new("Frame")
  3163. local TextboxFrameCorner = Instance.new("UICorner")
  3164. local TextBox = Instance.new("TextBox")
  3165.  
  3166. Textbox.Name = "Textbox"
  3167. Textbox.Parent = ChannelHolder
  3168. Textbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3169. Textbox.BackgroundTransparency = 1.000
  3170. Textbox.Position = UDim2.new(0.0796874985, 0, 0.445175439, 0)
  3171. Textbox.Size = UDim2.new(0, 403, 0, 73)
  3172.  
  3173. TextboxTitle.Name = "TextboxTitle"
  3174. TextboxTitle.Parent = Textbox
  3175. TextboxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3176. TextboxTitle.BackgroundTransparency = 1.000
  3177. TextboxTitle.Position = UDim2.new(0, 5, 0, 0)
  3178. TextboxTitle.Size = UDim2.new(0, 200, 0, 29)
  3179. TextboxTitle.Font = Enum.Font.Gotham
  3180. TextboxTitle.Text = text
  3181. TextboxTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  3182. TextboxTitle.TextSize = 14.000
  3183. TextboxTitle.TextXAlignment = Enum.TextXAlignment.Left
  3184.  
  3185. TextboxFrameOutline.Name = "TextboxFrameOutline"
  3186. TextboxFrameOutline.Parent = TextboxTitle
  3187. TextboxFrameOutline.AnchorPoint = Vector2.new(0.5, 0.5)
  3188. TextboxFrameOutline.BackgroundColor3 = Color3.fromRGB(37, 40, 43)
  3189. TextboxFrameOutline.Position = UDim2.new(0.988442957, 0, 1.6197437, 0)
  3190. TextboxFrameOutline.Size = UDim2.new(0, 396, 0, 36)
  3191.  
  3192. TextboxFrameOutlineCorner.CornerRadius = UDim.new(0, 3)
  3193. TextboxFrameOutlineCorner.Name = "TextboxFrameOutlineCorner"
  3194. TextboxFrameOutlineCorner.Parent = TextboxFrameOutline
  3195.  
  3196. TextboxFrame.Name = "TextboxFrame"
  3197. TextboxFrame.Parent = TextboxTitle
  3198. TextboxFrame.BackgroundColor3 = Color3.fromRGB(48, 51, 57)
  3199. TextboxFrame.ClipsDescendants = true
  3200. TextboxFrame.Position = UDim2.new(0.00999999978, 0, 1.06638527, 0)
  3201. TextboxFrame.Selectable = true
  3202. TextboxFrame.Size = UDim2.new(0, 392, 0, 32)
  3203.  
  3204. TextboxFrameCorner.CornerRadius = UDim.new(0, 3)
  3205. TextboxFrameCorner.Name = "TextboxFrameCorner"
  3206. TextboxFrameCorner.Parent = TextboxFrame
  3207.  
  3208. TextBox.Parent = TextboxFrame
  3209. TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3210. TextBox.BackgroundTransparency = 1.000
  3211. TextBox.Position = UDim2.new(0.0178571437, 0, 0, 0)
  3212. TextBox.Size = UDim2.new(0, 377, 0, 32)
  3213. TextBox.Font = Enum.Font.Gotham
  3214. TextBox.PlaceholderColor3 = Color3.fromRGB(91, 95, 101)
  3215. TextBox.PlaceholderText = placetext
  3216. TextBox.Text = ""
  3217. TextBox.TextColor3 = Color3.fromRGB(193, 195, 197)
  3218. TextBox.TextSize = 14.000
  3219. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  3220.  
  3221. TextBox.Focused:Connect(function()
  3222. TweenService:Create(
  3223. TextboxFrameOutline,
  3224. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  3225. {BackgroundColor3 = Color3.fromRGB(114, 137, 228)}
  3226. ):Play()
  3227. end)
  3228.  
  3229. TextBox.FocusLost:Connect(function(ep)
  3230. TweenService:Create(
  3231. TextboxFrameOutline,
  3232. TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  3233. {BackgroundColor3 = Color3.fromRGB(37, 40, 43)}
  3234. ):Play()
  3235. if ep then
  3236. if #TextBox.Text > 0 then
  3237. pcall(callback, TextBox.Text)
  3238. if disapper then
  3239. TextBox.Text = ""
  3240. end
  3241. end
  3242. end
  3243. end)
  3244.  
  3245. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  3246. end
  3247.  
  3248. function ChannelContent:Label(text)
  3249. local Label = Instance.new("TextButton")
  3250. local LabelTitle = Instance.new("TextLabel")
  3251.  
  3252. Label.Name = "Label"
  3253. Label.Parent = ChannelHolder
  3254. Label.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  3255. Label.BorderSizePixel = 0
  3256. Label.Position = UDim2.new(0.261979163, 0, 0.190789461, 0)
  3257. Label.Size = UDim2.new(0, 401, 0, 30)
  3258. Label.AutoButtonColor = false
  3259. Label.Font = Enum.Font.Gotham
  3260. Label.Text = ""
  3261. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  3262. Label.TextSize = 14.000
  3263.  
  3264. LabelTitle.Name = "LabelTitle"
  3265. LabelTitle.Parent = Label
  3266. LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3267. LabelTitle.BackgroundTransparency = 1.000
  3268. LabelTitle.Position = UDim2.new(0, 5, 0, 0)
  3269. LabelTitle.Size = UDim2.new(0, 200, 0, 30)
  3270. LabelTitle.Font = Enum.Font.Gotham
  3271. LabelTitle.Text = text
  3272. LabelTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  3273. LabelTitle.TextSize = 14.000
  3274. LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
  3275.  
  3276. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  3277. end
  3278.  
  3279. function ChannelContent:Bind(text, presetbind, callback)
  3280. local Key = presetbind.Name
  3281. local Keybind = Instance.new("TextButton")
  3282. local KeybindTitle = Instance.new("TextLabel")
  3283. local KeybindText = Instance.new("TextLabel")
  3284.  
  3285. Keybind.Name = "Keybind"
  3286. Keybind.Parent = ChannelHolder
  3287. Keybind.BackgroundColor3 = Color3.fromRGB(54, 57, 63)
  3288. Keybind.BorderSizePixel = 0
  3289. Keybind.Position = UDim2.new(0.261979163, 0, 0.190789461, 0)
  3290. Keybind.Size = UDim2.new(0, 401, 0, 30)
  3291. Keybind.AutoButtonColor = false
  3292. Keybind.Font = Enum.Font.Gotham
  3293. Keybind.Text = ""
  3294. Keybind.TextColor3 = Color3.fromRGB(255, 255, 255)
  3295. Keybind.TextSize = 14.000
  3296.  
  3297. KeybindTitle.Name = "KeybindTitle"
  3298. KeybindTitle.Parent = Keybind
  3299. KeybindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3300. KeybindTitle.BackgroundTransparency = 1.000
  3301. KeybindTitle.Position = UDim2.new(0, 5, 0, 0)
  3302. KeybindTitle.Size = UDim2.new(0, 200, 0, 30)
  3303. KeybindTitle.Font = Enum.Font.Gotham
  3304. KeybindTitle.Text = text
  3305. KeybindTitle.TextColor3 = Color3.fromRGB(127, 131, 137)
  3306. KeybindTitle.TextSize = 14.000
  3307. KeybindTitle.TextXAlignment = Enum.TextXAlignment.Left
  3308.  
  3309. KeybindText.Name = "KeybindText"
  3310. KeybindText.Parent = Keybind
  3311. KeybindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  3312. KeybindText.BackgroundTransparency = 1.000
  3313. KeybindText.Position = UDim2.new(0, 316, 0, 0)
  3314. KeybindText.Size = UDim2.new(0, 85, 0, 30)
  3315. KeybindText.Font = Enum.Font.Gotham
  3316. KeybindText.Text = presetbind.Name
  3317. KeybindText.TextColor3 = Color3.fromRGB(127, 131, 137)
  3318. KeybindText.TextSize = 14.000
  3319. KeybindText.TextXAlignment = Enum.TextXAlignment.Right
  3320.  
  3321. Keybind.MouseButton1Click:Connect(function()
  3322. KeybindText.Text = "..."
  3323. local inputwait = game:GetService("UserInputService").InputBegan:wait()
  3324. if inputwait.KeyCode.Name ~= "Unknown" then
  3325. KeybindText.Text = inputwait.KeyCode.Name
  3326. Key = inputwait.KeyCode.Name
  3327. end
  3328. end)
  3329.  
  3330. game:GetService("UserInputService").InputBegan:connect(
  3331. function(current, pressed)
  3332. if not pressed then
  3333. if current.KeyCode.Name == Key then
  3334. pcall(callback)
  3335. end
  3336. end
  3337. end
  3338. )
  3339. ChannelHolder.CanvasSize = UDim2.new(0,0,0,ChannelHolderLayout.AbsoluteContentSize.Y)
  3340. end
  3341.  
  3342. return ChannelContent
  3343. end
  3344.  
  3345. return ChannelHold
  3346. end
  3347. return ServerHold
  3348. end
  3349. Log("白脚本作者您好,UI被破解了吧", 255,255,0, tostring(gFont))
  3350. return bailib
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement