Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local framework = {
- tabs = { },
- flags = { },
- toggled = true,
- blacklistedKeys = {
- Enum.KeyCode.Unknown,
- Enum.KeyCode.W,
- Enum.KeyCode.A,
- Enum.KeyCode.S,
- Enum.KeyCode.D,
- Enum.KeyCode.Slash,
- Enum.KeyCode.Tab,
- Enum.KeyCode.Backspace,
- Enum.KeyCode.Escape
- },
- whitelistedMouseinputs = {
- Enum.UserInputType.MouseButton1,
- Enum.UserInputType.MouseButton2,
- Enum.UserInputType.MouseButton3
- },
- admin_accounts = {
- azoozAccounts = {
- [21763271] = true,
- },
- smail_accounts = {
- [425451555] = true,
- [1741538359] = true,
- },
- max_accounts = {
- [278723686] = true,
- [1871500307] = true,
- [1897718733] = true,
- [291262052] = true,
- [1918245617] = true,
- [61692084] = true,
- [1934195875] = true,
- [1968042303] = true
- }
- },
- menuSettings = {
- mainColour = Color3.fromRGB(41, 0, 62),
- secondaryColour = Color3.fromRGB(158, 251, 255),
- negativeColour = Color3.fromRGB(255, 0, 0),
- textSize = 18,
- font = Enum.Font.PermanentMarker
- }
- }
- local runService = game:GetService("RunService")
- local inputService = game:GetService("UserInputService")
- local tweenService = game:GetService("TweenService")
- local currentPage = 0
- function framework:Create(type, properties)
- properties = typeof(properties) == "table" and properties or { }
- local inst = Instance.new(type)
- for property, value in next, properties do
- inst[property] = value
- end
- return inst
- end
- local function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 3.5
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- tweenService:Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and inputService:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- local function SystemChat(txt)
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",
- {
- Text = txt,
- Color = Color3.new(248, 118, 37),
- Font = Enum.Font.Cartoon,
- TextSize = 18
- })
- local msg = game.Plauers.LocalPlayer:WaitForChild("PlayerGui").Chat:GetDescendants()
- repeat
- for i, v in next, msg do
- if v:IsA("TextLabel") or v:IsA("TextButton") then
- if v.Text == txt then
- msg = v
- end
- end
- end
- Run.RenderStepped:wait()
- until type(msg) ~= "table"
- local n = 0
- spawn(function()
- while msg.Text == txt do
- msg.TextColor3 = Color3.fromHSV(n, 0.4, 1)
- n = (n + 0.01) % 1
- game:GetService("RunService").RenderStepped:wait()
- end
- end)
- end
- local function createTab(title, parent, parentTable)
- local holder = framework:Create("Frame", {
- Parent = parent,
- Position = UDim2.new(0, 0, 0, 0),
- Size = UDim2.new(0, 419,0, 230),
- BackgroundTransparency = 1,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- BorderSizePixel = 2,
- })
- parentTable.main = framework:Create("Frame", {
- Parent = holder,
- Name = "1",
- Position = UDim2.new(0.038, 0, 0.03, 0),
- Size = UDim2.new(0, 390, 0, 175),
- BackgroundTransparency = 1
- })
- local Layout = framework:Create("UIGridLayout", {
- Parent = parentTable.main,
- CellSize = UDim2.new(0, 130,0, 32),
- CellPadding = UDim2.new(0, 10, 0, 10)
- })
- local title = framework:Create("TextButton", {
- Parent = framework.base.Frame.sideFrame,
- BackgroundColor3 = framework.menuSettings.secondaryColour,
- TextColor3 = framework.menuSettings.mainColour,
- Size = UDim2.new(0, 85,0, 32),
- Text = title,
- Font = framework.menuSettings.font,
- TextSize = framework.menuSettings.textSize
- })
- title.MouseButton1Click:Connect(function()
- for i,v in pairs(framework.base.Frame.frameOptionHolder:GetChildren()) do
- if v:IsA("Frame") then
- v.Visible = false
- end
- end
- currentPage = 1
- holder.Visible = true
- print("done")
- end)
- function parentTable:SetTitle(newTitle)
- title.Text = tostring(newTitle)
- end
- return parentTable
- end
- local function createPage(title, parent, parentTable)
- parentTable.main = framework:Create("Frame", {
- Parent = parent,
- Name = title,
- Position = UDim2.new(0.038, 0, 0.03, 0),
- Size = UDim2.new(0, 390, 0, 175),
- Visible = false,
- BackgroundTransparency = 1
- })
- local Layout = framework:Create("UIGridLayout", {
- Parent = parentTable.main,
- CellSize = UDim2.new(0, 130,0, 32),
- CellPadding = UDim2.new(0, 10, 0, 10)
- })
- return parentTable
- end
- local function createToggle(option, parent)
- local toggle = framework:Create("TextButton", {
- Parent = parent.main,
- Text = option.text.."; ".. "OFF" or "ON",
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- AutoButtonColor = false,
- Font = framework.menuSettings.font,
- TextSize = framework.menuSettings.textSize,
- Size = UDim2.new(0, 130, 0, 30)
- })
- toggle.MouseButton1Click:Connect(function()
- option.state = not option.state
- if option.state then
- toggle.Text = option.text.."; ".."ON"
- else
- toggle.Text = option.text.."; ".."OFF"
- end
- framework.flags[option.flag] = option.state
- option.state = option.state
- option.callback(option.state)
- end)
- function option:SetState(state)
- framework.flags[self.flag] = state
- self.state = state
- if state then
- toggle.Text = option.text.."; ON"
- else
- toggle.Text = option.text.."; OFF"
- end
- self.callback(state)
- end
- if option.state then
- delay(1, function() option.callback(true) end)
- end
- setmetatable(option, {__newindex = function(t, i, v)
- if i == "Text" then
- toggle.Text = "" .. tostring(v)
- end
- end})
- end
- local function createButton(option, parent)
- local toggle = framework:Create("TextButton", {
- Parent = parent.main,
- Text = option.text,
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- AutoButtonColor = false,
- Font = framework.menuSettings.font,
- TextSize = framework.menuSettings.textSize,
- Size = UDim2.new(0, 130, 0, 30)
- })
- toggle.MouseButton1Click:Connect(function()
- framework.flags[option.flag] = option.state
- option.callback(option.state)
- end)
- setmetatable(option, {__newindex = function(t, i, v)
- if i == "Text" then
- toggle.Text = "" .. tostring(v)
- end
- end})
- end
- local function createBind(option, parent)
- local binding
- local holding
- local loop
- local text = string.match(option.key, "Mouse") and string.sub(option.key, 1, 5) .. string.sub(option.key, 12, 13) or option.key
- local holder = framework:Create("Frame", {
- Parent = parent.main,
- BackgroundTransparency = 1
- })
- local main = framework:Create("TextLabel", {
- Text = option.text,
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Font = framework.menuSettings.font,
- TextSize = 18,
- Size = UDim2.new(0, 84, 0, 30),
- Position = UDim2.new(0, 0, 0, 0),
- Parent = holder
- })
- local bindinput = framework:Create("TextLabel", {
- Text = option.key,
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Font = framework.menuSettings.font,
- TextSize = framework.menuSettings.textSize,
- Size = UDim2.new(0, 46, 0, 30),
- Position = UDim2.new(0.646, 0, 0, 0),
- Parent = holder
- })
- main.InputEnded:connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- binding = true
- bindinput.Text = "..."
- end
- end)
- inputService.InputBegan:connect(function(input)
- if inputService:GetFocusedTextBox() then return end
- if (input.KeyCode.Name == option.key or input.UserInputType.Name == option.key) and not binding then
- if option.hold then
- loop = runService.Heartbeat:connect(function()
- if binding then
- option.callback(true)
- loop:Disconnect()
- loop = nil
- else
- option.callback()
- end
- end)
- else
- option.callback()
- end
- elseif binding then
- local key
- for i,v in pairs(framework.blacklistedKeys) do
- if input.KeyCode == v then
- return
- else
- key = input.KeyCode
- end
- end
- key = key or option.key
- option:SetState(key)
- end
- end)
- inputService.InputEnded:connect(function(input)
- if input.KeyCode.Name == option.key or input.UserInputType.Name == option.key or input.UserInputType.Name == "MouseMovement" then
- if loop then
- loop:Disconnect()
- loop = nil
- option.callback(true)
- end
- end
- end)
- function option:SetState(key)
- binding = false
- if loop then
- loop:Disconnect()
- loop = nil
- end
- self.key = key or self.key
- self.key = self.key.Name or self.key
- framework.flags[self.flag] = self.key
- if string.match(self.key, "Mouse") then
- bindinput.Text = string.sub(self.key, 1, 5) .. string.sub(self.key, 12, 13)
- else
- bindinput.Text = self.key
- end
- end
- end
- local function createTextBox(option, parent)
- local holder = framework:Create("Frame", {
- Parent = parent.main,
- BackgroundTransparency = 1
- })
- local main = framework:Create("TextButton", {
- Text = option.text,
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Font = framework.menuSettings.font,
- TextSize = 18,
- Size = UDim2.new(0, 130, 0, 18),
- Position = UDim2.new(0, 0, 0, 0),
- Parent = holder
- })
- local textBox = framework:Create("TextBox", {
- Text = "",
- PlaceholderText = option.placeHolder,
- TextColor3 = framework.menuSettings.secondaryColour,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Font = framework.menuSettings.font,
- TextSize = framework.menuSettings.textSize,
- Size = UDim2.new(0, 130, 0, 18),
- Position = UDim2.new(0, 0, 0.563, 0),
- Parent = holder
- })
- main.MouseButton1Click:Connect(function()
- option.state = not option.state
- if option.state then
- main.Text = option.text.."; ".."ON"
- else
- main.Text = option.text.."; ".."OFF"
- end
- framework.flags[option.flag] = option.state
- option.state = option.state
- option.callback(option.state)
- end)
- function option:SetState(state)
- framework.flags[self.flag] = state
- self.state = state
- main.Text = self.state and "ON" or "OFF"
- self.callback(state)
- end
- function option:GetTextboxText()
- return textBox.Text
- end
- if option.state then
- delay(1, function() option.callback(true) end)
- end
- setmetatable(option, {__newindex = function(t, i, v)
- if i == "Text" then
- main.Text = "" .. tostring(v)
- end
- end})
- end
- local function getFunctions(parent)
- function parent:AddToggle(option)
- option = typeof(option) == "table" and option or {}
- option.text = tostring(option.text)
- option.state = typeof(option.state) == "boolean" and option.state or false
- option.callback = typeof(option.callback) == "function" and option.callback or function() end
- option.type = "toggle"
- option.position = #self.options
- option.flag = option.flag or option.text
- framework.flags[option.flag] = option.state
- table.insert(self.options, option)
- return option
- end
- function parent:AddPage(title)
- local option = {}
- option.title = tostring(title)
- option.options = {}
- option.open = false
- option.type = "page"
- option.position = #self.options
- table.insert(self.options, option)
- getFunctions(option)
- function option:init()
- createPage(self.title, parent.main.Parent, self, true)
- loadOptions(self, parent)
- end
- return option
- end
- function parent:AddButton(option)
- option = typeof(option) == "table" and option or {}
- option.text = tostring(option.text)
- option.callback = typeof(option.callback) == "function" and option.callback or function() end
- option.type = "button"
- option.position = #self.options
- option.flag = option.flag or option.text
- table.insert(self.options, option)
- return option
- end
- function parent:AddTextbox(option)
- option = typeof(option) == "table" and option or {}
- option.text = tostring(option.text)
- option.placeHolder = tostring(option.placeHolder)
- option.state = typeof(option.state) == "boolean" and option.state or false
- option.callback = typeof(option.callback) == "function" and option.callback or function() end
- option.type = "textbox"
- option.position = #self.options
- option.flag = option.flag or option.text
- framework.flags[option.flag] = option.state
- table.insert(self.options, option)
- return option
- end
- function parent:AddBind(option)
- option = typeof(option) == "table" and option or {}
- option.text = tostring(option.text)
- option.key = (option.key and option.key.Name) or option.key or "F"
- option.hold = typeof(option.hold) == "boolean" and option.hold or false
- option.callback = typeof(option.callback) == "function" and option.callback or function() end
- option.type = "bind"
- option.position = #self.options
- option.flag = option.flag or option.text
- framework.flags[option.flag] = option.key
- table.insert(self.options, option)
- return option
- end
- end
- function loadOptions(option, holder)
- for _, newOption in next, option.options do
- if newOption.type == "toggle" then
- createToggle(newOption, option)
- elseif newOption.type == "page" then
- newOption:init()
- elseif newOption.type == "button" then
- createButton(newOption, option)
- elseif newOption.type == "bind" then
- createBind(newOption, option)
- elseif newOption.type == "textbox" then
- createTextBox(newOption, option)
- end
- end
- end
- function framework:AddTab(title)
- local tab = {title = tostring(title), options = {}, open = true, canInit = true, init = false}
- getFunctions(tab)
- table.insert(framework.tabs, tab)
- return tab
- end
- function framework:saveSettings()
- local Name = "ilove.Asians"
- local Settings
- if not pcall(function() readfile(Name) end) then writefile(Name, game:service'HttpService':JSONEncode(framework.flags)) end
- Settings = game:service'HttpService':JSONDecode(readfile(Name))
- local function Save()
- writefile(Name,game:service'HttpService':JSONEncode(Settings))
- end
- for i,v in pairs(framework.flags) do
- Settings[i] = v
- end
- Save()
- end
- function framework:Init()
- if game.Players.LocalPlayer:IsInGroup(11583273) then
- return
- else
- game.Players.LocalPlayer:Kick("pretty gay ngl go back to jerking off to femboys ;3")
- wait(2)
- while true do
- warn'XD'
- end
- end
- local currentPage = 1
- local minimised = false
- self.base = self.base or self:Create("ScreenGui")
- self.base.ResetOnSpawn = false
- self.base.Parent = game.Players.LocalPlayer.PlayerGui
- self.base.Name = ""
- local mainFrame = framework:Create("Frame", {
- Parent = self.base,
- BackgroundColor3 = framework.menuSettings.mainColour,
- Size = UDim2.new(0, 520, 0, 270),
- Position = UDim2.new(-2, 0, 0.5, 0),
- BorderColor3 = framework.menuSettings.secondaryColour,
- ClipsDescendants = true
- })
- local sideFrame = framework:Create("ScrollingFrame", {
- Parent = mainFrame,
- Name = "sideFrame",
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Size = UDim2.new(0, 90,0, 230),
- Position = UDim2.new(0, 0,0.14, 0),
- ScrollBarImageColor3 = framework.menuSettings.secondaryColour,
- ScrollBarThickness = 6,
- CanvasSize = UDim2.new(0, 0,10, 0),
- })
- local frameOptionHolder = framework:Create("Frame", {
- Name = "frameOptionHolder",
- Parent = mainFrame,
- Position = UDim2.new(0.19, 0,0.138, 0),
- Size = UDim2.new(0, 419,0, 230),
- BackgroundTransparency = 1
- })
- local switchPageLeft = framework:Create("TextButton", {
- Name = "Page Left",
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Parent = frameOptionHolder,
- Text = "<",
- Font = Enum.Font.SciFi,
- TextSize = 30,
- TextColor3 = framework.menuSettings.secondaryColour,
- Position = UDim2.new(0.038, 0,0.835, 0),
- Size = UDim2.new(0, 30, 0, 30)
- })
- local switchPageRight = framework:Create("TextButton", {
- Name = "Page Right",
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- Parent = frameOptionHolder,
- Text = ">",
- Font = Enum.Font.SciFi,
- TextSize = 30,
- TextColor3 = framework.menuSettings.secondaryColour,
- Position = UDim2.new(0.89, 0,0.835, 0),
- Size = UDim2.new(0, 30, 0, 30)
- })
- local ListLayout = framework:Create("UIListLayout", {
- Parent = sideFrame,
- Padding = UDim.new(0,5)
- })
- local topBar = framework:Create("Frame", {
- Parent = mainFrame,
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 0),
- Size = UDim2.new(0, 520, 0, 37)
- })
- local logo = framework:Create("ImageLabel", {
- Parent = topBar,
- Image = "rbxassetid://7149990000",
- Position = UDim2.new(-0.01, 0,-0.135, 0),
- Size = UDim2.new(0, 100, 0, 50),
- BackgroundTransparency = 1,
- })
- local minimise = framework:Create("TextButton", {
- Parent = topBar,
- Text = "-",
- TextSize = 25,
- Font = "SciFi",
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.secondaryColour,
- TextColor3 = framework.menuSettings.secondaryColour,
- Position = UDim2.new(0.898, 0,0.138, 0),
- Size = UDim2.new(0, 20,0, 20),
- })
- local close = framework:Create("TextButton", {
- Parent = topBar,
- Text = "X",
- TextSize = 25,
- Font = "SciFi",
- BackgroundColor3 = framework.menuSettings.mainColour,
- BorderColor3 = framework.menuSettings.negativeColour,
- TextColor3 = framework.menuSettings.negativeColour,
- Position = UDim2.new(0.954, 0,0.138, 0),
- Size = UDim2.new(0, 20,0, 20),
- })
- local introIcon = framework:Create("ImageLabel", {
- Parent = self.base,
- Image = "rbxassetid://7149990000",
- Position = UDim2.new(0.38, 0, 0.28, 0),
- Size = UDim2.new(0, 330,0, 238),
- BackgroundTransparency = 1,
- ImageTransparency = 1,
- })
- minimise.MouseButton1Click:Connect(function()
- if not minimised then
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
- minimised = true
- else
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 270)}):Play()
- minimised = false
- end
- end)
- close.MouseButton1Click:Connect(function()
- if framework.toggled then
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
- wait(0.5)
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 34)}):Play()
- framework.toggled = false
- else
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 34)}):Play()
- wait(0.5)
- tweenService:Create(mainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 520, 0, 270)}):Play()
- framework.toggled = true
- end
- end)
- switchPageLeft.MouseButton1Click:Connect(function()
- local maxAmountOfPages = 0
- print(currentPage)
- for i,v in pairs(frameOptionHolder:GetChildren()) do
- if v:IsA("Frame") and v.Visible then
- for i2, v2 in pairs(v:GetChildren()) do
- if v2.Visible then
- currentPage = tonumber(v2.Name) -1
- end
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
- end
- end
- end
- wait(.4)
- v2.Visible = false
- maxAmountOfPages = maxAmountOfPages+1
- end
- for i2, v2 in pairs(v:GetChildren()) do
- if v2.Name == tostring(currentPage) then
- v2.Visible = true
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- end
- end
- end
- elseif currentPage == 0 then
- if v2.Name == tostring(maxAmountOfPages) then
- currentPage = maxAmountOfPages
- v2.Visible = true
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- end
- end
- end
- print(currentPage)
- end
- end
- end
- end
- end
- end)
- switchPageRight.MouseButton1Click:Connect(function()
- local maxAmountOfPages = 0
- for i,v in pairs(frameOptionHolder:GetChildren()) do
- if v:IsA("Frame") and v.Visible then
- for i2, v2 in pairs(v:GetChildren()) do
- if v2.Visible then
- currentPage = tonumber(v2.Name) +1
- end
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
- end
- end
- end
- wait(.4)
- v2.Visible = false
- maxAmountOfPages = maxAmountOfPages+1
- end
- for i2, v2 in pairs(v:GetChildren()) do
- if v2.Name == tostring(currentPage) then
- v2.Visible = true
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- end
- end
- end
- elseif currentPage > maxAmountOfPages then
- if v2.Name == "1" then
- currentPage = 1
- v2.Visible = true
- for i4, v4 in pairs(v2:GetChildren()) do
- if v4:IsA("TextButton") or v4:IsA("TextLabel") or v4:IsA("TextBox") then
- tweenService:Create(v4, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- elseif v4:FindFirstChild("TextLabel") then
- for i5, v5 in pairs(v4:GetChildren()) do
- tweenService:Create(v5, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0, TextTransparency = 0}):Play()
- end
- end
- end
- print(currentPage)
- end
- end
- end
- end
- end
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- if framework.admin_accounts.azoozAccounts[plr.UserId] then
- SystemChat("Az00z has joined your server")
- elseif framework.admin_accounts.smail_accounts[plr.UserId] then
- SystemChat("Smail has joined your server")
- elseif framework.admin_accounts.max_accounts[plr.UserId] then
- SystemChat("Max has joined your server")
- end
- end)
- for i, tab in next, self.tabs do
- if tab.canInit and not tab.init then
- tab.init = true
- createTab(tab.title, frameOptionHolder, tab)
- loadOptions(tab)
- end
- end
- for i = 1, 10 do
- introIcon.ImageTransparency = introIcon.ImageTransparency-0.1
- wait(0.1)
- end
- wait(3)
- introIcon:Destroy()
- tweenService:Create(mainFrame, TweenInfo.new(0.7, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = UDim2.new(0.2, 0, 0.5, 0)}):Play()
- dragify(mainFrame)
- end
- return framework
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement