Advertisement
unknownexploits

fuck

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