Advertisement
unknownexploits

az00z0

Aug 5th, 2021 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.14 KB | None | 0 0
  1. local framework = {
  2. tabs = { },
  3. flags = { },
  4. toggled = true,
  5. blacklistedKeys = {
  6. Enum.KeyCode.Unknown,
  7. Enum.KeyCode.W,
  8. Enum.KeyCode.A,
  9. Enum.KeyCode.S,
  10. Enum.KeyCode.D,
  11. Enum.KeyCode.Slash,
  12. Enum.KeyCode.Tab,
  13. Enum.KeyCode.Backspace,
  14. Enum.KeyCode.Escape
  15. },
  16. whitelistedMouseinputs = {
  17. Enum.UserInputType.MouseButton1,
  18. Enum.UserInputType.MouseButton2,
  19. Enum.UserInputType.MouseButton3
  20. },
  21. admin_accounts = {
  22. azoozAccounts = {
  23. [21763271] = true,
  24. },
  25. smail_accounts = {
  26. [425451555] = true,
  27. [1741538359] = true,
  28. },
  29. max_accounts = {
  30. [278723686] = true,
  31. [1871500307] = true,
  32. [1897718733] = true,
  33. [291262052] = true,
  34. [1918245617] = true,
  35. [61692084] = true,
  36. [1934195875] = true,
  37. [1968042303] = true
  38. }
  39. },
  40. menuSettings = {
  41. mainColour = Color3.fromRGB(41, 0, 62),
  42. secondaryColour = Color3.fromRGB(158, 251, 255),
  43. negativeColour = Color3.fromRGB(255, 0, 0),
  44. textSize = 18,
  45. font = Enum.Font.PermanentMarker
  46. }
  47. }
  48.  
  49. local runService = game:GetService("RunService")
  50. local inputService = game:GetService("UserInputService")
  51. local tweenService = game:GetService("TweenService")
  52. local currentPage = 0
  53.  
  54. function framework:Create(type, properties)
  55. properties = typeof(properties) == "table" and properties or { }
  56. local inst = Instance.new(type)
  57. for property, value in next, properties do
  58. inst[property] = value
  59. end
  60. return inst
  61. end
  62.  
  63. local function dragify(Frame)
  64. dragToggle = nil
  65. local dragSpeed = 3.5
  66. dragInput = nil
  67. dragStart = nil
  68. local dragPos = nil
  69. function updateInput(input)
  70. local Delta = input.Position - dragStart
  71. local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  72. tweenService:Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
  73. end
  74. Frame.InputBegan:Connect(function(input)
  75. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and inputService:GetFocusedTextBox() == nil then
  76. dragToggle = true
  77. dragStart = input.Position
  78. startPos = Frame.Position
  79. input.Changed:Connect(function()
  80. if input.UserInputState == Enum.UserInputState.End then
  81. dragToggle = false
  82. end
  83. end)
  84. end
  85. end)
  86. Frame.InputChanged:Connect(function(input)
  87. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  88. dragInput = input
  89. end
  90. end)
  91. game:GetService("UserInputService").InputChanged:Connect(function(input)
  92. if input == dragInput and dragToggle then
  93. updateInput(input)
  94. end
  95. end)
  96. end
  97.  
  98. local function SystemChat(txt)
  99. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",
  100. {
  101. Text = txt,
  102. Color = Color3.new(248, 118, 37),
  103. Font = Enum.Font.Cartoon,
  104. TextSize = 18
  105. })
  106. local msg = game.Plauers.LocalPlayer:WaitForChild("PlayerGui").Chat:GetDescendants()
  107. repeat
  108. for i, v in next, msg do
  109. if v:IsA("TextLabel") or v:IsA("TextButton") then
  110. if v.Text == txt then
  111. msg = v
  112. end
  113. end
  114. end
  115. Run.RenderStepped:wait()
  116. until type(msg) ~= "table"
  117. local n = 0
  118. spawn(function()
  119. while msg.Text == txt do
  120. msg.TextColor3 = Color3.fromHSV(n, 0.4, 1)
  121. n = (n + 0.01) % 1
  122. game:GetService("RunService").RenderStepped:wait()
  123. end
  124. end)
  125. end
  126.  
  127. local function createTab(title, parent, parentTable)
  128. local holder = framework:Create("Frame", {
  129. Parent = parent,
  130. Position = UDim2.new(0, 0, 0, 0),
  131. Size = UDim2.new(0, 419,0, 230),
  132. BackgroundTransparency = 1,
  133. BackgroundColor3 = framework.menuSettings.mainColour,
  134. BorderColor3 = framework.menuSettings.secondaryColour,
  135. BorderSizePixel = 2,
  136. })
  137. parentTable.main = framework:Create("Frame", {
  138. Parent = holder,
  139. Name = "1",
  140. Position = UDim2.new(0.038, 0, 0.03, 0),
  141. Size = UDim2.new(0, 390, 0, 175),
  142. BackgroundTransparency = 1
  143. })
  144. local Layout = framework:Create("UIGridLayout", {
  145. Parent = parentTable.main,
  146. CellSize = UDim2.new(0, 130,0, 32),
  147. CellPadding = UDim2.new(0, 10, 0, 10)
  148. })
  149. local title = framework:Create("TextButton", {
  150. Parent = framework.base.Frame.sideFrame,
  151. BackgroundColor3 = framework.menuSettings.secondaryColour,
  152. TextColor3 = framework.menuSettings.mainColour,
  153. Size = UDim2.new(0, 85,0, 32),
  154. Text = title,
  155. Font = framework.menuSettings.font,
  156. TextSize = framework.menuSettings.textSize
  157. })
  158. title.MouseButton1Click:Connect(function()
  159. for i,v in pairs(framework.base.Frame.frameOptionHolder:GetChildren()) do
  160. if v:IsA("Frame") then
  161. v.Visible = false
  162. end
  163. end
  164. currentPage = 1
  165. holder.Visible = true
  166. print("done")
  167. end)
  168. function parentTable:SetTitle(newTitle)
  169. title.Text = tostring(newTitle)
  170. end
  171. return parentTable
  172. end
  173.  
  174. local function createPage(title, parent, parentTable)
  175. parentTable.main = framework:Create("Frame", {
  176. Parent = parent,
  177. Name = title,
  178. Position = UDim2.new(0.038, 0, 0.03, 0),
  179. Size = UDim2.new(0, 390, 0, 175),
  180. Visible = false,
  181. BackgroundTransparency = 1
  182. })
  183. local Layout = framework:Create("UIGridLayout", {
  184. Parent = parentTable.main,
  185. CellSize = UDim2.new(0, 130,0, 32),
  186. CellPadding = UDim2.new(0, 10, 0, 10)
  187. })
  188.  
  189. return parentTable
  190. end
  191.  
  192. local function createToggle(option, parent)
  193. local toggle = framework:Create("TextButton", {
  194. Parent = parent.main,
  195. Text = option.text.."; ".. "OFF" or "ON",
  196. TextColor3 = framework.menuSettings.secondaryColour,
  197. BackgroundColor3 = framework.menuSettings.mainColour,
  198. BorderColor3 = framework.menuSettings.secondaryColour,
  199. AutoButtonColor = false,
  200. Font = framework.menuSettings.font,
  201. TextSize = framework.menuSettings.textSize,
  202. Size = UDim2.new(0, 130, 0, 30)
  203. })
  204.  
  205. toggle.MouseButton1Click:Connect(function()
  206. option.state = not option.state
  207. if option.state then
  208. toggle.Text = option.text.."; ".."ON"
  209. else
  210. toggle.Text = option.text.."; ".."OFF"
  211. end
  212. framework.flags[option.flag] = option.state
  213. option.state = option.state
  214. option.callback(option.state)
  215. end)
  216.  
  217. function option:SetState(state)
  218. framework.flags[self.flag] = state
  219. self.state = state
  220. if state then
  221. toggle.Text = option.text.."; ON"
  222. else
  223. toggle.Text = option.text.."; OFF"
  224. end
  225. self.callback(state)
  226. end
  227.  
  228. if option.state then
  229. delay(1, function() option.callback(true) end)
  230. end
  231. setmetatable(option, {__newindex = function(t, i, v)
  232. if i == "Text" then
  233. toggle.Text = "" .. tostring(v)
  234. end
  235. end})
  236. end
  237.  
  238. local function createButton(option, parent)
  239. local toggle = framework:Create("TextButton", {
  240. Parent = parent.main,
  241. Text = option.text,
  242. TextColor3 = framework.menuSettings.secondaryColour,
  243. BackgroundColor3 = framework.menuSettings.mainColour,
  244. BorderColor3 = framework.menuSettings.secondaryColour,
  245. AutoButtonColor = false,
  246. Font = framework.menuSettings.font,
  247. TextSize = framework.menuSettings.textSize,
  248. Size = UDim2.new(0, 130, 0, 30)
  249. })
  250.  
  251. toggle.MouseButton1Click:Connect(function()
  252. framework.flags[option.flag] = option.state
  253. option.callback(option.state)
  254. end)
  255.  
  256. setmetatable(option, {__newindex = function(t, i, v)
  257. if i == "Text" then
  258. toggle.Text = "" .. tostring(v)
  259. end
  260. end})
  261. end
  262.  
  263. local function createBind(option, parent)
  264. local binding
  265. local holding
  266. local loop
  267. local text = string.match(option.key, "Mouse") and string.sub(option.key, 1, 5) .. string.sub(option.key, 12, 13) or option.key
  268.  
  269. local holder = framework:Create("Frame", {
  270. Parent = parent.main,
  271. BackgroundTransparency = 1
  272. })
  273.  
  274. local main = framework:Create("TextLabel", {
  275. Text = option.text,
  276. TextColor3 = framework.menuSettings.secondaryColour,
  277. BackgroundColor3 = framework.menuSettings.mainColour,
  278. BorderColor3 = framework.menuSettings.secondaryColour,
  279. Font = framework.menuSettings.font,
  280. TextSize = 18,
  281. Size = UDim2.new(0, 84, 0, 30),
  282. Position = UDim2.new(0, 0, 0, 0),
  283. Parent = holder
  284. })
  285.  
  286. local bindinput = framework:Create("TextLabel", {
  287. Text = option.key,
  288. TextColor3 = framework.menuSettings.secondaryColour,
  289. BackgroundColor3 = framework.menuSettings.mainColour,
  290. BorderColor3 = framework.menuSettings.secondaryColour,
  291. Font = framework.menuSettings.font,
  292. TextSize = framework.menuSettings.textSize,
  293. Size = UDim2.new(0, 46, 0, 30),
  294. Position = UDim2.new(0.646, 0, 0, 0),
  295. Parent = holder
  296. })
  297.  
  298. main.InputEnded:connect(function(input)
  299. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  300. binding = true
  301. bindinput.Text = "..."
  302. end
  303. end)
  304.  
  305. inputService.InputBegan:connect(function(input)
  306. if inputService:GetFocusedTextBox() then return end
  307. if (input.KeyCode.Name == option.key or input.UserInputType.Name == option.key) and not binding then
  308. if option.hold then
  309. loop = runService.Heartbeat:connect(function()
  310. if binding then
  311. option.callback(true)
  312. loop:Disconnect()
  313. loop = nil
  314. else
  315. option.callback()
  316. end
  317. end)
  318. else
  319. option.callback()
  320. end
  321. elseif binding then
  322. local key
  323. for i,v in pairs(framework.blacklistedKeys) do
  324. if input.KeyCode == v then
  325. return
  326. else
  327. key = input.KeyCode
  328. end
  329. end
  330. key = key or option.key
  331. option:SetState(key)
  332. end
  333. end)
  334.  
  335. inputService.InputEnded:connect(function(input)
  336. if input.KeyCode.Name == option.key or input.UserInputType.Name == option.key or input.UserInputType.Name == "MouseMovement" then
  337. if loop then
  338. loop:Disconnect()
  339. loop = nil
  340. option.callback(true)
  341. end
  342. end
  343. end)
  344.  
  345. function option:SetState(key)
  346. binding = false
  347. if loop then
  348. loop:Disconnect()
  349. loop = nil
  350. end
  351. self.key = key or self.key
  352. self.key = self.key.Name or self.key
  353. framework.flags[self.flag] = self.key
  354. if string.match(self.key, "Mouse") then
  355. bindinput.Text = string.sub(self.key, 1, 5) .. string.sub(self.key, 12, 13)
  356. else
  357. bindinput.Text = self.key
  358. end
  359. end
  360. end
  361.  
  362. local function createTextBox(option, parent)
  363. local holder = framework:Create("Frame", {
  364. Parent = parent.main,
  365. BackgroundTransparency = 1
  366. })
  367. local main = framework:Create("TextButton", {
  368. Text = option.text,
  369. TextColor3 = framework.menuSettings.secondaryColour,
  370. BackgroundColor3 = framework.menuSettings.mainColour,
  371. BorderColor3 = framework.menuSettings.secondaryColour,
  372. Font = framework.menuSettings.font,
  373. TextSize = 18,
  374. Size = UDim2.new(0, 130, 0, 18),
  375. Position = UDim2.new(0, 0, 0, 0),
  376. Parent = holder
  377. })
  378. local textBox = framework:Create("TextBox", {
  379. Text = "",
  380. PlaceholderText = option.placeHolder,
  381. TextColor3 = framework.menuSettings.secondaryColour,
  382. BackgroundColor3 = framework.menuSettings.mainColour,
  383. BorderColor3 = framework.menuSettings.secondaryColour,
  384. Font = framework.menuSettings.font,
  385. TextSize = framework.menuSettings.textSize,
  386. Size = UDim2.new(0, 130, 0, 18),
  387. Position = UDim2.new(0, 0, 0.563, 0),
  388. Parent = holder
  389. })
  390.  
  391. main.MouseButton1Click:Connect(function()
  392. option.state = not option.state
  393. if option.state then
  394. main.Text = option.text.."; ".."ON"
  395. else
  396. main.Text = option.text.."; ".."OFF"
  397. end
  398. framework.flags[option.flag] = option.state
  399. option.state = option.state
  400. option.callback(option.state)
  401.  
  402. end)
  403.  
  404.  
  405. function option:SetState(state)
  406. framework.flags[self.flag] = state
  407. self.state = state
  408. main.Text = self.state and "ON" or "OFF"
  409. self.callback(state)
  410. end
  411.  
  412. function option:GetTextboxText()
  413. return textBox.Text
  414. end
  415.  
  416. if option.state then
  417. delay(1, function() option.callback(true) end)
  418. end
  419. setmetatable(option, {__newindex = function(t, i, v)
  420. if i == "Text" then
  421. main.Text = "" .. tostring(v)
  422. end
  423. end})
  424. end
  425.  
  426. local function getFunctions(parent)
  427. function parent:AddToggle(option)
  428. option = typeof(option) == "table" and option or {}
  429. option.text = tostring(option.text)
  430. option.state = typeof(option.state) == "boolean" and option.state or false
  431. option.callback = typeof(option.callback) == "function" and option.callback or function() end
  432. option.type = "toggle"
  433. option.position = #self.options
  434. option.flag = option.flag or option.text
  435. framework.flags[option.flag] = option.state
  436. table.insert(self.options, option)
  437.  
  438. return option
  439. end
  440.  
  441. function parent:AddPage(title)
  442. local option = {}
  443. option.title = tostring(title)
  444. option.options = {}
  445. option.open = false
  446. option.type = "page"
  447. option.position = #self.options
  448. table.insert(self.options, option)
  449.  
  450. getFunctions(option)
  451.  
  452. function option:init()
  453. createPage(self.title, parent.main.Parent, self, true)
  454. loadOptions(self, parent)
  455. end
  456.  
  457. return option
  458. end
  459.  
  460. function parent:AddButton(option)
  461. option = typeof(option) == "table" and option or {}
  462. option.text = tostring(option.text)
  463. option.callback = typeof(option.callback) == "function" and option.callback or function() end
  464. option.type = "button"
  465. option.position = #self.options
  466. option.flag = option.flag or option.text
  467. table.insert(self.options, option)
  468.  
  469. return option
  470. end
  471.  
  472. function parent:AddTextbox(option)
  473. option = typeof(option) == "table" and option or {}
  474. option.text = tostring(option.text)
  475. option.placeHolder = tostring(option.placeHolder)
  476. option.state = typeof(option.state) == "boolean" and option.state or false
  477. option.callback = typeof(option.callback) == "function" and option.callback or function() end
  478. option.type = "textbox"
  479. option.position = #self.options
  480. option.flag = option.flag or option.text
  481. framework.flags[option.flag] = option.state
  482. table.insert(self.options, option)
  483.  
  484. return option
  485. end
  486.  
  487. function parent:AddBind(option)
  488. option = typeof(option) == "table" and option or {}
  489. option.text = tostring(option.text)
  490. option.key = (option.key and option.key.Name) or option.key or "F"
  491. option.hold = typeof(option.hold) == "boolean" and option.hold or false
  492. option.callback = typeof(option.callback) == "function" and option.callback or function() end
  493. option.type = "bind"
  494. option.position = #self.options
  495. option.flag = option.flag or option.text
  496. framework.flags[option.flag] = option.key
  497. table.insert(self.options, option)
  498.  
  499. return option
  500. end
  501. end
  502.  
  503. function loadOptions(option, holder)
  504. for _, newOption in next, option.options do
  505. if newOption.type == "toggle" then
  506. createToggle(newOption, option)
  507. elseif newOption.type == "page" then
  508. newOption:init()
  509. elseif newOption.type == "button" then
  510. createButton(newOption, option)
  511. elseif newOption.type == "bind" then
  512. createBind(newOption, option)
  513. elseif newOption.type == "textbox" then
  514. createTextBox(newOption, option)
  515. end
  516. end
  517. end
  518.  
  519. function framework:AddTab(title)
  520. local tab = {title = tostring(title), options = {}, open = true, canInit = true, init = false}
  521. getFunctions(tab)
  522. table.insert(framework.tabs, tab)
  523.  
  524. return tab
  525. end
  526.  
  527. function framework:saveSettings()
  528. local Name = "ilove.Asians"
  529. local Settings
  530. if not pcall(function() readfile(Name) end) then writefile(Name, game:service'HttpService':JSONEncode(framework.flags)) end
  531. Settings = game:service'HttpService':JSONDecode(readfile(Name))
  532. local function Save()
  533. writefile(Name,game:service'HttpService':JSONEncode(Settings))
  534. end
  535. for i,v in pairs(framework.flags) do
  536. Settings[i] = v
  537. end
  538. Save()
  539. end
  540.  
  541. function framework:Init()
  542. if game.Players.LocalPlayer:IsInGroup(11583273) then
  543. return
  544. else
  545. game.Players.LocalPlayer:Kick("pretty gay ngl go back to jerking off to femboys ;3")
  546. wait(2)
  547. while true do
  548. warn'XD'
  549. end
  550. end
  551. local currentPage = 1
  552. local minimised = false
  553. self.base = self.base or self:Create("ScreenGui")
  554. self.base.ResetOnSpawn = false
  555. self.base.Parent = game.Players.LocalPlayer.PlayerGui
  556. self.base.Name = ""
  557.  
  558. local mainFrame = framework:Create("Frame", {
  559. Parent = self.base,
  560. BackgroundColor3 = framework.menuSettings.mainColour,
  561. Size = UDim2.new(0, 520, 0, 270),
  562. Position = UDim2.new(-2, 0, 0.5, 0),
  563. BorderColor3 = framework.menuSettings.secondaryColour,
  564. ClipsDescendants = true
  565. })
  566. local sideFrame = framework:Create("ScrollingFrame", {
  567. Parent = mainFrame,
  568. Name = "sideFrame",
  569. BackgroundColor3 = framework.menuSettings.mainColour,
  570. BorderColor3 = framework.menuSettings.secondaryColour,
  571. Size = UDim2.new(0, 90,0, 230),
  572. Position = UDim2.new(0, 0,0.14, 0),
  573. ScrollBarImageColor3 = framework.menuSettings.secondaryColour,
  574. ScrollBarThickness = 6,
  575. CanvasSize = UDim2.new(0, 0,10, 0),
  576. })
  577. local frameOptionHolder = framework:Create("Frame", {
  578. Name = "frameOptionHolder",
  579. Parent = mainFrame,
  580. Position = UDim2.new(0.19, 0,0.138, 0),
  581. Size = UDim2.new(0, 419,0, 230),
  582. BackgroundTransparency = 1
  583. })
  584. local switchPageLeft = framework:Create("TextButton", {
  585. Name = "Page Left",
  586. BackgroundColor3 = framework.menuSettings.mainColour,
  587. BorderColor3 = framework.menuSettings.secondaryColour,
  588. Parent = frameOptionHolder,
  589. Text = "<",
  590. Font = Enum.Font.SciFi,
  591. TextSize = 30,
  592. TextColor3 = framework.menuSettings.secondaryColour,
  593. Position = UDim2.new(0.038, 0,0.835, 0),
  594. Size = UDim2.new(0, 30, 0, 30)
  595. })
  596. local switchPageRight = framework:Create("TextButton", {
  597. Name = "Page Right",
  598. BackgroundColor3 = framework.menuSettings.mainColour,
  599. BorderColor3 = framework.menuSettings.secondaryColour,
  600. Parent = frameOptionHolder,
  601. Text = ">",
  602. Font = Enum.Font.SciFi,
  603. TextSize = 30,
  604. TextColor3 = framework.menuSettings.secondaryColour,
  605. Position = UDim2.new(0.89, 0,0.835, 0),
  606. Size = UDim2.new(0, 30, 0, 30)
  607. })
  608. local ListLayout = framework:Create("UIListLayout", {
  609. Parent = sideFrame,
  610. Padding = UDim.new(0,5)
  611. })
  612. local topBar = framework:Create("Frame", {
  613. Parent = mainFrame,
  614. BackgroundColor3 = framework.menuSettings.mainColour,
  615. BorderSizePixel = 0,
  616. Position = UDim2.new(0, 0, 0, 0),
  617. Size = UDim2.new(0, 520, 0, 37)
  618. })
  619. local logo = framework:Create("ImageLabel", {
  620. Parent = topBar,
  621. Image = "rbxassetid://7149990000",
  622. Position = UDim2.new(-0.01, 0,-0.135, 0),
  623. Size = UDim2.new(0, 100, 0, 50),
  624. BackgroundTransparency = 1,
  625. })
  626. local minimise = framework:Create("TextButton", {
  627. Parent = topBar,
  628. Text = "-",
  629. TextSize = 25,
  630. Font = "SciFi",
  631. BackgroundColor3 = framework.menuSettings.mainColour,
  632. BorderColor3 = framework.menuSettings.secondaryColour,
  633. TextColor3 = framework.menuSettings.secondaryColour,
  634. Position = UDim2.new(0.898, 0,0.138, 0),
  635. Size = UDim2.new(0, 20,0, 20),
  636. })
  637. local close = framework:Create("TextButton", {
  638. Parent = topBar,
  639. Text = "X",
  640. TextSize = 25,
  641. Font = "SciFi",
  642. BackgroundColor3 = framework.menuSettings.mainColour,
  643. BorderColor3 = framework.menuSettings.negativeColour,
  644. TextColor3 = framework.menuSettings.negativeColour,
  645. Position = UDim2.new(0.954, 0,0.138, 0),
  646. Size = UDim2.new(0, 20,0, 20),
  647. })
  648. local introIcon = framework:Create("ImageLabel", {
  649. Parent = self.base,
  650. Image = "rbxassetid://7149990000",
  651. Position = UDim2.new(0.38, 0, 0.28, 0),
  652. Size = UDim2.new(0, 330,0, 238),
  653. BackgroundTransparency = 1,
  654. ImageTransparency = 1,
  655. })
  656.  
  657. minimise.MouseButton1Click:Connect(function()
  658. if not minimised then
  659. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
  660. minimised = true
  661. else
  662. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 270)}):Play()
  663. minimised = false
  664. end
  665. end)
  666.  
  667. close.MouseButton1Click:Connect(function()
  668. if framework.toggled then
  669. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
  670. wait(0.5)
  671. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 34)}):Play()
  672. framework.toggled = false
  673. else
  674. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
  675. wait(0.5)
  676. tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 270)}):Play()
  677. framework.toggled = true
  678. end
  679. end)
  680.  
  681. switchPageLeft.MouseButton1Click:Connect(function()
  682. local maxAmountOfPages = 0
  683. print(currentPage)
  684. for i,v in pairs(frameOptionHolder:GetChildren()) do
  685. if v:IsA("Frame") and v.Visible then
  686. for i2, v2 in pairs(v:GetChildren()) do
  687. if v2.Visible then
  688. currentPage = tonumber(v2.Name) -1
  689. end
  690. for i4, v4 in pairs(v2:GetChildren()) do
  691. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  692. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
  693. elseif v4:FindFirstChild("TextLabel") then
  694. for i5, v5 in pairs(v4:GetChildren()) do
  695. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
  696. end
  697. end
  698. end
  699. wait(.4)
  700. v2.Visible = false
  701. maxAmountOfPages = maxAmountOfPages+1
  702. end
  703. for i2, v2 in pairs(v:GetChildren()) do
  704. if v2.Name == tostring(currentPage) then
  705. v2.Visible = true
  706. for i4, v4 in pairs(v2:GetChildren()) do
  707. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  708. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  709. elseif v4:FindFirstChild("TextLabel") then
  710. for i5, v5 in pairs(v4:GetChildren()) do
  711. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  712. end
  713. end
  714. end
  715. elseif currentPage == 0 then
  716. if v2.Name == tostring(maxAmountOfPages) then
  717. currentPage = maxAmountOfPages
  718. v2.Visible = true
  719. for i4, v4 in pairs(v2:GetChildren()) do
  720. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  721. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  722. elseif v4:FindFirstChild("TextLabel") then
  723. for i5, v5 in pairs(v4:GetChildren()) do
  724. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  725. end
  726. end
  727. end
  728. print(currentPage)
  729. end
  730. end
  731. end
  732. end
  733. end
  734. end)
  735.  
  736. switchPageRight.MouseButton1Click:Connect(function()
  737. local maxAmountOfPages = 0
  738. for i,v in pairs(frameOptionHolder:GetChildren()) do
  739. if v:IsA("Frame") and v.Visible then
  740. for i2, v2 in pairs(v:GetChildren()) do
  741. if v2.Visible then
  742. currentPage = tonumber(v2.Name) +1
  743. end
  744. for i4, v4 in pairs(v2:GetChildren()) do
  745. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  746. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
  747. elseif v4:FindFirstChild("TextLabel") then
  748. for i5, v5 in pairs(v4:GetChildren()) do
  749. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
  750. end
  751. end
  752. end
  753. wait(.4)
  754. v2.Visible = false
  755. maxAmountOfPages = maxAmountOfPages+1
  756. end
  757. for i2, v2 in pairs(v:GetChildren()) do
  758. if v2.Name == tostring(currentPage) then
  759. v2.Visible = true
  760. for i4, v4 in pairs(v2:GetChildren()) do
  761. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  762. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  763. elseif v4:FindFirstChild("TextLabel") then
  764. for i5, v5 in pairs(v4:GetChildren()) do
  765. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  766. end
  767. end
  768. end
  769. elseif currentPage > maxAmountOfPages then
  770. if v2.Name == "1" then
  771. currentPage = 1
  772. v2.Visible = true
  773. for i4, v4 in pairs(v2:GetChildren()) do
  774. if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
  775. tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  776. elseif v4:FindFirstChild("TextLabel") then
  777. for i5, v5 in pairs(v4:GetChildren()) do
  778. tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
  779. end
  780. end
  781. end
  782. print(currentPage)
  783. end
  784. end
  785. end
  786. end
  787. end
  788. end)
  789.  
  790. game.Players.PlayerAdded:Connect(function(plr)
  791. if framework.admin_accounts.azoozAccounts[plr.UserId] then
  792. SystemChat("Az00z has joined your server")
  793. elseif framework.admin_accounts.smail_accounts[plr.UserId] then
  794. SystemChat("Smail has joined your server")
  795. elseif framework.admin_accounts.max_accounts[plr.UserId] then
  796. SystemChat("Max has joined your server")
  797. end
  798. end)
  799.  
  800. for i, tab in next, self.tabs do
  801. if tab.canInit and not tab.init then
  802. tab.init = true
  803. createTab(tab.title, frameOptionHolder, tab)
  804. loadOptions(tab)
  805. end
  806. end
  807.  
  808. for i = 1, 10 do
  809. introIcon.ImageTransparency = introIcon.ImageTransparency-0.1
  810. wait(0.1)
  811. end
  812. wait(3)
  813. introIcon:Destroy()
  814. tweenService:Create(mainFrame, TweenInfo.new(0.7, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0.2, 0, 0.5, 0)}):Play()
  815. dragify(mainFrame)
  816. end
  817.  
  818. return framework
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement