diff --git a/luau/157877000.luau b/luau/157877000.luau index 9f2026c..64f2d2c 100644 --- a/luau/157877000.luau +++ b/luau/157877000.luau @@ -5,8 +5,7 @@ for _ = 1, 8 do end --Include -local Create: (instance: string) -> ({ [string]: any }) -> Instance = - assert(LoadLibrary "RbxUtility").Create +local New = require "../Modules/New" -- A Few Script Globals local gui @@ -18,7 +17,7 @@ end -- Dev-Console Root -local Dev_Container = Create "Frame" { +local Dev_Container = New "Frame" { Name = "DevConsoleContainer", Parent = gui, BackgroundColor3 = Color3.new(0, 0, 0), @@ -28,7 +27,7 @@ local Dev_Container = Create "Frame" { Visible = false, } -local ToggleConsole = Create "BindableFunction" { +local ToggleConsole = New "BindableFunction" { Name = "ToggleDevConsole", Parent = gui, } @@ -67,16 +66,55 @@ function initializeDeveloperConsole() --Create Dev-Console - local Dev_Body = Create "Frame" { + local Dev_Body = New "Frame" { Name = "Body", Parent = Dev_Container, BackgroundColor3 = Color3.new(0, 0, 0), BackgroundTransparency = 0.5, Position = UDim2.new(0, 0, 0, 21), Size = UDim2.new(1, 0, 1, -25), + New "TextButton" { + Name = "LocalConsole", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.6, + Position = UDim2.new(0, 7, 0, 5), + Size = UDim2.new(0, 90, 0, 20), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "Local Console", + TextColor3 = Color3.new(1, 1, 1), + TextYAlignment = Enum.TextYAlignment.Center, + }, + New "TextButton" { + Name = "ServerConsole", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.8, + Position = UDim2.new(0, 102, 0, 5), + Size = UDim2.new(0, 90, 0, 17), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "Server Console", + TextColor3 = Color3.new(1, 1, 1), + TextYAlignment = Enum.TextYAlignment.Center, + }, + New "ImageButton" { + Name = "ResizeButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(1, -20, 1, -20), + Size = UDim2.new(0, 20, 0, 20), + New "ImageLabel" { + Name = "ImageLabel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 6, 0, 6), + Size = UDim2.new(0.8, 0, 0.8, 0), + Rotation = 135, + Image = "http://banland.xyz/Asset?id=151205813", + }, + }, } - local Dev_OptionsHolder = Create "Frame" { + local Dev_OptionsHolder = New "Frame" { Name = "OptionsHolder", Parent = Dev_Body, BackgroundColor3 = Color3.new(0, 0, 0), @@ -86,151 +124,127 @@ function initializeDeveloperConsole() ClipsDescendants = true, } - local Dev_OptionsBar = Create "Frame" { + local Dev_OptionsBar = New "Frame" { Name = "OptionsBar", Parent = Dev_OptionsHolder, BackgroundColor3 = Color3.new(0, 0, 0), BackgroundTransparency = 1, Position = UDim2.new(0, -250, 0, 4), Size = UDim2.new(0, 234, 0, 18), + New "TextButton" { + Name = "ErrorToggleButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(1, 0, 0), + Position = UDim2.new(0, 115, 0, 0), + Size = UDim2.new(0, 18, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "", + TextColor3 = Color3.new(1, 0, 0), + New "Frame" { + Name = "CheckFrame", + BackgroundColor3 = Color3.new(1, 0, 0), + BorderColor3 = Color3.new(1, 0, 0), + Position = UDim2.new(0, 4, 0, 4), + Size = UDim2.new(0, 10, 0, 10), + }, + }, + New "TextButton" { + Name = "InfoToggleButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(0.4, 0.5, 1.0), + Position = UDim2.new(0, 65, 0, 0), + Size = UDim2.new(0, 18, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "", + TextColor3 = Color3.new(0.4, 0.5, 1.0), + New "Frame" { + Name = "CheckFrame", + BackgroundColor3 = Color3.new(0.4, 0.5, 1.0), + BorderColor3 = Color3.new(0.4, 0.5, 1.0), + Position = UDim2.new(0, 4, 0, 4), + Size = UDim2.new(0, 10, 0, 10), + }, + }, + New "TextButton" { + Name = "OutputToggleButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(1, 1, 1.0), + Position = UDim2.new(0, 40, 0, 0), + Size = UDim2.new(0, 18, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "", + TextColor3 = Color3.new(1, 1, 1.0), + New "Frame" { + Name = "CheckFrame", + BackgroundColor3 = Color3.new(1, 1, 1.0), + BorderColor3 = Color3.new(1, 1, 1.0), + Position = UDim2.new(0, 4, 0, 4), + Size = UDim2.new(0, 10, 0, 10), + }, + }, + New "TextButton" { + Name = "WarningToggleButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(1, 0.6, 0.4), + Position = UDim2.new(0, 90, 0, 0), + Size = UDim2.new(0, 18, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "", + TextColor3 = Color3.new(1, 0.6, 0.4), + New "Frame" { + Name = "CheckFrame", + BackgroundColor3 = Color3.new(1, 0.6, 0.4), + BorderColor3 = Color3.new(1, 0.6, 0.4), + Position = UDim2.new(0, 4, 0, 4), + Size = UDim2.new(0, 10, 0, 10), + }, + }, + New "TextButton" { + Name = "WordWrapToggleButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(0.8, 0.8, 0.8), + Position = UDim2.new(0, 215, 0, 0), + Size = UDim2.new(0, 18, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "", + TextColor3 = Color3.new(0.8, 0.8, 0.8), + New "Frame" { + Name = "CheckFrame", + BackgroundColor3 = Color3.new(0.8, 0.8, 0.8), + BorderColor3 = Color3.new(0.8, 0.8, 0.8), + Position = UDim2.new(0, 4, 0, 4), + Size = UDim2.new(0, 10, 0, 10), + Visible = false, + }, + }, + New "TextLabel" { + Name = "Filter", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 40, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "Filter", + TextColor3 = Color3.new(1, 1, 1), + }, + New "TextLabel" { + Name = "WordWrap", + BackgroundTransparency = 1, + Position = UDim2.new(0, 150, 0, 0), + Size = UDim2.new(0, 50, 0, 18), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size14, + Text = "Word Wrap", + TextColor3 = Color3.new(1, 1, 1), + }, } - local Dev_ErrorToggleFilter = Create "TextButton" { - Name = "ErrorToggleButton", - Parent = Dev_OptionsBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BorderColor3 = Color3.new(1, 0, 0), - Position = UDim2.new(0, 115, 0, 0), - Size = UDim2.new(0, 18, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "", - TextColor3 = Color3.new(1, 0, 0), - } - - Create "Frame" { - Name = "CheckFrame", - Parent = Dev_ErrorToggleFilter, - BackgroundColor3 = Color3.new(1, 0, 0), - BorderColor3 = Color3.new(1, 0, 0), - Position = UDim2.new(0, 4, 0, 4), - Size = UDim2.new(0, 10, 0, 10), - } - - local Dev_InfoToggleFilter = Create "TextButton" { - Name = "InfoToggleButton", - Parent = Dev_OptionsBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BorderColor3 = Color3.new(0.4, 0.5, 1.0), - Position = UDim2.new(0, 65, 0, 0), - Size = UDim2.new(0, 18, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "", - TextColor3 = Color3.new(0.4, 0.5, 1.0), - } - - Create "Frame" { - Name = "CheckFrame", - Parent = Dev_InfoToggleFilter, - BackgroundColor3 = Color3.new(0.4, 0.5, 1.0), - BorderColor3 = Color3.new(0.4, 0.5, 1.0), - Position = UDim2.new(0, 4, 0, 4), - Size = UDim2.new(0, 10, 0, 10), - } - - local Dev_OutputToggleFilter = Create "TextButton" { - Name = "OutputToggleButton", - Parent = Dev_OptionsBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BorderColor3 = Color3.new(1, 1, 1.0), - Position = UDim2.new(0, 40, 0, 0), - Size = UDim2.new(0, 18, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "", - TextColor3 = Color3.new(1, 1, 1.0), - } - - Create "Frame" { - Name = "CheckFrame", - Parent = Dev_OutputToggleFilter, - BackgroundColor3 = Color3.new(1, 1, 1.0), - BorderColor3 = Color3.new(1, 1, 1.0), - Position = UDim2.new(0, 4, 0, 4), - Size = UDim2.new(0, 10, 0, 10), - } - - local Dev_WarningToggleFilter = Create "TextButton" { - Name = "WarningToggleButton", - Parent = Dev_OptionsBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BorderColor3 = Color3.new(1, 0.6, 0.4), - Position = UDim2.new(0, 90, 0, 0), - Size = UDim2.new(0, 18, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "", - TextColor3 = Color3.new(1, 0.6, 0.4), - } - - Create "Frame" { - Name = "CheckFrame", - Parent = Dev_WarningToggleFilter, - BackgroundColor3 = Color3.new(1, 0.6, 0.4), - BorderColor3 = Color3.new(1, 0.6, 0.4), - Position = UDim2.new(0, 4, 0, 4), - Size = UDim2.new(0, 10, 0, 10), - } - - local Dev_WordWrapToggle = Create "TextButton" { - Name = "WordWrapToggleButton", - Parent = Dev_OptionsBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BorderColor3 = Color3.new(0.8, 0.8, 0.8), - Position = UDim2.new(0, 215, 0, 0), - Size = UDim2.new(0, 18, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "", - TextColor3 = Color3.new(0.8, 0.8, 0.8), - } - - Create "Frame" { - Name = "CheckFrame", - Parent = Dev_WordWrapToggle, - BackgroundColor3 = Color3.new(0.8, 0.8, 0.8), - BorderColor3 = Color3.new(0.8, 0.8, 0.8), - Position = UDim2.new(0, 4, 0, 4), - Size = UDim2.new(0, 10, 0, 10), - Visible = false, - } - - Create "TextLabel" { - Name = "Filter", - Parent = Dev_OptionsBar, - BackgroundTransparency = 1, - Position = UDim2.new(0, 0, 0, 0), - Size = UDim2.new(0, 40, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "Filter", - TextColor3 = Color3.new(1, 1, 1), - } - - Create "TextLabel" { - Name = "WordWrap", - Parent = Dev_OptionsBar, - BackgroundTransparency = 1, - Position = UDim2.new(0, 150, 0, 0), - Size = UDim2.new(0, 50, 0, 18), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "Word Wrap", - TextColor3 = Color3.new(1, 1, 1), - } - - local Dev_ScrollBar = Create "Frame" { + local Dev_ScrollBar = New "Frame" { Name = "ScrollBar", Parent = Dev_Body, BackgroundColor3 = Color3.new(0, 0, 0), @@ -238,73 +252,61 @@ function initializeDeveloperConsole() Position = UDim2.new(1, -20, 0, 26), Size = UDim2.new(0, 20, 1, -50), Visible = false, + New "ImageButton" { + Name = "Down", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(0, 0, 1, -20), + Size = UDim2.new(0, 20, 0, 20), + New "ImageLabel" { + Name = "ImageLabel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 3, 0, 3), + Size = UDim2.new(0, 14, 0, 14), + Rotation = 180, + Image = "http://banland.xyz/Asset?id=151205813", + }, + }, + New "ImageButton" { + Name = "Up", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 20, 0, 20), + New "ImageLabel" { + Name = "ImageLabel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 3, 0, 3), + Size = UDim2.new(0, 14, 0, 14), + Image = "http://banland.xyz/Asset?id=151205813", + }, + }, } - local Dev_ScrollArea = Create "Frame" { + local Dev_ScrollArea = New "Frame" { Name = "ScrollArea", Parent = Dev_ScrollBar, BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 23), Size = UDim2.new(1, 0, 1, -46), + New "ImageButton" { + Name = "Handle", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(0, 0, 0.2, 0), + Size = UDim2.new(0, 20, 0, 40), + New "ImageLabel" { + Name = "ImageLabel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0.5, -8), + Rotation = 180, + Size = UDim2.new(1, 0, 0, 16), + Image = "http://banland.xyz/Asset?id=151205881", + }, + }, } - local Dev_Handle = Create "ImageButton" { - Name = "Handle", - Parent = Dev_ScrollArea, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(0, 0, 0.2, 0), - Size = UDim2.new(0, 20, 0, 40), - } - - Create "ImageLabel" { - Name = "ImageLabel", - Parent = Dev_Handle, - BackgroundTransparency = 1, - Position = UDim2.new(0, 0, 0.5, -8), - Rotation = 180, - Size = UDim2.new(1, 0, 0, 16), - Image = "http://banland.xyz/Asset?id=151205881", - } - - local Dev_DownButton = Create "ImageButton" { - Name = "Down", - Parent = Dev_ScrollBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(0, 0, 1, -20), - Size = UDim2.new(0, 20, 0, 20), - } - - Create "ImageLabel" { - Name = "ImageLabel", - Parent = Dev_DownButton, - BackgroundTransparency = 1, - Position = UDim2.new(0, 3, 0, 3), - Size = UDim2.new(0, 14, 0, 14), - Rotation = 180, - Image = "http://banland.xyz/Asset?id=151205813", - } - - local Dev_UpButton = Create "ImageButton" { - Name = "Up", - Parent = Dev_ScrollBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(0, 0, 0, 0), - Size = UDim2.new(0, 20, 0, 20), - } - - Create "ImageLabel" { - Name = "ImageLabel", - Parent = Dev_UpButton, - BackgroundTransparency = 1, - Position = UDim2.new(0, 3, 0, 3), - Size = UDim2.new(0, 14, 0, 14), - Image = "http://banland.xyz/Asset?id=151205813", - } - - local Dev_TextBox = Create "Frame" { + local Dev_TextBox = New "Frame" { Name = "TextBox", Parent = Dev_Body, BackgroundColor3 = Color3.new(0, 0, 0), @@ -314,7 +316,7 @@ function initializeDeveloperConsole() ClipsDescendants = true, } - local Dev_TextHolder = Create "Frame" { + local Dev_TextHolder = New "Frame" { Name = "TextHolder", Parent = Dev_TextBox, BackgroundTransparency = 1, @@ -322,121 +324,64 @@ function initializeDeveloperConsole() Size = UDim2.new(1, 0, 1, 0), } - local Dev_OptionsButton = Create "ImageButton" { + local Dev_OptionsButton = New "ImageButton" { Name = "OptionsButton", Parent = Dev_Body, BackgroundColor3 = Color3.new(0, 0, 0), BackgroundTransparency = 1, Position = UDim2.new(0, 200, 0, 2), Size = UDim2.new(0, 20, 0, 20), + New "ImageLabel" { + Name = "ImageLabel", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, 1, 0), + Rotation = 0, + Image = "http://banland.xyz/Asset?id=152093917", + }, } - Create "ImageLabel" { - Name = "ImageLabel", - Parent = Dev_OptionsButton, - BackgroundTransparency = 1, - Position = UDim2.new(0, 0, 0, 0), - Size = UDim2.new(1, 0, 1, 0), - Rotation = 0, - Image = "http://banland.xyz/Asset?id=152093917", - } - - local Dev_ResizeButton = Create "ImageButton" { - Name = "ResizeButton", - Parent = Dev_Body, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(1, -20, 1, -20), - Size = UDim2.new(0, 20, 0, 20), - } - - Create "ImageLabel" { - Name = "ImageLabel", - Parent = Dev_ResizeButton, - BackgroundTransparency = 1, - Position = UDim2.new(0, 6, 0, 6), - Size = UDim2.new(0.8, 0, 0.8, 0), - Rotation = 135, - Image = "http://banland.xyz/Asset?id=151205813", - } - - Create "TextButton" { - Name = "LocalConsole", - Parent = Dev_Body, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.6, - Position = UDim2.new(0, 7, 0, 5), - Size = UDim2.new(0, 90, 0, 20), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "Local Console", - TextColor3 = Color3.new(1, 1, 1), - TextYAlignment = Enum.TextYAlignment.Center, - } - - Create "TextButton" { - Name = "ServerConsole", - Parent = Dev_Body, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.8, - Position = UDim2.new(0, 102, 0, 5), - Size = UDim2.new(0, 90, 0, 17), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size14, - Text = "Server Console", - TextColor3 = Color3.new(1, 1, 1), - TextYAlignment = Enum.TextYAlignment.Center, - } - - local Dev_TitleBar = Create "Frame" { + local Dev_TitleBar = New "Frame" { Name = "TitleBar", Parent = Dev_Container, BackgroundColor3 = Color3.new(0, 0, 0), BackgroundTransparency = 0.5, Position = UDim2.new(0, 0, 0, 0), Size = UDim2.new(1, 0, 0, 20), - } - - local Dev_CloseButton = Create "ImageButton" { - Name = "CloseButton", - Parent = Dev_TitleBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(1, -20, 0, 0), - Size = UDim2.new(0, 20, 0, 20), - } - - Create "ImageLabel" { - Parent = Dev_CloseButton, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 1, - Position = UDim2.new(0, 3, 0, 3), - Size = UDim2.new(0, 14, 0, 14), - Image = "http://banland.xyz/Asset?id=151205852", - } - - Create "TextButton" { - Name = "TextButton", - Parent = Dev_TitleBar, - BackgroundColor3 = Color3.new(0, 0, 0), - BackgroundTransparency = 0.5, - Position = UDim2.new(0, 0, 0, 0), - Size = UDim2.new(1, -23, 1, 0), - Text = "", - } - - Create "TextLabel" { - Name = "TitleText", - Parent = Dev_TitleBar, - BackgroundTransparency = 1, - Position = UDim2.new(0, 0, 0, 0), - Size = UDim2.new(0, 185, 0, 20), - Font = "SourceSansBold", - FontSize = Enum.FontSize.Size18, - -- Text = "Server Console", - TextColor3 = Color3.new(1, 1, 1), - Text = "Roblox Developer Console", - TextYAlignment = Enum.TextYAlignment.Top, + New "ImageButton" { + Name = "CloseButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(1, -20, 0, 0), + Size = UDim2.new(0, 20, 0, 20), + New "ImageLabel" { + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 1, + Position = UDim2.new(0, 3, 0, 3), + Size = UDim2.new(0, 14, 0, 14), + Image = "http://banland.xyz/Asset?id=151205852", + }, + }, + New "TextButton" { + Name = "TextButton", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, -23, 1, 0), + Text = "", + }, + New "TextLabel" { + Name = "TitleText", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 185, 0, 20), + Font = "SourceSansBold", + FontSize = Enum.FontSize.Size18, + -- Text = "Server Console", + TextColor3 = Color3.new(1, 1, 1), + Text = "Roblox Developer Console", + TextYAlignment = Enum.TextYAlignment.Top, + }, } ---Saved Mouse Information @@ -556,6 +501,76 @@ function initializeDeveloperConsole() startAnimation() end) + --Refresh Dev-Console Message Positions + local function repositionList() + if currentConsole == LOCAL_CONSOLE then + localOffset = math.min( + math.max(localOffset, 0), + textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y + ) + Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) + elseif currentConsole == SERVER_CONSOLE then + serverOffset = math.min( + math.max(serverOffset, 0), + textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y + ) + Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) + end + + local ratio = Dev_Container.Body.TextBox.AbsoluteSize.Y + / Dev_TextHolder.AbsoluteSize.Y + + if ratio >= 1 then + Dev_Container.Body.ScrollBar.Visible = false + Dev_Container.Body.TextBox.Size = UDim2.new(1, -4, 1, -28) + + if + currentConsole == LOCAL_CONSOLE + or currentConsole == SERVER_CONSOLE + then + Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize) + end + else + Dev_Container.Body.ScrollBar.Visible = true + Dev_Container.Body.TextBox.Size = UDim2.new(1, -25, 1, -28) + + local backRatio = 1 - ratio + local offsetRatio + + if currentConsole == LOCAL_CONSOLE then + offsetRatio = localOffset / Dev_TextHolder.AbsoluteSize.Y + elseif currentConsole == SERVER_CONSOLE then + offsetRatio = serverOffset / Dev_TextHolder.AbsoluteSize.Y + end + + local topRatio = math.max(0, backRatio - offsetRatio) + + local scrollHandleSize = + math.max(Dev_ScrollArea.AbsoluteSize.Y * ratio, 21) + + local scrollRatio = scrollHandleSize / Dev_ScrollArea.AbsoluteSize.Y + local ratioConversion = (1 - scrollRatio) / (1 - ratio) + + local topScrollRatio = topRatio * ratioConversion + + local sPos = math.min( + Dev_ScrollArea.AbsoluteSize.Y * topScrollRatio, + Dev_ScrollArea.AbsoluteSize.Y - scrollHandleSize + ) + + Dev_ScrollArea.Handle.Size = UDim2.new(1, 0, 0, scrollHandleSize) + Dev_ScrollArea.Handle.Position = UDim2.new(0, 0, 0, sPos) + + if currentConsole == LOCAL_CONSOLE then + Dev_TextHolder.Position = + UDim2.new(0, 0, 1, 0 - textHolderSize + localOffset) + elseif currentConsole == SERVER_CONSOLE then + Dev_TextHolder.Position = + UDim2.new(0, 0, 1, 0 - textHolderSize + serverOffset) + end + end + end + --Scroll Position local function changeOffset(value) @@ -592,7 +607,7 @@ function initializeDeveloperConsole() local movePosition = false if i > #childMessages then - message = Create "TextLabel" { + message = New "TextLabel" { Name = "Message", Parent = Dev_TextHolder, BackgroundTransparency = 1, @@ -786,76 +801,6 @@ function initializeDeveloperConsole() return true end - --Refresh Dev-Console Message Positions - function repositionList() - if currentConsole == LOCAL_CONSOLE then - localOffset = math.min( - math.max(localOffset, 0), - textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y - ) - Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) - elseif currentConsole == SERVER_CONSOLE then - serverOffset = math.min( - math.max(serverOffset, 0), - textHolderSize - Dev_Container.Body.TextBox.AbsoluteSize.Y - ) - Dev_TextHolder.Size = UDim2.new(1, 0, 0, textHolderSize) - end - - local ratio = Dev_Container.Body.TextBox.AbsoluteSize.Y - / Dev_TextHolder.AbsoluteSize.Y - - if ratio >= 1 then - Dev_Container.Body.ScrollBar.Visible = false - Dev_Container.Body.TextBox.Size = UDim2.new(1, -4, 1, -28) - - if - currentConsole == LOCAL_CONSOLE - or currentConsole == SERVER_CONSOLE - then - Dev_TextHolder.Position = UDim2.new(0, 0, 1, 0 - textHolderSize) - end - else - Dev_Container.Body.ScrollBar.Visible = true - Dev_Container.Body.TextBox.Size = UDim2.new(1, -25, 1, -28) - - local backRatio = 1 - ratio - local offsetRatio - - if currentConsole == LOCAL_CONSOLE then - offsetRatio = localOffset / Dev_TextHolder.AbsoluteSize.Y - elseif currentConsole == SERVER_CONSOLE then - offsetRatio = serverOffset / Dev_TextHolder.AbsoluteSize.Y - end - - local topRatio = math.max(0, backRatio - offsetRatio) - - local scrollHandleSize = - math.max(Dev_ScrollArea.AbsoluteSize.Y * ratio, 21) - - local scrollRatio = scrollHandleSize / Dev_ScrollArea.AbsoluteSize.Y - local ratioConversion = (1 - scrollRatio) / (1 - ratio) - - local topScrollRatio = topRatio * ratioConversion - - local sPos = math.min( - Dev_ScrollArea.AbsoluteSize.Y * topScrollRatio, - Dev_ScrollArea.AbsoluteSize.Y - scrollHandleSize - ) - - Dev_ScrollArea.Handle.Size = UDim2.new(1, 0, 0, scrollHandleSize) - Dev_ScrollArea.Handle.Position = UDim2.new(0, 0, 0, sPos) - - if currentConsole == LOCAL_CONSOLE then - Dev_TextHolder.Position = - UDim2.new(0, 0, 1, 0 - textHolderSize + localOffset) - elseif currentConsole == SERVER_CONSOLE then - Dev_TextHolder.Position = - UDim2.new(0, 0, 1, 0 - textHolderSize + serverOffset) - end - end - end - -- Easy, fast, and working nicely local function numberWithZero(num) return (num < 10 and "0" or "") .. num diff --git a/luau/45284430.luau b/luau/45284430.luau index 0c2f752..30c49c0 100644 --- a/luau/45284430.luau +++ b/luau/45284430.luau @@ -954,10 +954,10 @@ RbxGui.CreateTrueScrollingFrame = function() scrollBottom.Name = "ScrollBottom" scrollBottom.Parent = controlFrame - local scrollUp = Instance.new "BoolValue" - scrollUp.Value = false - scrollUp.Name = "scrollUp" - scrollUp.Parent = controlFrame + local scrollUpValue = Instance.new "BoolValue" + scrollUpValue.Value = false + scrollUpValue.Name = "scrollUp" + scrollUpValue.Parent = controlFrame local scrollUpButton = Instance.new "TextButton" scrollUpButton.Name = "ScrollUpButton" @@ -1109,13 +1109,13 @@ RbxGui.CreateTrueScrollingFrame = function() if newScaleYPos + relativeSize > 1 then newScaleYPos = 1 - relativeSize scrollBottom.Value = true - scrollUp.Value = false + scrollUpValue.Value = false elseif newScaleYPos <= 0 then newScaleYPos = 0 - scrollUp.Value = true + scrollUpValue.Value = true scrollBottom.Value = false else - scrollUp.Value = false + scrollUpValue.Value = false scrollBottom.Value = false end scrollbar.Position = UDim2.new( @@ -1325,7 +1325,7 @@ RbxGui.CreateTrueScrollingFrame = function() local scrollStamp - local function scrollUp(mouseYPos) + local function scrollUp() if scrollUpButton.Active then scrollStamp = tick() local current = scrollStamp @@ -1341,9 +1341,6 @@ RbxGui.CreateTrueScrollingFrame = function() local w = 0.1 while scrollStamp == current do doScrollUp() - if mouseYPos and mouseYPos > scrollbar.AbsolutePosition.y then - break - end if not scrollUpButton.Active then break end diff --git a/luau/48488235.luau b/luau/48488235.luau index e52f53f..85e5471 100644 --- a/luau/48488235.luau +++ b/luau/48488235.luau @@ -1,8 +1,8 @@ -- CoreGui.RobloxGui.CoreScripts/PlayerListScript print "[Mercury]: Loaded corescript 48488235" ---new playerlist by Zach Lindblad (fusroblox) ---contact him for any revisions/issues +local New = require "../Modules/New" + -------------------- -- Super Util -------------------- @@ -40,24 +40,6 @@ local BASE_TWEEN = 0.25 local MOUSE_DRAG_DISTANCE = 15 ---[[ - Generic object Create function, which I am using to create Gui's - Thanks to Stravant! ---]] -local function Create(guiType) - return function(data) - local obj = Instance.new(guiType) - for k, v in pairs(data) do - if type(k) == "number" then - v.Parent = obj - else - obj[k] = v - end - end - return obj - end -end - --[[ makes a full sized background for a guiobject @Args: @@ -65,7 +47,7 @@ end @Return: background gui object --]] local function MakeBackgroundGuiObj(imgName) - return Create "ImageLabel" { + return New "ImageLabel" { Name = "Background", BackgroundTransparency = 1, Image = imgName, @@ -132,13 +114,13 @@ local HeaderFrame @Return: a popup menu button --]] local function MakePopupButton(nparent, ntext, index, last) - local tobj = Create "ImageButton" { + local tobj = New "ImageButton" { Name = "ReportButton", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 1 * index, 0), Size = UDim2.new(1, 0, 1, 0), ZIndex = 7, - Create "TextLabel" { + New "TextLabel" { Name = "ButtonText", BackgroundTransparency = 1, Position = UDim2.new(0.07, 0, 0.07, 0), @@ -188,13 +170,13 @@ end local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() -local ScreenGui = Create "Frame" { +local ScreenGui = New "Frame" { Name = "PlayerListScreen", Size = UDim2.new(1, 0, 1, 0), BackgroundTransparency = 1, Parent = script.Parent, } -local MainFrame = Create "Frame" { +local MainFrame = New "Frame" { Name = "LeaderBoardFrame", Position = UDim2.new(1, -150, 0.005, 0), Size = UDim2.new(0, 150, 0, 800), @@ -203,7 +185,7 @@ local MainFrame = Create "Frame" { } --frame used for expanding leaderstats when frame is 'focused' -local FocusFrame = Create "Frame" { +local FocusFrame = New "Frame" { Name = "FocusFrame", Position = UDim2.new(0, 0, 0, 0), Size = UDim2.new(1, 0, 0, 100), @@ -213,7 +195,7 @@ local FocusFrame = Create "Frame" { } -- HEADER -HeaderFrame = Create "Frame" { +HeaderFrame = New "Frame" { Name = "Header", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 0), @@ -222,7 +204,7 @@ HeaderFrame = Create "Frame" { MakeBackgroundGuiObj "http://banland.xyz/asset?id=94692054", } local HeaderFrameHeight = HeaderFrame.Size.Y.Scale -local MaximizeButton = Create "ImageButton" { +local MaximizeButton = New "ImageButton" { Name = "MaximizeButton", Active = true, BackgroundTransparency = 1, @@ -230,7 +212,7 @@ local MaximizeButton = Create "ImageButton" { Size = UDim2.new(1, 0, 1, 0), Parent = HeaderFrame, } -local HeaderName = Create "TextLabel" { +local HeaderName = New "TextLabel" { Name = "PlayerName", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0.01, 0), @@ -246,7 +228,7 @@ local HeaderName = Create "TextLabel" { TextXAlignment = "Right", TextYAlignment = "Center", } -local HeaderScore = Create "TextLabel" { +local HeaderScore = New "TextLabel" { Name = "PlayerScore", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0.4, 0), @@ -263,14 +245,14 @@ local HeaderScore = Create "TextLabel" { } -- BOTTOM --used for shifting bottom frame for mouse over effects -local BottomShiftFrame = Create "Frame" { +local BottomShiftFrame = New "Frame" { Name = "BottomShiftFrame", BackgroundTransparency = 1, Position = UDim2.new(0, 0, HeaderFrameHeight, 0), Size = UDim2.new(1, 0, 1, 0), Parent = MainFrame, } -local BottomFrame = Create "Frame" { +local BottomFrame = New "Frame" { Name = "Bottom", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0.07, 0), @@ -278,7 +260,7 @@ local BottomFrame = Create "Frame" { Parent = BottomShiftFrame, MakeBackgroundGuiObj "http://banland.xyz/asset?id=94754966", } -local ExtendButton = Create "ImageButton" { +local ExtendButton = New "ImageButton" { Name = "bigbutton", Active = true, BackgroundTransparency = 1, @@ -287,7 +269,7 @@ local ExtendButton = Create "ImageButton" { ZIndex = 3, Parent = BottomFrame, } -local ExtendTab = Create "ImageButton" { +local ExtendTab = New "ImageButton" { Name = "extendTab", Active = true, BackgroundTransparency = 1, @@ -296,7 +278,7 @@ local ExtendTab = Create "ImageButton" { Size = UDim2.new(0.3, 0, 0.7, 0), Parent = BottomFrame, } -local TopClipFrame = Create "Frame" { +local TopClipFrame = New "Frame" { Name = "ListFrame", BackgroundTransparency = 1, Position = UDim2.new(-1, 0, 0.07, 0), @@ -304,7 +286,7 @@ local TopClipFrame = Create "Frame" { Parent = MainFrame, ClipsDescendants = true, } -local BottomClipFrame = Create "Frame" { +local BottomClipFrame = New "Frame" { Name = "BottomFrame", BackgroundTransparency = 1, Position = UDim2.new(0, 0, -0.8, 0), @@ -312,14 +294,14 @@ local BottomClipFrame = Create "Frame" { Parent = TopClipFrame, ClipsDescendants = true, } -local ScrollBarFrame = Create "Frame" { +local ScrollBarFrame = New "Frame" { Name = "ScrollBarFrame", BackgroundTransparency = 1, Position = UDim2.new(0.987, 0, 0.8, 0), Size = UDim2.new(0.01, 0, 0.2, 0), Parent = BottomClipFrame, } -local ScrollBar = Create "Frame" { +local ScrollBar = New "Frame" { Name = "ScrollBar", BackgroundTransparency = 0, BackgroundColor3 = Color3.new(0.2, 0.2, 0.2), @@ -328,14 +310,14 @@ local ScrollBar = Create "Frame" { ZIndex = 5, Parent = ScrollBarFrame, } -local ListFrame = Create "Frame" { +local ListFrame = New "Frame" { Name = "SubFrame", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0.8, 0), Size = UDim2.new(1, 0, 1, 0), Parent = BottomClipFrame, } -local PopUpClipFrame = Create "Frame" { +local PopUpClipFrame = New "Frame" { Name = "PopUpFrame", BackgroundTransparency = 1, SizeConstraint = "RelativeXX", @@ -346,7 +328,7 @@ local PopUpClipFrame = Create "Frame" { ZIndex = 7, } local PopUpPanel -local PopUpPanelTemplate = Create "Frame" { +local PopUpPanelTemplate = New "Frame" { Name = "Panel", BackgroundTransparency = 1, Position = UDim2.new(1, 0, 0, 0), @@ -354,7 +336,7 @@ local PopUpPanelTemplate = Create "Frame" { Parent = PopUpClipFrame, } -local StatTitles = Create "Frame" { +local StatTitles = New "Frame" { Name = "StatTitles", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 1, -10), @@ -367,12 +349,12 @@ local IsMaximized = Instance.new "BoolValue" local IsTabified = Instance.new "BoolValue" local AreNamesExpanded = Instance.new "BoolValue" -local MiddleTemplate = Create "Frame" { +local MiddleTemplate = New "Frame" { Name = "MidTemplate", BackgroundTransparency = 1, Position = UDim2.new(100, 0, 0.07, 0), Size = UDim2.new(0.5, 0, 0.025, 0), --UDim2.new(1, 0, .03, 0), - Create "ImageLabel" { + New "ImageLabel" { Name = "BCLabel", Active = true, BackgroundTransparency = 1, @@ -382,7 +364,7 @@ local MiddleTemplate = Create "Frame" { Image = "", ZIndex = 3, }, - Create "ImageLabel" { + New "ImageLabel" { Name = "FriendLabel", Active = true, BackgroundTransparency = 1, @@ -392,7 +374,7 @@ local MiddleTemplate = Create "Frame" { Image = "", ZIndex = 3, }, - Create "ImageButton" { + New "ImageButton" { Name = "ClickListener", Active = true, BackgroundTransparency = 1, @@ -400,13 +382,13 @@ local MiddleTemplate = Create "Frame" { Size = UDim2.new(0.96, 0, 1, 0), ZIndex = 3, }, - Create "Frame" { + New "Frame" { Name = "TitleFrame", BackgroundTransparency = 1, Position = UDim2.new(0.01, 0, 0, 0), Size = UDim2.new(0, 140, 1, 0), ClipsDescendants = true, - Create "TextLabel" { + New "TextLabel" { Name = "Title", BackgroundTransparency = 1, Position = UDim2.new(0, 5, 0, 0), @@ -420,7 +402,7 @@ local MiddleTemplate = Create "Frame" { }, }, - Create "TextLabel" { + New "TextLabel" { Name = "PlayerScore", BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 0), @@ -438,7 +420,7 @@ local MiddleTemplate = Create "Frame" { --Create'IntValue'{Name = 'Score'}, ZIndex = 3, } -local MiddleBGTemplate = Create "Frame" { +local MiddleBGTemplate = New "Frame" { Name = "MidBGTemplate", BackgroundTransparency = 1, Position = UDim2.new(100, 0, 0.07, 0), @@ -448,7 +430,7 @@ local MiddleBGTemplate = Create "Frame" { -- REPORT ABUSE OBJECTS -local ReportAbuseShield = Create "TextButton" { +local ReportAbuseShield = New "TextButton" { Name = "ReportAbuseShield", Text = "", AutoButtonColor = false, @@ -460,7 +442,7 @@ local ReportAbuseShield = Create "TextButton" { BackgroundTransparency = 1, } -local ReportAbuseFrame = Create "Frame" { +local ReportAbuseFrame = New "Frame" { Name = "Settings", Position = UDim2.new(0.5, -250, 0.5, -200), Size = UDim2.new(0, 500, 0, 400), @@ -469,13 +451,13 @@ local ReportAbuseFrame = Create "Frame" { Parent = ReportAbuseShield, } -local AbuseSettingsFrame = Create "Frame" { +local AbuseSettingsFrame = New "Frame" { Name = "ReportAbuseStyle", Size = UDim2.new(1, 0, 1, 0), Active = true, BackgroundTransparency = 1, - MakeBackgroundGuiObj "http://banland.xyz/asset?id=96488767", -- 96480351'), - Create "TextLabel" { + MakeBackgroundGuiObj "http://banland.xyz/asset?id=96488767", -- 96480351", + New "TextLabel" { Name = "Title", Text = "Report Abuse", TextColor3 = Color3I(221, 221, 221), @@ -483,7 +465,7 @@ local AbuseSettingsFrame = Create "Frame" { Font = Enum.Font.ArialBold, FontSize = Enum.FontSize.Size36, }, - Create "TextLabel" { + New "TextLabel" { Name = "Description", Text = "This will send a complete report to a moderator. The moderator will review the chat log and take appropriate action.", TextColor3 = Color3I(221, 221, 221), @@ -496,7 +478,7 @@ local AbuseSettingsFrame = Create "Frame" { TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, }, - Create "TextLabel" { + New "TextLabel" { Name = "AbuseLabel", Text = "What did they do?", Font = Enum.Font.Arial, @@ -507,7 +489,7 @@ local AbuseSettingsFrame = Create "Frame" { TextColor3 = Color3I(255, 255, 255), TextXAlignment = Enum.TextXAlignment.Left, }, - Create "TextLabel" { + New "TextLabel" { Name = "ShortDescriptionLabel", Text = "Short Description: (optional)", Font = Enum.Font.Arial, @@ -518,7 +500,7 @@ local AbuseSettingsFrame = Create "Frame" { TextXAlignment = Enum.TextXAlignment.Left, BackgroundTransparency = 1, }, - Create "TextLabel" { + New "TextLabel" { Name = "ReportingPlayerLabel", Text = "Reporting Player", BackgroundTransparency = 1, @@ -533,7 +515,7 @@ local AbuseSettingsFrame = Create "Frame" { Parent = ReportAbuseFrame, } -local AbusePlayerLabel = Create "TextLabel" { +local AbusePlayerLabel = New "TextLabel" { Name = "PlayerLabel", Text = "", BackgroundTransparency = 1, @@ -546,7 +528,7 @@ local AbusePlayerLabel = Create "TextLabel" { Parent = AbuseSettingsFrame, } -local SubmitReportButton = Create "ImageButton" { +local SubmitReportButton = New "ImageButton" { Name = "SubmitReportBtn", Active = false, BackgroundTransparency = 1, @@ -557,7 +539,7 @@ local SubmitReportButton = Create "ImageButton" { Parent = AbuseSettingsFrame, } -local CancelReportButton = Create "ImageButton" { +local CancelReportButton = New "ImageButton" { Name = "CancelBtn", BackgroundTransparency = 1, Position = UDim2.new(0.5, 50, 1, -80), @@ -567,7 +549,7 @@ local CancelReportButton = Create "ImageButton" { Parent = AbuseSettingsFrame, } -local AbuseDescriptionWrapper = Create "Frame" { +local AbuseDescriptionWrapper = New "Frame" { Name = "AbuseDescriptionWrapper", Position = UDim2.new(0.025, 0, 0, 220), Size = UDim2.new(0.95, 0, 1, -310), @@ -578,7 +560,7 @@ local AbuseDescriptionWrapper = Create "Frame" { local AbuseDescriptionBox -local OriginalAbuseDescriptionBox = Create "TextBox" { +local OriginalAbuseDescriptionBox = New "TextBox" { Name = "TextBox", Text = "", ClearTextOnFocus = false, @@ -594,13 +576,13 @@ local OriginalAbuseDescriptionBox = Create "TextBox" { BorderSizePixel = 0, } -local CalmingAbuseBox = Create "Frame" { +local CalmingAbuseBox = New "Frame" { Name = "AbuseFeedbackBox", BackgroundTransparency = 1, Position = UDim2.new(0.25, 0, 0.300000012, 0), Size = UDim2.new(0.5, 0, 0.370000005, 0), MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233", - Create "TextLabel" { + New "TextLabel" { Name = "Header", Position = UDim2.new(0, 10, 0.05, 0), Size = UDim2.new(1, -30, 0.15, 0), @@ -613,7 +595,7 @@ local CalmingAbuseBox = Create "Frame" { FontSize = Enum.FontSize.Size48, Font = "ArialBold", }, - Create "TextLabel" { + New "TextLabel" { Name = "content", Position = UDim2.new(0, 10, 0.20, 0), Size = UDim2.new(1, -30, 0.40, 0), @@ -626,7 +608,7 @@ local CalmingAbuseBox = Create "Frame" { FontSize = Enum.FontSize.Size24, Font = "Arial", }, - Create "ImageButton" { + New "ImageButton" { Name = "OkButton", BackgroundTransparency = 1, Position = UDim2.new(0.5, -75, 1, -80), @@ -635,13 +617,13 @@ local CalmingAbuseBox = Create "Frame" { Image = "http://banland.xyz/asset?id=96507959", }, } -local NormalAbuseBox = Create "Frame" { +local NormalAbuseBox = New "Frame" { Name = "AbuseFeedbackBox", BackgroundTransparency = 1, Position = UDim2.new(0.25, 0, 0.300000012, 0), Size = UDim2.new(0.5, 0, 0.370000005, 0), MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233", - Create "TextLabel" { + New "TextLabel" { Name = "Header", Position = UDim2.new(0, 10, 0.05, 0), Size = UDim2.new(1, -30, 0.15, 0), @@ -654,7 +636,7 @@ local NormalAbuseBox = Create "Frame" { FontSize = Enum.FontSize.Size48, Font = "ArialBold", }, - Create "TextLabel" { + New "TextLabel" { Name = "content", Position = UDim2.new(0, 10, 0.20, 0), Size = UDim2.new(1, -30, 0.15, 0), @@ -667,7 +649,7 @@ local NormalAbuseBox = Create "Frame" { FontSize = Enum.FontSize.Size24, Font = "Arial", }, - Create "ImageButton" { + New "ImageButton" { Name = "OkButton", BackgroundTransparency = 1, Position = UDim2.new(0.5, -75, 1, -80), @@ -685,7 +667,7 @@ BigButton.Visible = false --BigButton.Active=false BigButton.Parent = ScreenGui -local debugFrame = Create "Frame" { +local debugFrame = New "Frame" { Name = "debugframe", --Position = UDim2.new(0, 0, 0, 0), --Size = UDim2.new(0, 150, 0, 800),--0.99000001 @@ -695,7 +677,7 @@ local debugFrame = Create "Frame" { Size = UDim2.new(0.5, 0, 0.370000005, 0), MakeBackgroundGuiObj "http://banland.xyz/asset?id=96506233", } -local debugOutput = Create "TextLabel" { +local debugOutput = New "TextLabel" { BackgroundTransparency = 0.8, Position = UDim2.new(0, 0, 0.5, 0), Size = UDim2.new(1, 0, 0.5, 0), @@ -939,13 +921,13 @@ local function WaitForClick(frameParent, polledFunction, exitFunction) if connection2 then connection2:disconnect() end - --debugprint('mouse up!') + -- debugprint "mouse up!" end) connection2 = BigButton.MouseMoved:connect(function(nx, ny) polledFunction(nx, ny) end) - --debugprint('waiting for click!') + -- debugprint "waiting for click!" BigButton.Visible = true BigButton.Active = true BigButton.Parent = frameParent @@ -1071,7 +1053,7 @@ end local function CloseAbuseDialog() AbuseName = nil SubmitReportButton.Active = false - SubmitReportButton.Image = "http://banland.xyz/asset?id=96502438" -- 96501119', + SubmitReportButton.Image = "http://banland.xyz/asset?id=96502438" -- 96501119", AbuseDescriptionBox:Destroy() CalmingAbuseBox.Parent = nil NormalAbuseBox.Parent = nil @@ -1742,7 +1724,7 @@ local function TeamListModeUpdate() SortTeams(TeamFrames) if NeutralTeam then AddTeamScores(NeutralTeam) - --RecreateScoreColumns(NeutralTeam['MyPlayers']) + -- RecreateScoreColumns(NeutralTeam.MyPlayers) end UnrollTeams(TeamFrames, MiddleFrames) end @@ -1774,7 +1756,7 @@ local function BaseUpdate() wait() end BaseUpdateLock = true - --print ('baseupdate') + -- print "baseupdate" UpdateStatNames() if #TeamFrames == 0 and not NeutralTeam then @@ -1803,7 +1785,7 @@ local function BaseUpdate() UpdateScrollPosition() UpdateScrollBarVisibility() - --debugprint('EndBaseUpdate') + -- debugprint "EndBaseUpdate" BaseUpdateLock = false end @@ -1816,7 +1798,7 @@ RecreateScoreColumns = function(ptable) local nscoretxt = panel:FindFirstChild("PlayerScore"):Clone() local thisScore --here lies the resting place of a once great and terrible bug - --may its treachery never be forgoten, lest its survivors fall for it again + --may its treachery never be forgotten, lest its survivors fall for it again --RIP the leaderstat bug, oct 2012-nov 2012 wait() if @@ -1891,7 +1873,7 @@ RecreateScoreColumns = function(ptable) and not entry.MyTeam.Frame:FindFirstChild(scoreval.Name) then local ntitle = nentry:Clone() - --ntitle.TextXAlignment = 'Right' + -- ntitle.TextXAlignment = "Right" ntitle.Parent = entry.MyTeam.Frame end end @@ -2083,8 +2065,8 @@ end property Name of stat changed --]] local function StatChanged(_, _) --playerEntry, property) - -- if(playerEntry['MyTeam']) then - -- UpdateSingleTeam(playerEntry['MyTeam']) + -- if playerEntry["MyTeam"] then + -- UpdateSingleTeam(playerEntry["MyTeam"]) -- else BaseUpdate() -- end @@ -2500,7 +2482,7 @@ local function StartMinimizeDrag() local startTime = tick() debugprint "Got Click2" local function dragExit() - --debugprint('undone click2') + -- debugprint "undone click2" if tick() - startTime < 0.25 then --was click ToggleMinimize() else --was drag @@ -2636,7 +2618,7 @@ local function AddMiddleBGFrame() table.insert(MiddleFrameBackgrounds, nBGFrame) if #MiddleFrameBackgrounds < DefaultListSize and not DidMinimizeDrag then - --print('readjusting bottom clip') + -- print "readjusting bottom clip" DefaultBottomClipPos = -1 + (#MiddleFrameBackgrounds * MiddleBGTemplate.Size.Y.Scale) end @@ -3109,7 +3091,9 @@ Players.ChildRemoved:connect(RemovePlayerFrame) local function OnFriendshipChanged(player, friendStatus) Delay(0.5, function() debugprint( - `friend status changed for {player.Name} {friendStatus} vs {GetFriendStatus(player)}` + `friend status changed for {player.Name} {friendStatus} vs {GetFriendStatus( + player + )}` ) for _, entry in ipairs(PlayerFrames) do if entry.Player == player then diff --git a/luau/48488451.luau b/luau/48488451.luau index f97f1fa..2f9aed4 100644 --- a/luau/48488451.luau +++ b/luau/48488451.luau @@ -1,75 +1,75 @@ -- CoreGui.RobloxGui.CoreScripts/PopupScript print "[Mercury]: Loaded corescript 48488451" +local New = require "../Modules/New" + --build our gui -local popupFrame = Instance.new "Frame" -popupFrame.Position = UDim2.new(0.5, -165, 0.5, -175) -popupFrame.Size = UDim2.new(0, 330, 0, 350) -popupFrame.Style = Enum.FrameStyle.RobloxRound -popupFrame.ZIndex = 4 -popupFrame.Name = "Popup" -popupFrame.Visible = false -popupFrame.Parent = script.Parent - -local darken = popupFrame:clone() -darken.Size = UDim2.new(1, 16, 1, 16) -darken.Position = UDim2.new(0, -8, 0, -8) -darken.Name = "Darken" -darken.ZIndex = 1 -darken.Parent = popupFrame - -local acceptButton = Instance.new "TextButton" -acceptButton.Position = UDim2.new(0, 20, 0, 270) -acceptButton.Size = UDim2.new(0, 100, 0, 50) -acceptButton.Font = Enum.Font.ArialBold -acceptButton.FontSize = Enum.FontSize.Size24 -acceptButton.Style = Enum.ButtonStyle.RobloxButton -acceptButton.TextColor3 = Color3.new(248 / 255, 248 / 255, 248 / 255) -acceptButton.Text = "Yes" -acceptButton.ZIndex = 5 -acceptButton.Name = "AcceptButton" -acceptButton.Parent = popupFrame - -local declineButton = acceptButton:clone() -declineButton.Position = UDim2.new(1, -120, 0, 270) -declineButton.Text = "No" -declineButton.Name = "DeclineButton" -declineButton.Parent = popupFrame - -local okButton = acceptButton:clone() -okButton.Name = "OKButton" -okButton.Text = "OK" -okButton.Position = UDim2.new(0.5, -50, 0, 270) -okButton.Visible = false -okButton.Parent = popupFrame - -local popupImage = Instance.new "ImageLabel" -popupImage.BackgroundTransparency = 1 -popupImage.Position = UDim2.new(0.5, -140, 0, 0) -popupImage.Size = UDim2.new(0, 280, 0, 280) -popupImage.ZIndex = 3 -popupImage.Name = "PopupImage" -popupImage.Parent = popupFrame - -local backing = Instance.new "ImageLabel" -backing.BackgroundTransparency = 1 -backing.Size = UDim2.new(1, 0, 1, 0) -backing.Image = "http://banland.xyz/asset/?id=47574181" -backing.Name = "Backing" -backing.ZIndex = 2 -backing.Parent = popupImage - -local popupText = Instance.new "TextLabel" -popupText.Name = "PopupText" -popupText.Size = UDim2.new(1, 0, 0.8, 0) -popupText.Font = Enum.Font.ArialBold -popupText.FontSize = Enum.FontSize.Size36 -popupText.BackgroundTransparency = 1 -popupText.Text = "Hello I'm a popup" -popupText.TextColor3 = Color3.new(248 / 255, 248 / 255, 248 / 255) -popupText.TextWrap = true -popupText.ZIndex = 5 -popupText.Parent = popupFrame +local popupFrame = New "Frame" { + Name = "Popup", + Position = UDim2.new(0.5, -165, 0.5, -175), + Size = UDim2.new(0, 330, 0, 350), + Style = Enum.FrameStyle.RobloxRound, + ZIndex = 4, + Visible = false, + Parent = script.Parent, + New "ImageLabel" { + Name = "PopupImage", + BackgroundTransparency = 1, + Position = UDim2.new(0.5, -140, 0, 0), + Size = UDim2.new(0, 280, 0, 280), + ZIndex = 3, + New "ImageLabel" { + Name = "Backing", + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + Image = "http://banland.xyz/asset/?id=47574181", + ZIndex = 2, + }, + }, + New "TextLabel" { + Name = "PopupText", + Size = UDim2.new(1, 0, 0.8, 0), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + BackgroundTransparency = 1, + Text = "Hello I'm a popup", + TextColor3 = Color3.new(248 / 255, 248 / 255, 248 / 255), + TextWrap = true, + ZIndex = 5, + }, +} +New(popupFrame:clone()) { + Name = "Darken", + Size = UDim2.new(1, 16, 1, 16), + Position = UDim2.new(0, -8, 0, -8), + ZIndex = 1, + Parent = popupFrame, +} +local acceptButton = New "TextButton" { + Name = "AcceptButton", + Position = UDim2.new(0, 20, 0, 270), + Size = UDim2.new(0, 100, 0, 50), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size24, + Style = Enum.ButtonStyle.RobloxButton, + TextColor3 = Color3.new(248 / 255, 248 / 255, 248 / 255), + Text = "Yes", + ZIndex = 5, + Parent = popupFrame, +} +New(acceptButton:clone()) { + Name = "DeclineButton", + Text = "No", + Position = UDim2.new(1, -120, 0, 270), + Parent = popupFrame, +} +New(acceptButton:clone()) { + Name = "OKButton", + Text = "OK", + Position = UDim2.new(0.5, -50, 0, 270), + Visible = false, + Parent = popupFrame, +} script:remove() diff --git a/luau/53878047.luau b/luau/53878047.luau index b4dbaf2..31dcbdf 100644 --- a/luau/53878047.luau +++ b/luau/53878047.luau @@ -1,12 +1,11 @@ -- CoreGui.RobloxGui.CoreScripts/BackpackScripts/BackpackBuild print "[Mercury]: Loaded corescript 53878047" +local New = require "../Modules/New" + -- This script creates almost all gui elements found in the backpack (warning: there are a lot!) -- TODO: automate this process -local ContentProvider = game:GetService "ContentProvider" -local UserInputService = game:GetService "UserInputService" - local gui = script.Parent -- A couple of necessary functions @@ -21,579 +20,502 @@ local function waitForProperty(instance, property) end end -local function IsTouchDevice() - local touchEnabled = false - pcall(function() - touchEnabled = UserInputService.TouchEnabled - end) - return touchEnabled -end - -local function IsPhone() - if gui.AbsoluteSize.Y <= 320 then - return true - end - return false -end - waitForChild(game, "Players") waitForProperty(game.Players, "LocalPlayer") --- First up is the current loadout -local CurrentLoadout = Instance.new "Frame" -CurrentLoadout.Name = "CurrentLoadout" -CurrentLoadout.Position = UDim2.new(0.5, -300, 1, -85) -CurrentLoadout.Size = UDim2.new(0, 600, 0, 54) -CurrentLoadout.BackgroundTransparency = 1 -CurrentLoadout.RobloxLocked = true -CurrentLoadout.Parent = gui +-- Components -local CLBackground = Instance.new "ImageLabel" -CLBackground.Name = "Background" -CLBackground.Size = UDim2.new(1.2, 0, 1.2, 0) -CLBackground.Image = "http://banland.xyz/asset/?id=96536002" -CLBackground.BackgroundTransparency = 1 -CLBackground.Position = UDim2.new(-0.1, 0, -0.1, 0) -CLBackground.ZIndex = 0.0 -CLBackground.Parent = CurrentLoadout -CLBackground.Visible = false - -local BackgroundUp = Instance.new "ImageLabel" -BackgroundUp.Size = UDim2.new(1, 0, 0.025, 1) -BackgroundUp.Position = UDim2.new(0, 0, 0, 0) -BackgroundUp.Image = "http://banland.xyz/asset/?id=97662207" -BackgroundUp.BackgroundTransparency = 1 -BackgroundUp.Parent = CLBackground - -local Debounce = Instance.new "BoolValue" -Debounce.Name = "Debounce" -Debounce.RobloxLocked = true -Debounce.Parent = CurrentLoadout - -local BackpackButton = Instance.new "ImageButton" -BackpackButton.RobloxLocked = true -BackpackButton.Visible = false -BackpackButton.Name = "BackpackButton" -BackpackButton.BackgroundTransparency = 1 -BackpackButton.Image = "http://banland.xyz/asset/?id=97617958" -BackpackButton.Position = UDim2.new(0.5, -60, 1, -108) -BackpackButton.Size = UDim2.new(0, 120, 0, 18) -waitForChild(gui, "ControlFrame") -BackpackButton.Parent = gui.ControlFrame - -local NumSlots = 9 - -if IsPhone() then - NumSlots = 3 - CurrentLoadout.Size = UDim2.new(0, 180, 0, 54) - CurrentLoadout.Position = UDim2.new(0.5, -90, 1, -85) +local function SlotNumber() + return New "TextLabel" { + Name = "SlotNumber", + BackgroundTransparency = 1, + BorderSizePixel = 0, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(0, 10, 0, 15), + TextColor3 = Color3.new(1, 1, 1), + TextTransparency = 0, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Bottom, + RobloxLocked = true, + ZIndex = 5, + } end -for i = 0, NumSlots do - local slotFrame = Instance.new "Frame" - slotFrame.RobloxLocked = true - slotFrame.BackgroundColor3 = Color3.new(0, 0, 0) - slotFrame.BackgroundTransparency = 1 - slotFrame.BorderColor3 = Color3.new(1, 1, 1) - slotFrame.Name = `Slot{i}` - slotFrame.ZIndex = 4.0 +local function GearGridScrollingArea() + return New "Frame" { + RobloxLocked = true, + Name = "GearGridScrollingArea", + Position = UDim2.new(1, -19, 0, 35), + Size = UDim2.new(0, 17, 1, -45), + BackgroundTransparency = 1, + } +end + +local function AttributeImage() + return New "ImageLabel" { + RobloxLocked = true, + Name = "GenreImage", + BackgroundColor3 = Color3.new(102 / 255, 153 / 255, 1), + BackgroundTransparency = 0.5, + BorderSizePixel = 0, + Size = UDim2.new(0.25, 0, 1, 0), + } +end + +-- First up is the current loadout +local CurrentLoadout = New "Frame" { + Name = "CurrentLoadout", + Position = UDim2.new(0.5, -300, 1, -85), + Size = UDim2.new(0, 600, 0, 54), + BackgroundTransparency = 1, + RobloxLocked = true, + Parent = gui, + New "ImageLabel" { + Name = "Background", + Size = UDim2.new(1.2, 0, 1.2, 0), + Image = "http://banland.xyz/asset/?id=96536002", + BackgroundTransparency = 1, + Position = UDim2.new(-0.1, 0, -0.1, 0), + ZIndex = 0.0, + Visible = false, + New "ImageLabel" { + Size = UDim2.new(1, 0, 0.025, 1), + Position = UDim2.new(0, 0, 0, 0), + Image = "http://banland.xyz/asset/?id=97662207", + BackgroundTransparency = 1, + }, + }, + New "BoolValue" { + Name = "Debounce", + RobloxLocked = true, + }, + New "ImageButton" { + Name = "TempSlot", + Active = true, + Size = UDim2.new(1, 0, 1, 0), + BackgroundTransparency = 1, + Style = "Custom", + Visible = false, + RobloxLocked = true, + ZIndex = 3.0, + New "ImageLabel" { + Name = "Background", + BackgroundTransparency = 1, + Image = "http://banland.xyz/asset/?id=97613075", + Size = UDim2.new(1, 0, 1, 0), + }, + -- New "ImageLabel" { + -- Name = "Highlight", + -- BackgroundTransparency = 1, + -- Image = "http://banland.xyz/asset/?id=97643886", + -- Size = UDim2.new(1, 0, 1, 0), + -- Visible = false, + -- } + New "ObjectValue" { + Name = "GearReference", + RobloxLocked = true, + }, + New "TextLabel" { + Name = "ToolTipLabel", + RobloxLocked = true, + Text = "", + BackgroundTransparency = 0.5, + BorderSizePixel = 0, + Visible = false, + TextColor3 = Color3.new(1, 1, 1), + BackgroundColor3 = Color3.new(0, 0, 0), + TextStrokeTransparency = 0, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size14, + -- TextWrap = true, + Size = UDim2.new(1, 60, 0, 20), + Position = UDim2.new(0, -30, 0, -30), + }, + New "BoolValue" { + Name = "Kill", + RobloxLocked = true, + }, + New "ImageLabel" { + Name = "GearImage", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0, 0), + Size = UDim2.new(1, 0, 1, 0), + ZIndex = 5.0, + RobloxLocked = true, + }, + New "TextLabel" { + RobloxLocked = true, + Name = "GearText", + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size14, + Position = UDim2.new(0, -8, 0, -8), + Size = UDim2.new(1, 16, 1, 16), + Text = "", + TextColor3 = Color3.new(1, 1, 1), + TextWrap = true, + ZIndex = 5.0, + }, + SlotNumber(), + New(SlotNumber()) { + Name = "SlotNumberDownShadow", + TextColor3 = Color3.new(0, 0, 0), + Position = UDim2.new(0, 1, 0, -1), + ZIndex = 2, + }, + New(SlotNumber()) { + Name = "SlotNumberUpShadow", + TextColor3 = Color3.new(0, 0, 0), + Position = UDim2.new(0, -1, 0, -1), + ZIndex = 2, + }, + }, +} + +waitForChild(gui, "ControlFrame") + +New "ImageButton" { + RobloxLocked = true, + Visible = false, + Name = "BackpackButton", + BackgroundTransparency = 1, + Image = "http://banland.xyz/asset/?id=97617958", + Position = UDim2.new(0.5, -60, 1, -108), + Size = UDim2.new(0, 120, 0, 18), + Parent = gui.ControlFrame +} + +for i = 0, 9 do + local slotFrame = New "Frame" { + RobloxLocked = true, + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 1, + BorderColor3 = Color3.new(1, 1, 1), + Name = "Slot" .. i, + ZIndex = 4.0, + Size = UDim2.new(0, 54, 1, 0), + } if i == 0 then slotFrame.Position = UDim2.new(0.9, 0, 0, 0) else slotFrame.Position = UDim2.new((i - 1) * 0.1, (i - 1) * 6, 0, 0) end - slotFrame.Size = UDim2.new(0, 54, 1, 0) slotFrame.Parent = CurrentLoadout if gui.AbsoluteSize.Y <= 320 then slotFrame.Position = UDim2.new(0, (i - 1) * 60, 0, -50) - print( - "Well got here", - slotFrame, - slotFrame.Position.X.Scale, - slotFrame.Position.X.Offset - ) + -- print( + -- "Well got here", + -- slotFrame, + -- slotFrame.Position.X.Scale, + -- slotFrame.Position.X.Offset + -- ) end if gui.AbsoluteSize.Y <= 320 and i == 0 then slotFrame:Destroy() end end -local TempSlot = Instance.new "ImageButton" -TempSlot.Name = "TempSlot" -TempSlot.Active = true -TempSlot.Size = UDim2.new(1, 0, 1, 0) -TempSlot.BackgroundTransparency = 1 -TempSlot.Style = "Custom" -TempSlot.Visible = false -TempSlot.RobloxLocked = true -TempSlot.Parent = CurrentLoadout -TempSlot.ZIndex = 3.0 +-- Great, now lets make the inventory! +-- Ultimate nested trees of whitespace supremacy time -local slotBackground = Instance.new "ImageLabel" -slotBackground.Name = "Background" -slotBackground.BackgroundTransparency = 1 -slotBackground.Image = "http://banland.xyz/asset/?id=97613075" -slotBackground.Size = UDim2.new(1, 0, 1, 0) -slotBackground.Parent = TempSlot - -local HighLight = Instance.new "ImageLabel" -HighLight.Name = "Highlight" -HighLight.BackgroundTransparency = 1 -HighLight.Image = "http://banland.xyz/asset/?id=97643886" -HighLight.Size = UDim2.new(1, 0, 1, 0) ---HighLight.Parent = TempSlot -HighLight.Visible = false - --- TempSlot Children -local GearReference = Instance.new "ObjectValue" -GearReference.Name = "GearReference" -GearReference.RobloxLocked = true -GearReference.Parent = TempSlot - -local ToolTipLabel = Instance.new "TextLabel" -ToolTipLabel.Name = "ToolTipLabel" -ToolTipLabel.RobloxLocked = true -ToolTipLabel.Text = "" -ToolTipLabel.BackgroundTransparency = 0.5 -ToolTipLabel.BorderSizePixel = 0 -ToolTipLabel.Visible = false -ToolTipLabel.TextColor3 = Color3.new(1, 1, 1) -ToolTipLabel.BackgroundColor3 = Color3.new(0, 0, 0) -ToolTipLabel.TextStrokeTransparency = 0 -ToolTipLabel.Font = Enum.Font.ArialBold -ToolTipLabel.FontSize = Enum.FontSize.Size14 ---ToolTipLabel.TextWrap = true -ToolTipLabel.Size = UDim2.new(1, 60, 0, 20) -ToolTipLabel.Position = UDim2.new(0, -30, 0, -30) -ToolTipLabel.Parent = TempSlot - -local Kill = Instance.new "BoolValue" -Kill.Name = "Kill" -Kill.RobloxLocked = true -Kill.Parent = TempSlot - -local GearImage = Instance.new "ImageLabel" -GearImage.Name = "GearImage" -GearImage.BackgroundTransparency = 1 -GearImage.Position = UDim2.new(0, 0, 0, 0) -GearImage.Size = UDim2.new(1, 0, 1, 0) -GearImage.ZIndex = 5.0 -GearImage.RobloxLocked = true -GearImage.Parent = TempSlot - -local SlotNumber = Instance.new "TextLabel" -SlotNumber.Name = "SlotNumber" -SlotNumber.BackgroundTransparency = 1 -SlotNumber.BorderSizePixel = 0 -SlotNumber.Font = Enum.Font.ArialBold -SlotNumber.FontSize = Enum.FontSize.Size18 -SlotNumber.Position = UDim2.new(0, 0, 0, 0) -SlotNumber.Size = UDim2.new(0, 10, 0, 15) -SlotNumber.TextColor3 = Color3.new(1, 1, 1) -SlotNumber.TextTransparency = 0 -SlotNumber.TextXAlignment = Enum.TextXAlignment.Left -SlotNumber.TextYAlignment = Enum.TextYAlignment.Bottom -SlotNumber.RobloxLocked = true -SlotNumber.Parent = TempSlot -SlotNumber.ZIndex = 5 - -if IsTouchDevice() then - SlotNumber.Visible = false -end - -local SlotNumberDownShadow = SlotNumber:Clone() -SlotNumberDownShadow.Name = "SlotNumberDownShadow" -SlotNumberDownShadow.TextColor3 = Color3.new(0, 0, 0) -SlotNumberDownShadow.Position = UDim2.new(0, 1, 0, -1) -SlotNumberDownShadow.Parent = TempSlot -SlotNumberDownShadow.ZIndex = 2 - -local SlotNumberUpShadow = SlotNumberDownShadow:Clone() -SlotNumberUpShadow.Name = "SlotNumberUpShadow" -SlotNumberUpShadow.Position = UDim2.new(0, -1, 0, -1) -SlotNumberUpShadow.Parent = TempSlot - -local GearText = Instance.new "TextLabel" -GearText.RobloxLocked = true -GearText.Name = "GearText" -GearText.BackgroundTransparency = 1 -GearText.Font = Enum.Font.Arial -GearText.FontSize = Enum.FontSize.Size14 -GearText.Position = UDim2.new(0, -8, 0, -8) -GearText.Size = UDim2.new(1, 16, 1, 16) -GearText.Text = "" -GearText.TextColor3 = Color3.new(1, 1, 1) -GearText.TextWrap = true -GearText.Parent = TempSlot -GearText.ZIndex = 5.0 - ---- Great, now lets make the inventory! - -local Backpack = Instance.new "Frame" -Backpack.RobloxLocked = true -Backpack.Visible = false -Backpack.Name = "Backpack" -Backpack.Position = UDim2.new(0.5, 0, 0.5, 0) -Backpack.BackgroundColor3 = Color3.new(32 / 255, 32 / 255, 32 / 255) -Backpack.BackgroundTransparency = 0.0 -Backpack.BorderSizePixel = 0 -Backpack.Parent = gui -Backpack.Active = true - --- Backpack Children -local SwapSlot = Instance.new "BoolValue" -SwapSlot.RobloxLocked = true -SwapSlot.Name = "SwapSlot" -SwapSlot.Parent = Backpack - --- SwapSlot Children -local Slot = Instance.new "IntValue" -Slot.RobloxLocked = true -Slot.Name = "Slot" -Slot.Parent = SwapSlot - -local GearButton = Instance.new "ObjectValue" -GearButton.RobloxLocked = true -GearButton.Name = "GearButton" -GearButton.Parent = SwapSlot - -local Tabs = Instance.new "Frame" -Tabs.Name = "Tabs" -Tabs.Visible = false -Tabs.Active = false -Tabs.RobloxLocked = true -Tabs.BackgroundColor3 = Color3.new(0, 0, 0) -Tabs.BackgroundTransparency = 0.08 -Tabs.BorderSizePixel = 0 -Tabs.Position = UDim2.new(0, 0, -0.1, -4) -Tabs.Size = UDim2.new(1, 0, 0.1, 4) -Tabs.Parent = Backpack - --- Tabs Children - -local tabLine = Instance.new "Frame" -tabLine.RobloxLocked = true -tabLine.Name = "TabLine" -tabLine.BackgroundColor3 = Color3.new(53 / 255, 53 / 255, 53 / 255) -tabLine.BorderSizePixel = 0 -tabLine.Position = UDim2.new(0, 5, 1, -4) -tabLine.Size = UDim2.new(1, -10, 0, 4) -tabLine.ZIndex = 2 -tabLine.Parent = Tabs - -local InventoryButton = Instance.new "TextButton" -InventoryButton.RobloxLocked = true -InventoryButton.Name = "InventoryButton" -InventoryButton.Size = UDim2.new(0, 60, 0, 30) -InventoryButton.Position = UDim2.new(0, 7, 1, -31) -InventoryButton.BackgroundColor3 = Color3.new(1, 1, 1) -InventoryButton.BorderColor3 = Color3.new(1, 1, 1) -InventoryButton.Font = Enum.Font.ArialBold -InventoryButton.FontSize = Enum.FontSize.Size18 -InventoryButton.Text = "Gear" -InventoryButton.AutoButtonColor = false -InventoryButton.TextColor3 = Color3.new(0, 0, 0) -InventoryButton.Selected = true -InventoryButton.Active = true -InventoryButton.ZIndex = 3 -InventoryButton.Parent = Tabs - -local closeButton = Instance.new "TextButton" -closeButton.RobloxLocked = true -closeButton.Name = "CloseButton" -closeButton.Font = Enum.Font.ArialBold -closeButton.FontSize = Enum.FontSize.Size24 -closeButton.Position = UDim2.new(1, -33, 0, 4) -closeButton.Size = UDim2.new(0, 30, 0, 30) -closeButton.Style = Enum.ButtonStyle.RobloxButton -closeButton.Text = "" -closeButton.TextColor3 = Color3.new(1, 1, 1) -closeButton.Parent = Tabs -closeButton.Modal = true - ---closeButton child -local XImage = Instance.new "ImageLabel" -XImage.RobloxLocked = true -XImage.Name = "XImage" -ContentProvider:Preload "http://banland.xyz/asset/?id=75547445" -XImage.Image = "http://banland.xyz/asset/?id=75547445" --TODO: move to rbxasset -XImage.BackgroundTransparency = 1 -XImage.Position = UDim2.new(-0.25, -1, -0.25, -1) -XImage.Size = UDim2.new(1.5, 2, 1.5, 2) -XImage.ZIndex = 2 -XImage.Parent = closeButton - --- Generic Search gui used across backpack -local SearchFrame = Instance.new "Frame" -SearchFrame.RobloxLocked = true -SearchFrame.Name = "SearchFrame" -SearchFrame.BackgroundTransparency = 1 -SearchFrame.Position = UDim2.new(1, -220, 0, 2) -SearchFrame.Size = UDim2.new(0, 220, 0, 24) -SearchFrame.Parent = Backpack - --- SearchFrame Children -local SearchButton = Instance.new "ImageButton" -SearchButton.RobloxLocked = true -SearchButton.Name = "SearchButton" -SearchButton.Size = UDim2.new(0, 25, 0, 25) -SearchButton.BackgroundTransparency = 1 -SearchButton.Image = "rbxasset://textures/ui/SearchIcon.png" -SearchButton.Parent = SearchFrame - -local SearchBoxFrame = Instance.new "TextButton" -SearchBoxFrame.RobloxLocked = true -SearchBoxFrame.Position = UDim2.new(0, 25, 0, 0) -SearchBoxFrame.Size = UDim2.new(1, -28, 0, 26) -SearchBoxFrame.Name = "SearchBoxFrame" -SearchBoxFrame.Text = "" -SearchBoxFrame.Style = Enum.ButtonStyle.RobloxButton -SearchBoxFrame.Parent = SearchFrame - --- SearchBoxFrame Children -local SearchBox = Instance.new "TextBox" -SearchBox.RobloxLocked = true -SearchBox.Name = "SearchBox" -SearchBox.BackgroundTransparency = 1 -SearchBox.Font = Enum.Font.ArialBold -SearchBox.FontSize = Enum.FontSize.Size12 -SearchBox.Position = UDim2.new(0, -5, 0, -5) -SearchBox.Size = UDim2.new(1, 10, 1, 10) -SearchBox.TextColor3 = Color3.new(1, 1, 1) -SearchBox.TextXAlignment = Enum.TextXAlignment.Left -SearchBox.ZIndex = 2 -SearchBox.TextWrap = true -SearchBox.Text = "Search..." -SearchBox.Parent = SearchBoxFrame - -local ResetButton = Instance.new "TextButton" -ResetButton.RobloxLocked = true -ResetButton.Visible = false -ResetButton.Name = "ResetButton" -ResetButton.Position = UDim2.new(1, -26, 0, 3) -ResetButton.Size = UDim2.new(0, 20, 0, 20) -ResetButton.Style = Enum.ButtonStyle.RobloxButtonDefault -ResetButton.Text = "X" -ResetButton.TextColor3 = Color3.new(1, 1, 1) -ResetButton.Font = Enum.Font.ArialBold -ResetButton.FontSize = Enum.FontSize.Size18 -ResetButton.ZIndex = 3 -ResetButton.Parent = SearchFrame - -------------------------------- GEAR ------------------------------------------------------- -local Gear = Instance.new "Frame" -Gear.Name = "Gear" -Gear.RobloxLocked = true -Gear.BackgroundTransparency = 1 -Gear.Size = UDim2.new(1, 0, 1, 0) -Gear.ClipsDescendants = true -Gear.Parent = Backpack - --- Gear Children -local AssetsList = Instance.new "Frame" -AssetsList.RobloxLocked = true -AssetsList.Name = "AssetsList" -AssetsList.BackgroundTransparency = 1 -AssetsList.Size = UDim2.new(0.2, 0, 1, 0) -AssetsList.Style = Enum.FrameStyle.RobloxSquare -AssetsList.Visible = false -AssetsList.Parent = Gear - -local GearGrid = Instance.new "Frame" -GearGrid.RobloxLocked = true -GearGrid.Name = "GearGrid" -GearGrid.Size = UDim2.new(0.95, 0, 1, 0) -GearGrid.BackgroundTransparency = 1 -GearGrid.Parent = Gear - -GearButton = Instance.new "ImageButton" -GearButton.RobloxLocked = true -GearButton.Visible = false -GearButton.Name = "GearButton" -GearButton.Size = UDim2.new(0, 54, 0, 54) -GearButton.Style = "Custom" -GearButton.BackgroundTransparency = 1 -GearButton.Parent = GearGrid - -slotBackground = Instance.new "ImageLabel" -slotBackground.Name = "Background" -slotBackground.BackgroundTransparency = 1 -slotBackground.Image = "http://banland.xyz/asset/?id=97613075" -slotBackground.Size = UDim2.new(1, 0, 1, 0) -slotBackground.Parent = GearButton - --- GearButton Children -GearReference = Instance.new "ObjectValue" -GearReference.RobloxLocked = true -GearReference.Name = "GearReference" -GearReference.Parent = GearButton - -local GreyOutButton = Instance.new "Frame" -GreyOutButton.RobloxLocked = true -GreyOutButton.Name = "GreyOutButton" -GreyOutButton.BackgroundTransparency = 0.5 -GreyOutButton.Size = UDim2.new(1, 0, 1, 0) -GreyOutButton.Active = true -GreyOutButton.Visible = false -GreyOutButton.ZIndex = 3 -GreyOutButton.Parent = GearButton - -GearText = Instance.new "TextLabel" -GearText.RobloxLocked = true -GearText.Name = "GearText" -GearText.BackgroundTransparency = 1 -GearText.Font = Enum.Font.Arial -GearText.FontSize = Enum.FontSize.Size14 -GearText.Position = UDim2.new(0, -8, 0, -8) -GearText.Size = UDim2.new(1, 16, 1, 16) -GearText.Text = "" -GearText.ZIndex = 2 -GearText.TextColor3 = Color3.new(1, 1, 1) -GearText.TextWrap = true -GearText.Parent = GearButton - -local GearGridScrollingArea = Instance.new "Frame" -GearGridScrollingArea.RobloxLocked = true -GearGridScrollingArea.Name = "GearGridScrollingArea" -GearGridScrollingArea.Position = UDim2.new(1, -19, 0, 35) -GearGridScrollingArea.Size = UDim2.new(0, 17, 1, -45) -GearGridScrollingArea.BackgroundTransparency = 1 -GearGridScrollingArea.Parent = Gear - -local GearLoadouts = Instance.new "Frame" -GearLoadouts.RobloxLocked = true -GearLoadouts.Name = "GearLoadouts" -GearLoadouts.BackgroundTransparency = 1 -GearLoadouts.Position = UDim2.new(0.7, 23, 0.5, 1) -GearLoadouts.Size = UDim2.new(0.3, -23, 0.5, -1) -GearLoadouts.Parent = Gear -GearLoadouts.Visible = false - --- GearLoadouts Children -local GearLoadoutsHeader = Instance.new "Frame" -GearLoadoutsHeader.RobloxLocked = true -GearLoadoutsHeader.Name = "GearLoadoutsHeader" -GearLoadoutsHeader.BackgroundColor3 = Color3.new(0, 0, 0) -GearLoadoutsHeader.BackgroundTransparency = 0.2 -GearLoadoutsHeader.BorderColor3 = Color3.new(1, 0, 0) -GearLoadoutsHeader.Size = UDim2.new(1, 2, 0.15, -1) -GearLoadoutsHeader.Parent = GearLoadouts - --- GearLoadoutsHeader Children -local LoadoutsHeaderText = Instance.new "TextLabel" -LoadoutsHeaderText.RobloxLocked = true -LoadoutsHeaderText.Name = "LoadoutsHeaderText" -LoadoutsHeaderText.BackgroundTransparency = 1 -LoadoutsHeaderText.Font = Enum.Font.ArialBold -LoadoutsHeaderText.FontSize = Enum.FontSize.Size18 -LoadoutsHeaderText.Size = UDim2.new(1, 0, 1, 0) -LoadoutsHeaderText.Text = "Loadouts" -LoadoutsHeaderText.TextColor3 = Color3.new(1, 1, 1) -LoadoutsHeaderText.Parent = GearLoadoutsHeader - -local GearLoadoutsScrollingArea = GearGridScrollingArea:clone() -GearLoadoutsScrollingArea.RobloxLocked = true -GearLoadoutsScrollingArea.Name = "GearLoadoutsScrollingArea" -GearLoadoutsScrollingArea.Position = UDim2.new(1, -15, 0.15, 2) -GearLoadoutsScrollingArea.Size = UDim2.new(0, 17, 0.85, -2) -GearLoadoutsScrollingArea.Parent = GearLoadouts - -local LoadoutsList = Instance.new "Frame" -LoadoutsList.RobloxLocked = true -LoadoutsList.Name = "LoadoutsList" -LoadoutsList.Position = UDim2.new(0, 0, 0.15, 2) -LoadoutsList.Size = UDim2.new(1, -17, 0.85, -2) -LoadoutsList.Style = Enum.FrameStyle.RobloxSquare -LoadoutsList.Parent = GearLoadouts - -local GearPreview = Instance.new "Frame" -GearPreview.RobloxLocked = true -GearPreview.Name = "GearPreview" -GearPreview.Position = UDim2.new(0.7, 23, 0, 0) -GearPreview.Size = UDim2.new(0.3, -28, 0.5, -1) -GearPreview.BackgroundTransparency = 1 -GearPreview.ZIndex = 7 -GearPreview.Parent = Gear - --- GearPreview Children -local GearStats = Instance.new "Frame" -GearStats.RobloxLocked = true -GearStats.Name = "GearStats" -GearStats.BackgroundTransparency = 1 -GearStats.Position = UDim2.new(0, 0, 0.75, 0) -GearStats.Size = UDim2.new(1, 0, 0.25, 0) -GearStats.ZIndex = 8 -GearStats.Parent = GearPreview - --- GearStats Children -local GearName = Instance.new "TextLabel" -GearName.RobloxLocked = true -GearName.Name = "GearName" -GearName.BackgroundTransparency = 1 -GearName.Font = Enum.Font.ArialBold -GearName.FontSize = Enum.FontSize.Size18 -GearName.Position = UDim2.new(0, -3, 0, 0) -GearName.Size = UDim2.new(1, 6, 1, 5) -GearName.Text = "" -GearName.TextColor3 = Color3.new(1, 1, 1) -GearName.TextWrap = true -GearName.ZIndex = 9 -GearName.Parent = GearStats - -GearImage = Instance.new "ImageLabel" -GearImage.RobloxLocked = true -GearImage.Name = "GearImage" -GearImage.Image = "" -GearImage.BackgroundTransparency = 1 -GearImage.Position = UDim2.new(0.125, 0, 0, 0) -GearImage.Size = UDim2.new(0.75, 0, 0.75, 0) -GearImage.ZIndex = 8 -GearImage.Parent = GearPreview - ---GearImage Children -local GearIcons = Instance.new "Frame" -GearIcons.BackgroundColor3 = Color3.new(0, 0, 0) -GearIcons.BackgroundTransparency = 0.5 -GearIcons.BorderSizePixel = 0 -GearIcons.RobloxLocked = true -GearIcons.Name = "GearIcons" -GearIcons.Position = UDim2.new(0.4, 2, 0.85, -2) -GearIcons.Size = UDim2.new(0.6, 0, 0.15, 0) -GearIcons.Visible = false -GearIcons.ZIndex = 9 -GearIcons.Parent = GearImage - --- GearIcons Children -local GenreImage = Instance.new "ImageLabel" -GenreImage.RobloxLocked = true -GenreImage.Name = "GenreImage" -GenreImage.BackgroundColor3 = Color3.new(102 / 255, 153 / 255, 1) -GenreImage.BackgroundTransparency = 0.5 -GenreImage.BorderSizePixel = 0 -GenreImage.Size = UDim2.new(0.25, 0, 1, 0) -GenreImage.Parent = GearIcons - -local AttributeOneImage = GenreImage:clone() -AttributeOneImage.RobloxLocked = true -AttributeOneImage.Name = "AttributeOneImage" -AttributeOneImage.BackgroundColor3 = Color3.new(1, 51 / 255, 0) -AttributeOneImage.Position = UDim2.new(0.25, 0, 0, 0) -AttributeOneImage.Parent = GearIcons - -local AttributeTwoImage = GenreImage:clone() -AttributeTwoImage.RobloxLocked = true -AttributeTwoImage.Name = "AttributeTwoImage" -AttributeTwoImage.BackgroundColor3 = Color3.new(153 / 255, 1, 153 / 255) -AttributeTwoImage.Position = UDim2.new(0.5, 0, 0, 0) -AttributeTwoImage.Parent = GearIcons - -local AttributeThreeImage = GenreImage:clone() -AttributeThreeImage.RobloxLocked = true -AttributeThreeImage.Name = "AttributeThreeImage" -AttributeThreeImage.BackgroundColor3 = Color3.new(0, 0.5, 0.5) -AttributeThreeImage.Position = UDim2.new(0.75, 0, 0, 0) -AttributeThreeImage.Parent = GearIcons +New "Frame" { + RobloxLocked = true, + Name = "Backpack", + Visible = false, + Position = UDim2.new(0.5, 0, 0.5, 0), + BackgroundColor3 = Color3.new(32 / 255, 32 / 255, 32 / 255), + BackgroundTransparency = 0.0, + BorderSizePixel = 0, + Parent = gui, + Active = true, + New "Frame" { + RobloxLocked = true, + Name = "Tabs", + Visible = false, + Active = false, + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.08, + BorderSizePixel = 0, + Position = UDim2.new(0, 0, -0.1, -4), + Size = UDim2.new(1, 0, 0.1, 4), + New "Frame" { + RobloxLocked = true, + Name = "TabLine", + BackgroundColor3 = Color3.new(53 / 255, 53 / 255, 53 / 255), + BorderSizePixel = 0, + Position = UDim2.new(0, 5, 1, -4), + Size = UDim2.new(1, -10, 0, 4), + ZIndex = 2, + }, + New "TextButton" { + RobloxLocked = true, + Name = "InventoryButton", + Size = UDim2.new(0, 60, 0, 30), + Position = UDim2.new(0, 7, 1, -31), + BackgroundColor3 = Color3.new(1, 1, 1), + BorderColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Text = "Gear", + AutoButtonColor = false, + TextColor3 = Color3.new(0, 0, 0), + Selected = true, + Active = true, + ZIndex = 3, + }, + New "TextButton" { + RobloxLocked = true, + Name = "CloseButton", + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size24, + Position = UDim2.new(1, -33, 0, 4), + Size = UDim2.new(0, 30, 0, 30), + Style = Enum.ButtonStyle.RobloxButton, + Text = "", + TextColor3 = Color3.new(1, 1, 1), + Modal = true, + New "ImageLabel" { + RobloxLocked = true, + Name = "XImage", + Image = "http://banland.xyz/asset/?id=75547445", + BackgroundTransparency = 1, + Position = UDim2.new(-0.25, -1, -0.25, -1), + Size = UDim2.new(1.5, 2, 1.5, 2), + ZIndex = 2, + }, + }, + }, + -- Generic Search gui used across backpack + New "Frame" { + RobloxLocked = true, + Name = "SearchFrame", + BackgroundTransparency = 1, + Position = UDim2.new(1, -220, 0, 2), + Size = UDim2.new(0, 220, 0, 24), + New "ImageButton" { + RobloxLocked = true, + Name = "SearchButton", + Size = UDim2.new(0, 25, 0, 25), + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/SearchIcon.png", + }, + New "TextButton" { + RobloxLocked = true, + Position = UDim2.new(0, 25, 0, 0), + Size = UDim2.new(1, -28, 0, 26), + Name = "SearchBoxFrame", + Text = "", + Style = Enum.ButtonStyle.RobloxButton, + New "TextBox" { + RobloxLocked = true, + Name = "SearchBox", + BackgroundTransparency = 1, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size12, + Position = UDim2.new(0, -5, 0, -5), + Size = UDim2.new(1, 10, 1, 10), + TextColor3 = Color3.new(1, 1, 1), + TextXAlignment = Enum.TextXAlignment.Left, + ZIndex = 2, + TextWrap = true, + Text = "Search...", + }, + }, + New "TextButton" { + RobloxLocked = true, + Visible = false, + Name = "ResetButton", + Position = UDim2.new(1, -26, 0, 3), + Size = UDim2.new(0, 20, 0, 20), + Style = Enum.ButtonStyle.RobloxButtonDefault, + Text = "X", + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + ZIndex = 3, + }, + }, + New "BoolValue" { + RobloxLocked = true, + Name = "SwapSlot", + New "IntValue" { + RobloxLocked = true, + Name = "Slot", + }, + New "ObjectValue" { + RobloxLocked = true, + Name = "GearButton", + }, + }, + New "Frame" { + Name = "Gear", + RobloxLocked = true, + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + ClipsDescendants = true, + New "Frame" { + RobloxLocked = true, + Name = "AssetsList", + BackgroundTransparency = 1, + Size = UDim2.new(0.2, 0, 1, 0), + Style = Enum.FrameStyle.RobloxSquare, + Visible = false, + }, + GearGridScrollingArea(), + New "Frame" { + RobloxLocked = true, + Name = "GearLoadouts", + BackgroundTransparency = 1, + Position = UDim2.new(0.7, 23, 0.5, 1), + Size = UDim2.new(0.3, -23, 0.5, -1), + Visible = false, + New "Frame" { + RobloxLocked = true, + Name = "GearLoadoutsHeader", + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.2, + BorderColor3 = Color3.new(1, 0, 0), + Size = UDim2.new(1, 2, 0.15, -1), + New "TextLabel" { + RobloxLocked = true, + Name = "LoadoutsHeaderText", + BackgroundTransparency = 1, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Size = UDim2.new(1, 0, 1, 0), + Text = "Loadouts", + TextColor3 = Color3.new(1, 1, 1), + }, + }, + New(GearGridScrollingArea()) { + Name = "GearLoadoutsScrollingArea", + Position = UDim2.new(1, -15, 0.15, 2), + Size = UDim2.new(0, 17, 0.85, -2), + }, + New "Frame" { + RobloxLocked = true, + Name = "LoadoutsList", + Position = UDim2.new(0, 0, 0.15, 2), + Size = UDim2.new(1, -17, 0.85, -2), + Style = Enum.FrameStyle.RobloxSquare, + }, + }, + New "Frame" { + RobloxLocked = true, + Name = "GearPreview", + Position = UDim2.new(0.7, 23, 0, 0), + Size = UDim2.new(0.3, -28, 0.5, -1), + BackgroundTransparency = 1, + ZIndex = 7, + New "Frame" { + RobloxLocked = true, + Name = "GearStats", + BackgroundTransparency = 1, + Position = UDim2.new(0, 0, 0.75, 0), + Size = UDim2.new(1, 0, 0.25, 0), + ZIndex = 8, + New "TextLabel" { + RobloxLocked = true, + Name = "GearName", + BackgroundTransparency = 1, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0, -3, 0, 0), + Size = UDim2.new(1, 6, 1, 5), + Text = "", + TextColor3 = Color3.new(1, 1, 1), + TextWrap = true, + ZIndex = 9, + }, + }, + New "ImageLabel" { + RobloxLocked = true, + Name = "GearImage", + Image = "", + BackgroundTransparency = 1, + Position = UDim2.new(0.125, 0, 0, 0), + Size = UDim2.new(0.75, 0, 0.75, 0), + ZIndex = 8, + New "Frame" { + BackgroundColor3 = Color3.new(0, 0, 0), + BackgroundTransparency = 0.5, + BorderSizePixel = 0, + RobloxLocked = true, + Name = "GearIcons", + Position = UDim2.new(0.4, 2, 0.85, -2), + Size = UDim2.new(0.6, 0, 0.15, 0), + Visible = false, + ZIndex = 9, + AttributeImage(), + New(AttributeImage()) { + Name = "AttributeOneImage", + BackgroundColor3 = Color3.new(1, 51 / 255, 0), + Position = UDim2.new(0.25, 0, 0, 0), + }, + New(AttributeImage()) { + Name = "AttributeTwoImage", + BackgroundColor3 = Color3.new(153 / 255, 1, 153 / 255), + Position = UDim2.new(0.5, 0, 0, 0), + }, + New(AttributeImage()) { + Name = "AttributeThreeImage", + BackgroundColor3 = Color3.new(0, 0.5, 0.5), + Position = UDim2.new(0.75, 0, 0, 0), + }, + }, + }, + }, + New "Frame" { + RobloxLocked = true, + Name = "GearGrid", + Size = UDim2.new(0.95, 0, 1, 0), + BackgroundTransparency = 1, + New "ImageButton" { + RobloxLocked = true, + Visible = false, + Name = "GearButton", + Size = UDim2.new(0, 54, 0, 54), + Style = "Custom", + BackgroundTransparency = 1, + New "Frame" { + RobloxLocked = true, + Name = "GreyOutButton", + BackgroundTransparency = 0.5, + Size = UDim2.new(1, 0, 1, 0), + Active = true, + Visible = false, + ZIndex = 3, + }, + New "ImageLabel" { + Name = "Background", + BackgroundTransparency = 1, + Image = "http://banland.xyz/asset/?id=97613075", + Size = UDim2.new(1, 0, 1, 0), + }, + New "ObjectValue" { + RobloxLocked = true, + Name = "GearReference", + }, + New "TextLabel" { + RobloxLocked = true, + Name = "GearText", + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size14, + Position = UDim2.new(0, -8, 0, -8), + Size = UDim2.new(1, 16, 1, 16), + Text = "", + ZIndex = 2, + TextColor3 = Color3.new(1, 1, 1), + TextWrap = true, + }, + }, + }, + }, +} -- wardrobe is gone lmao diff --git a/luau/89449093.luau b/luau/89449093.luau index 1837d18..679568c 100644 --- a/luau/89449093.luau +++ b/luau/89449093.luau @@ -39,7 +39,6 @@ local closeButton = backpack.Tabs.CloseButton waitForChild(backpack.Tabs, "InventoryButton") local inventoryButton = backpack.Tabs.InventoryButton -local wardrobeButton waitForChild(backpack.Parent, "ControlFrame") local backpackButton = waitForChild(backpack.Parent.ControlFrame, "BackpackButton") @@ -297,9 +296,7 @@ function updateTabGui(selectedTab) if selectedTab == "gear" then setSelected(inventoryButton) - setUnselected(wardrobeButton) elseif selectedTab == "wardrobe" then - setSelected(wardrobeButton) setUnselected(inventoryButton) end end