diff --git a/processed/45284430.lua b/processed/45284430.lua index bbd793b..71b9c38 100644 --- a/processed/45284430.lua +++ b/processed/45284430.lua @@ -1713,7 +1713,7 @@ binaryShrink = function(min, max, fits) end local getGuiOwner getGuiOwner = function(instance) - while instance ~= nil do + while (instance ~= nil) do if instance:IsA("ScreenGui") or instance:IsA("BillboardGui") then return instance end @@ -2002,7 +2002,7 @@ CreateBasicTutorialPage = function(name, handleResize, skipTutorial, giveDoneBut end frame.Changed:connect(function(prop) if prop == "Parent" then - if parentConnection ~= nil then + if (parentConnection ~= nil) then parentConnection:disconnect() parentConnection = nil end @@ -2675,7 +2675,7 @@ t.CreateSetPanel = function(userIdsForSets, objectSelected, dialogClosed, size, end local selectSet selectSet = function(button, setName, setId, _) - if button and Data.Category[Data.CurrentCategory] ~= nil then + if button and (Data.Category[Data.CurrentCategory] ~= nil) then if button ~= Data.Category[Data.CurrentCategory].Button then Data.Category[Data.CurrentCategory].Button = button if SetCache[setId] == nil then diff --git a/processed/46295863.lua b/processed/46295863.lua index d7bc666..c027335 100644 --- a/processed/46295863.lua +++ b/processed/46295863.lua @@ -1,4 +1,29 @@ print("[Mercury]: Loaded corescript 46295863") +local New +New = function(className, name, props) + if not (props ~= nil) then + props = name + name = nil + end + local obj = Instance.new(className) + if name then + obj.Name = name + end + local parent + for k, v in pairs(props) do + if type(k) == "string" then + if k == "Parent" then + parent = v + else + obj[k] = v + end + elseif type(k) == "number" and type(v) == "userdata" then + v.Parent = obj + end + end + obj.Parent = parent + return obj +end local waitForChild waitForChild = function(instance, name) while not instance:FindFirstChild(name) do @@ -145,8 +170,7 @@ CreateTextButtons = function(frame, buttons, yPos, ySize) end end for _, obj in ipairs(buttons) do - local button = Instance.new("TextButton") - button.Name = "Button" .. buttonNum + local button = New("TextButton", "Button" .. buttonNum) button.Font = Enum.Font.Arial button.FontSize = Enum.FontSize.Size18 button.AutoButtonColor = true @@ -234,62 +258,60 @@ createHelpDialog = function(baseZIndex) helpButton = gui.BottomRightControl.Help end end - local shield = Instance.new("Frame") - shield.Name = "HelpDialogShield" - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new(1, 0, 1, 0) - shield.BackgroundColor3 = Color3I(51, 51, 51) - shield.BorderColor3 = Color3I(27, 42, 53) - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 - local helpDialog = Instance.new("Frame") - helpDialog.Name = "HelpDialog" - helpDialog.Style = Enum.FrameStyle.RobloxRound - helpDialog.Position = UDim2.new(0.2, 0, 0.2, 0) - helpDialog.Size = UDim2.new(0.6, 0, 0.6, 0) - helpDialog.Active = true - helpDialog.Parent = shield - local titleLabel = Instance.new("TextLabel") - titleLabel.Name = "Title" - titleLabel.Text = "Keyboard & Mouse Controls" - titleLabel.Font = Enum.Font.ArialBold - titleLabel.FontSize = Enum.FontSize.Size36 - titleLabel.Position = UDim2.new(0, 0, 0.025, 0) - titleLabel.Size = UDim2.new(1, 0, 0, 40) - titleLabel.TextColor3 = Color3.new(1, 1, 1) - titleLabel.BackgroundTransparency = 1 - titleLabel.Parent = helpDialog - local buttonRow = Instance.new("Frame") - buttonRow.Name = "Buttons" - buttonRow.Position = UDim2.new(0.1, 0, 0.07, 40) - buttonRow.Size = UDim2.new(0.8, 0, 0, 45) - buttonRow.BackgroundTransparency = 1 - buttonRow.Parent = helpDialog - local imageFrame = Instance.new("Frame") - imageFrame.Name = "ImageFrame" - imageFrame.Position = UDim2.new(0.05, 0, 0.075, 80) - imageFrame.Size = UDim2.new(0.9, 0, 0.9, -120) - imageFrame.BackgroundTransparency = 1 - imageFrame.Parent = helpDialog - local layoutFrame = Instance.new("Frame") - layoutFrame.Name = "LayoutFrame" - layoutFrame.Position = UDim2.new(0.5, 0, 0, 0) - layoutFrame.Size = UDim2.new(1.5, 0, 1, 0) - layoutFrame.BackgroundTransparency = 1 - layoutFrame.SizeConstraint = Enum.SizeConstraint.RelativeYY - layoutFrame.Parent = imageFrame - local image = Instance.new("ImageLabel") - image.Name = "Image" - if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then - image.Image = mouseLockLookScreenUrl - else - image.Image = classicLookScreenUrl - end - image.Position = UDim2.new(-0.5, 0, 0, 0) - image.Size = UDim2.new(1, 0, 1, 0) - image.BackgroundTransparency = 1 - image.Parent = layoutFrame + local shield = New("Frame", "HelpDialogShield", { + Active = true, + Visible = false, + Size = UDim2.new(1, 0, 1, 0), + BackgroundColor3 = Color3I(51, 51, 51), + BorderColor3 = Color3I(27, 42, 53), + BackgroundTransparency = 0.4, + ZIndex = baseZIndex + 1 + }) + local helpDialog = New("Frame", "HelpDialog", { + Style = Enum.FrameStyle.RobloxRound, + Position = UDim2.new(0.2, 0, 0.2, 0), + Size = UDim2.new(0.6, 0, 0.6, 0), + Active = true, + Parent = shield, + New("TextLabel", "Title", { + Text = "Keyboard & Mouse Controls", + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + Position = UDim2.new(0, 0, 0.025, 0), + Size = UDim2.new(1, 0, 0, 40), + TextColor3 = Color3.new(1, 1, 1), + BackgroundTransparency = 1 + }), + New("Frame", "Buttons", { + Position = UDim2.new(0.1, 0, 0.07, 40), + Size = UDim2.new(0.8, 0, 0, 45), + BackgroundTransparency = 1 + }), + New("Frame", "ImageFrame", { + Position = UDim2.new(0.05, 0, 0.075, 80), + Size = UDim2.new(0.9, 0, 0.9, -120), + BackgroundTransparency = 1, + New("Frame", "LayoutFrame", { + Position = UDim2.new(0.5, 0, 0, 0), + Size = UDim2.new(1.5, 0, 1, 0), + BackgroundTransparency = 1, + SizeConstraint = Enum.SizeConstraint.RelativeYY, + New("ImageLabel", "Image", { + Image = (function() + if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then + return mouseLockLookScreenUrl + else + return classicLookScreenUrl + end + end)(), + Position = UDim2.new(-0.5, 0, 0, 0), + Size = UDim2.new(1, 0, 1, 0), + BackgroundTransparency = 1 + }) + }) + }) + }) + local buttonRow, image = helpDialog.Buttons, helpDialog.LayoutFrame.Image local buttons = { } buttons[1] = { } buttons[1].Text = "Look" @@ -336,33 +358,43 @@ createHelpDialog = function(baseZIndex) end end) end) - local okBtn = Instance.new("TextButton") - okBtn.Name = "OkBtn" - okBtn.Text = "OK" - okBtn.Modal = true - okBtn.Size = UDim2.new(0.3, 0, 0, 45) - okBtn.Position = UDim2.new(0.35, 0, 0.975, -50) - okBtn.Font = Enum.Font.Arial - okBtn.FontSize = Enum.FontSize.Size18 - okBtn.BackgroundTransparency = 1 - okBtn.TextColor3 = Color3.new(1, 1, 1) - okBtn.Style = Enum.ButtonStyle.RobloxButtonDefault + local okBtn = New("TextButton", "OkBtn", { + Text = "OK", + Modal = true, + Size = UDim2.new(0.3, 0, 0, 45), + Position = UDim2.new(0.35, 0, 0.975, -50), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + BackgroundTransparency = 1, + TextColor3 = Color3.new(1, 1, 1), + Style = Enum.ButtonStyle.RobloxButtonDefault, + Parent = helpDialog + }) okBtn.MouseButton1Click:connect(function() shield.Visible = false return game.GuiService:RemoveCenterDialog(shield) end) - okBtn.Parent = helpDialog robloxLock(shield) return shield end local createLeaveConfirmationMenu createLeaveConfirmationMenu = function(baseZIndex, shield) - local frame = Instance.new("Frame") - frame.Name = "LeaveConfirmationMenu" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new(1, 0, 1, 0) - frame.Position = UDim2.new(0, 0, 2, 400) - frame.ZIndex = baseZIndex + 4 + local frame = New("Frame", "LeaveConfirmationMenu", { + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + Position = UDim2.new(0, 0, 2, 400), + ZIndex = baseZIndex + 4, + New("TextLabel", "LeaveText", { + Text = "Leave this game?", + Size = UDim2.new(1, 0, 0.8, 0), + TextWrap = true, + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + BackgroundTransparency = 1, + ZIndex = baseZIndex + 4 + }) + }) local yesButton = createTextButton("Leave", Enum.ButtonStyle.RobloxButton, Enum.FontSize.Size24, UDim2.new(0, 128, 0, 50), UDim2.new(0, 313, 0.8, 0)) yesButton.Name = "YesButton" yesButton.ZIndex = baseZIndex + 4 @@ -377,27 +409,16 @@ createLeaveConfirmationMenu = function(baseZIndex, shield) goToMenu(shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new(0, 525, 0, 430)) return shield.Settings:TweenSize(UDim2.new(0, 525, 0, 430), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, tweenTime, true) end) - local leaveText = Instance.new("TextLabel") - leaveText.Name = "LeaveText" - leaveText.Text = "Leave this game?" - leaveText.Size = UDim2.new(1, 0, 0.8, 0) - leaveText.TextWrap = true - leaveText.TextColor3 = Color3.new(1, 1, 1) - leaveText.Font = Enum.Font.ArialBold - leaveText.FontSize = Enum.FontSize.Size36 - leaveText.BackgroundTransparency = 1 - leaveText.ZIndex = baseZIndex + 4 - leaveText.Parent = frame return frame end local createResetConfirmationMenu createResetConfirmationMenu = function(baseZIndex, shield) - local frame = Instance.new("Frame") - frame.Name = "ResetConfirmationMenu" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new(1, 0, 1, 0) - frame.Position = UDim2.new(0, 0, 2, 400) - frame.ZIndex = baseZIndex + 4 + local frame = New("Frame", "ResetConfirmationMenu", { + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + Position = UDim2.new(0, 0, 2, 400), + ZIndex = baseZIndex + 4 + }) local yesButton = createTextButton("Reset", Enum.ButtonStyle.RobloxButtonDefault, Enum.FontSize.Size24, UDim2.new(0, 128, 0, 50), UDim2.new(0, 313, 0, 299)) yesButton.Name = "YesButton" yesButton.ZIndex = baseZIndex + 4 @@ -415,46 +436,47 @@ createResetConfirmationMenu = function(baseZIndex, shield) goToMenu(shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new(0, 525, 0, 430)) return shield.Settings:TweenSize(UDim2.new(0, 525, 0, 430), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, tweenTime, true) end) - local resetCharacterText = Instance.new("TextLabel") - resetCharacterText.Name = "ResetCharacterText" - resetCharacterText.Text = "Are you sure you want to reset your character?" - resetCharacterText.Size = UDim2.new(1, 0, 0.8, 0) - resetCharacterText.TextWrap = true - resetCharacterText.TextColor3 = Color3.new(1, 1, 1) - resetCharacterText.Font = Enum.Font.ArialBold - resetCharacterText.FontSize = Enum.FontSize.Size36 - resetCharacterText.BackgroundTransparency = 1 - resetCharacterText.ZIndex = baseZIndex + 4 - resetCharacterText.Parent = frame - local fineResetCharacterText = resetCharacterText:Clone() - fineResetCharacterText.Name = "FineResetCharacterText" - fineResetCharacterText.Text = "You will be put back on a spawn point" - fineResetCharacterText.Size = UDim2.new(0, 303, 0, 18) - fineResetCharacterText.Position = UDim2.new(0, 109, 0, 215) - fineResetCharacterText.FontSize = Enum.FontSize.Size18 - fineResetCharacterText.Parent = frame + local resetCharacterText = New("TextLabel", "ResetCharacterText", { + Text = "Are you sure you want to reset your character?", + Size = UDim2.new(1, 0, 0.8, 0), + TextWrap = true, + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + BackgroundTransparency = 1, + ZIndex = baseZIndex + 4, + Parent = frame + }) + do + local _with_0 = resetCharacterText:Clone() + _with_0.Name = "FineResetCharacterText" + _with_0.Text = "You will be put back on a spawn point" + _with_0.Size = UDim2.new(0, 303, 0, 18) + _with_0.Position = UDim2.new(0, 109, 0, 215) + _with_0.FontSize = Enum.FontSize.Size18 + _with_0.Parent = frame + end return frame end local createGameMainMenu createGameMainMenu = function(baseZIndex, shield) - local gameMainMenuFrame = Instance.new("Frame") - gameMainMenuFrame.Name = "GameMainMenu" - gameMainMenuFrame.BackgroundTransparency = 1 - gameMainMenuFrame.Size = UDim2.new(1, 0, 1, 0) - gameMainMenuFrame.ZIndex = baseZIndex + 4 - gameMainMenuFrame.Parent = settingsFrame - local gameMainMenuTitle = Instance.new("TextLabel") - gameMainMenuTitle.Name = "Title" - gameMainMenuTitle.Text = "Game Menu" - gameMainMenuTitle.BackgroundTransparency = 1 - gameMainMenuTitle.TextStrokeTransparency = 0 - gameMainMenuTitle.Font = Enum.Font.ArialBold - gameMainMenuTitle.FontSize = Enum.FontSize.Size36 - gameMainMenuTitle.Size = UDim2.new(1, 0, 0, 36) - gameMainMenuTitle.Position = UDim2.new(0, 0, 0, 4) - gameMainMenuTitle.TextColor3 = Color3.new(1, 1, 1) - gameMainMenuTitle.ZIndex = baseZIndex + 4 - gameMainMenuTitle.Parent = gameMainMenuFrame + local gameMainMenuFrame = New("Frame", "GameMainMenu", { + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + ZIndex = baseZIndex + 4, + Parent = settingsFrame, + New("TextLabel", "Title", { + Text = "Game Menu", + BackgroundTransparency = 1, + TextStrokeTransparency = 0, + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + Size = UDim2.new(1, 0, 0, 36), + Position = UDim2.new(0, 0, 0, 4), + TextColor3 = Color3.new(1, 1, 1), + ZIndex = baseZIndex + 4 + }) + }) local robloxHelpButton = createTextButton("Help", Enum.ButtonStyle.RobloxButton, Enum.FontSize.Size18, UDim2.new(0, 164, 0, 50), UDim2.new(0, 82, 0, 256)) robloxHelpButton.Name = "HelpButton" robloxHelpButton.ZIndex = baseZIndex + 4 @@ -472,47 +494,51 @@ createGameMainMenu = function(baseZIndex, shield) end) end) helpButton.Active = true - local helpShortcut = Instance.new("TextLabel") - helpShortcut.Name = "HelpShortcutText" - helpShortcut.Text = "F1" - helpShortcut.Visible = false - helpShortcut.BackgroundTransparency = 1 - helpShortcut.Font = Enum.Font.Arial - helpShortcut.FontSize = Enum.FontSize.Size12 - helpShortcut.Position = UDim2.new(0, 85, 0, 0) - helpShortcut.Size = UDim2.new(0, 30, 0, 30) - helpShortcut.TextColor3 = Color3.new(0, 1, 0) - helpShortcut.ZIndex = baseZIndex + 4 - helpShortcut.Parent = robloxHelpButton + local helpShortcut = New("TextLabel", "HelpShortcutText", { + Text = "F1", + Visible = false, + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size12, + Position = UDim2.new(0, 85, 0, 0), + Size = UDim2.new(0, 30, 0, 30), + TextColor3 = Color3.new(0, 1, 0), + ZIndex = baseZIndex + 4, + Parent = robloxHelpButton + }) local screenshotButton = createTextButton("Screenshot", Enum.ButtonStyle.RobloxButton, Enum.FontSize.Size18, UDim2.new(0, 168, 0, 50), UDim2.new(0, 254, 0, 256)) screenshotButton.Name = "ScreenshotButton" screenshotButton.ZIndex = baseZIndex + 4 screenshotButton.Parent = gameMainMenuFrame screenshotButton.Visible = not macClient screenshotButton:SetVerb("Screenshot") - local screenshotShortcut = helpShortcut:clone() - screenshotShortcut.Name = "ScreenshotShortcutText" - screenshotShortcut.Text = "PrintSc" - screenshotShortcut.Position = UDim2.new(0, 118, 0, 0) - screenshotShortcut.Visible = true - screenshotShortcut.Parent = screenshotButton + do + local _with_0 = helpShortcut:clone() + _with_0.Name = "ScreenshotShortcutText" + _with_0.Text = "PrintSc" + _with_0.Position = UDim2.new(0, 118, 0, 0) + _with_0.Visible = true + _with_0.Parent = screenshotButton + end local recordVideoButton = createTextButton("Record Video", Enum.ButtonStyle.RobloxButton, Enum.FontSize.Size18, UDim2.new(0, 168, 0, 50), UDim2.new(0, 254, 0, 306)) recordVideoButton.Name = "RecordVideoButton" recordVideoButton.ZIndex = baseZIndex + 4 recordVideoButton.Parent = gameMainMenuFrame recordVideoButton.Visible = not macClient recordVideoButton:SetVerb("RecordToggle") - local recordVideoShortcut = helpShortcut:clone() - recordVideoShortcut.Visible = hasGraphicsSlider - recordVideoShortcut.Name = "RecordVideoShortcutText" - recordVideoShortcut.Text = "F12" - recordVideoShortcut.Position = UDim2.new(0, 120, 0, 0) - recordVideoShortcut.Parent = recordVideoButton - local stopRecordButton = Instance.new("ImageButton") - stopRecordButton.Name = "StopRecordButton" - stopRecordButton.BackgroundTransparency = 1 - stopRecordButton.Image = "rbxasset://textures/ui/RecordStop.png" - stopRecordButton.Size = UDim2.new(0, 59, 0, 27) + do + local _with_0 = helpShortcut:clone() + _with_0.Visible = hasGraphicsSlider + _with_0.Name = "RecordVideoShortcutText" + _with_0.Text = "F12" + _with_0.Position = UDim2.new(0, 120, 0, 0) + _with_0.Parent = recordVideoButton + end + local stopRecordButton = New("ImageButton", "StopRecordButton", { + BackgroundTransparency = 1, + Image = "rbxasset://textures/ui/RecordStop.png", + Size = UDim2.new(0, 59, 0, 27) + }) stopRecordButton:SetVerb("RecordToggle") stopRecordButton.MouseButton1Click:connect(function() return recordVideoClick(recordVideoButton, stopRecordButton) @@ -561,57 +587,55 @@ createGameMainMenu = function(baseZIndex, shield) end local createGameSettingsMenu createGameSettingsMenu = function(baseZIndex, _) - local gameSettingsMenuFrame = Instance.new("Frame") - gameSettingsMenuFrame.Name = "GameSettingsMenu" - gameSettingsMenuFrame.BackgroundTransparency = 1 - gameSettingsMenuFrame.Size = UDim2.new(1, 0, 1, 0) - gameSettingsMenuFrame.ZIndex = baseZIndex + 4 - local title = Instance.new("TextLabel") - title.Name = "Title" - title.Text = "Settings" - title.Size = UDim2.new(1, 0, 0, 48) - title.Position = UDim2.new(0, 9, 0, -9) - title.Font = Enum.Font.ArialBold - title.FontSize = Enum.FontSize.Size36 - title.TextColor3 = Color3.new(1, 1, 1) - title.ZIndex = baseZIndex + 4 - title.BackgroundTransparency = 1 - title.Parent = gameSettingsMenuFrame - local fullscreenText = Instance.new("TextLabel") - fullscreenText.Name = "FullscreenText" - fullscreenText.Text = "Fullscreen Mode" - fullscreenText.Size = UDim2.new(0, 124, 0, 18) - fullscreenText.Position = UDim2.new(0, 62, 0, 145) - fullscreenText.Font = Enum.Font.Arial - fullscreenText.FontSize = Enum.FontSize.Size18 - fullscreenText.TextColor3 = Color3.new(1, 1, 1) - fullscreenText.ZIndex = baseZIndex + 4 - fullscreenText.BackgroundTransparency = 1 - fullscreenText.Parent = gameSettingsMenuFrame - local fullscreenShortcut = Instance.new("TextLabel") - fullscreenShortcut.Visible = hasGraphicsSlider - fullscreenShortcut.Name = "FullscreenShortcutText" - fullscreenShortcut.Text = "F11" - fullscreenShortcut.BackgroundTransparency = 1 - fullscreenShortcut.Font = Enum.Font.Arial - fullscreenShortcut.FontSize = Enum.FontSize.Size12 - fullscreenShortcut.Position = UDim2.new(0, 186, 0, 141) - fullscreenShortcut.Size = UDim2.new(0, 30, 0, 30) - fullscreenShortcut.TextColor3 = Color3.new(0, 1, 0) - fullscreenShortcut.ZIndex = baseZIndex + 4 - fullscreenShortcut.Parent = gameSettingsMenuFrame - local studioText = Instance.new("TextLabel") - studioText.Visible = false - studioText.Name = "StudioText" - studioText.Text = "Studio Mode" - studioText.Size = UDim2.new(0, 95, 0, 18) - studioText.Position = UDim2.new(0, 62, 0, 179) - studioText.Font = Enum.Font.Arial - studioText.FontSize = Enum.FontSize.Size18 - studioText.TextColor3 = Color3.new(1, 1, 1) - studioText.ZIndex = baseZIndex + 4 - studioText.BackgroundTransparency = 1 - studioText.Parent = gameSettingsMenuFrame + local gameSettingsMenuFrame = New("Frame", "GameSettingsMenu", { + BackgroundTransparency = 1, + Size = UDim2.new(1, 0, 1, 0), + ZIndex = baseZIndex + 4, + New("TextLabel", "Title", { + Text = "Settings", + Size = UDim2.new(1, 0, 0, 48), + Position = UDim2.new(0, 9, 0, -9), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + TextColor3 = Color3.new(1, 1, 1), + ZIndex = baseZIndex + 4, + BackgroundTransparency = 1 + }), + New("TextLabel", "FullscreenText", { + Text = "Fullscreen Mode", + Size = UDim2.new(0, 124, 0, 18), + Position = UDim2.new(0, 62, 0, 145), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + ZIndex = baseZIndex + 4, + BackgroundTransparency = 1 + }) + }) + local fullscreenShortcut = New("TextLabel", "FullscreenShortcutText", { + Visible = hasGraphicsSlider, + Text = "F11", + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size12, + Position = UDim2.new(0, 186, 0, 141), + Size = UDim2.new(0, 30, 0, 30), + TextColor3 = Color3.new(0, 1, 0), + ZIndex = baseZIndex + 4, + Parent = gameSettingsMenuFrame + }) + local studioText = New("TextLabel", "StudioText", { + Visible = false, + Text = "Studio Mode", + Size = UDim2.new(0, 95, 0, 18), + Position = UDim2.new(0, 62, 0, 179), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + ZIndex = baseZIndex + 4, + BackgroundTransparency = 1, + Parent = gameSettingsMenuFrame + }) local studioShortcut = fullscreenShortcut:clone() studioShortcut.Name = "StudioShortcutText" studioShortcut.Visible = false @@ -620,18 +644,18 @@ createGameSettingsMenu = function(baseZIndex, _) studioShortcut.Parent = gameSettingsMenuFrame local studioCheckbox if hasGraphicsSlider then - local qualityText = Instance.new("TextLabel") - qualityText.Name = "QualityText" - qualityText.Text = "Graphics Quality" - qualityText.Size = UDim2.new(0, 128, 0, 18) - qualityText.Position = UDim2.new(0, 30, 0, 239) - qualityText.Font = Enum.Font.Arial - qualityText.FontSize = Enum.FontSize.Size18 - qualityText.TextColor3 = Color3.new(1, 1, 1) - qualityText.ZIndex = baseZIndex + 4 - qualityText.BackgroundTransparency = 1 - qualityText.Parent = gameSettingsMenuFrame - qualityText.Visible = not inStudioMode + local qualityText = New("TextLabel", "QualityText", { + Text = "Graphics Quality", + Size = UDim2.new(0, 128, 0, 18), + Position = UDim2.new(0, 30, 0, 239), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextColor3 = Color3.new(1, 1, 1), + ZIndex = baseZIndex + 4, + BackgroundTransparency = 1, + Parent = gameSettingsMenuFrame, + Visible = not inStudioMode + }) local autoText = qualityText:clone() autoText.Name = "AutoText" autoText.Text = "Auto" @@ -681,20 +705,20 @@ createGameSettingsMenu = function(baseZIndex, _) graphicsSlider.Bar.Slider.ZIndex = baseZIndex + 5 graphicsSlider.Visible = not inStudioMode graphicsLevel.Value = math.floor((settings().Rendering:GetMaxQualityLevel() - 1) / 2) - local graphicsSetter = Instance.new("TextBox") - graphicsSetter.Name = "GraphicsSetter" - graphicsSetter.BackgroundColor3 = Color3.new(0, 0, 0) - graphicsSetter.BorderColor3 = Color3.new(128 / 255, 128 / 255, 128 / 255) - graphicsSetter.Size = UDim2.new(0, 50, 0, 25) - graphicsSetter.Position = UDim2.new(0, 450, 0, 269) - graphicsSetter.TextColor3 = Color3.new(1, 1, 1) - graphicsSetter.Font = Enum.Font.Arial - graphicsSetter.FontSize = Enum.FontSize.Size18 - graphicsSetter.Text = "Auto" - graphicsSetter.ZIndex = 1 - graphicsSetter.TextWrap = true - graphicsSetter.Parent = gameSettingsMenuFrame - graphicsSetter.Visible = not inStudioMode + local graphicsSetter = New("TextBox", "GraphicsSetter", { + BackgroundColor3 = Color3.new(0, 0, 0), + BorderColor3 = Color3.new(128 / 255, 128 / 255, 128 / 255), + Size = UDim2.new(0, 50, 0, 25), + Position = UDim2.new(0, 450, 0, 269), + TextColor3 = Color3.new(1, 1, 1), + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Text = "Auto", + ZIndex = 1, + TextWrap = true, + Parent = gameSettingsMenuFrame, + Visible = not inStudioMode + }) local isAutoGraphics = true if not inStudioMode then isAutoGraphics = (UserSettings().GameSettings.SavedQualityLevel == Enum.SavedQualitySetting.Automatic) @@ -1009,18 +1033,18 @@ createGameSettingsMenu = function(baseZIndex, _) backButton.Parent = gameSettingsMenuFrame syncVideoCaptureSetting = nil if not macClient then - local videoCaptureLabel = Instance.new("TextLabel") - videoCaptureLabel.Name = "VideoCaptureLabel" - videoCaptureLabel.Text = "After Capturing Video" - videoCaptureLabel.Font = Enum.Font.Arial - videoCaptureLabel.FontSize = Enum.FontSize.Size18 - videoCaptureLabel.Position = UDim2.new(0, 32, 0, 100) - videoCaptureLabel.Size = UDim2.new(0, 164, 0, 18) - videoCaptureLabel.BackgroundTransparency = 1 - videoCaptureLabel.TextColor3 = Color3I(255, 255, 255) - videoCaptureLabel.TextXAlignment = Enum.TextXAlignment.Left - videoCaptureLabel.ZIndex = baseZIndex + 4 - videoCaptureLabel.Parent = gameSettingsMenuFrame + New("TextLabel", "VideoCaptureLabel", { + Text = "After Capturing Video", + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0, 32, 0, 100), + Size = UDim2.new(0, 164, 0, 18), + BackgroundTransparency = 1, + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + ZIndex = baseZIndex + 4, + Parent = gameSettingsMenuFrame + }) local videoNames = { } local videoNameToItem = { } videoNames[1] = "Just Save to Disk" @@ -1051,18 +1075,18 @@ createGameSettingsMenu = function(baseZIndex, _) end)()) end end - local cameraLabel = Instance.new("TextLabel") - cameraLabel.Name = "CameraLabel" - cameraLabel.Text = "Character & Camera Controls" - cameraLabel.Font = Enum.Font.Arial - cameraLabel.FontSize = Enum.FontSize.Size18 - cameraLabel.Position = UDim2.new(0, 31, 0, 58) - cameraLabel.Size = UDim2.new(0, 224, 0, 18) - cameraLabel.TextColor3 = Color3I(255, 255, 255) - cameraLabel.TextXAlignment = Enum.TextXAlignment.Left - cameraLabel.BackgroundTransparency = 1 - cameraLabel.ZIndex = baseZIndex + 4 - cameraLabel.Parent = gameSettingsMenuFrame + New("TextLabel", "CameraLabel", { + Text = "Character & Camera Controls", + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0, 31, 0, 58), + Size = UDim2.new(0, 224, 0, 18), + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + BackgroundTransparency = 1, + ZIndex = baseZIndex + 4, + Parent = gameSettingsMenuFrame + }) local mouseLockLabel = game.CoreGui.RobloxGui:FindFirstChild("MouseLockLabel", true) local enumItems = Enum.ControlMode:GetEnumItems() local enumNames = { } @@ -1100,41 +1124,41 @@ if LoadLibrary then waitForChild(gui, "BottomLeftControl") settingsButton = gui.BottomLeftControl:FindFirstChild("SettingsButton") if settingsButton == nil then - settingsButton = Instance.new("ImageButton") - settingsButton.Name = "SettingsButton" - settingsButton.Image = "rbxasset://textures/ui/SettingsButton.png" - settingsButton.BackgroundTransparency = 1 - settingsButton.Active = false - settingsButton.Size = UDim2.new(0, 54, 0, 46) - settingsButton.Position = UDim2.new(0, 2, 0, 50) - settingsButton.Parent = gui.BottomLeftControl + settingsButton = New("ImageButton", "SettingsButton", { + Image = "rbxasset://textures/ui/SettingsButton.png", + BackgroundTransparency = 1, + Active = false, + Size = UDim2.new(0, 54, 0, 46), + Position = UDim2.new(0, 2, 0, 50), + Parent = gui.BottomLeftControl + }) end - local shield = Instance.new("TextButton") - shield.Text = "" - shield.Name = "UserSettingsShield" - shield.Active = true - shield.AutoButtonColor = false - shield.Visible = false - shield.Size = UDim2.new(1, 0, 1, 0) - shield.BackgroundColor3 = Color3I(51, 51, 51) - shield.BorderColor3 = Color3I(27, 42, 53) - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 2 + local shield = New("TextButton", "UserSettingsShield", { + Text = "", + Active = true, + AutoButtonColor = false, + Visible = false, + Size = UDim2.new(1, 0, 1, 0), + BackgroundColor3 = Color3I(51, 51, 51), + BorderColor3 = Color3I(27, 42, 53), + BackgroundTransparency = 0.4, + ZIndex = baseZIndex + 2 + }) mainShield = shield - local frame = Instance.new("Frame") - frame.Name = "Settings" - frame.Position = UDim2.new(0.5, -262, -0.5, -200) - frame.Size = UDim2.new(0, 525, 0, 430) - frame.BackgroundTransparency = 1 - frame.Active = true - frame.Parent = shield - local settingsFrame = Instance.new("Frame") - settingsFrame.Name = "SettingsStyle" - settingsFrame.Size = UDim2.new(1, 0, 1, 0) - settingsFrame.Style = Enum.FrameStyle.RobloxRound - settingsFrame.Active = true - settingsFrame.ZIndex = baseZIndex + 3 - settingsFrame.Parent = frame + local frame = New("Frame", "Settings", { + Position = UDim2.new(0.5, -262, -0.5, -200), + Size = UDim2.new(0, 525, 0, 430), + BackgroundTransparency = 1, + Active = true, + Parent = shield + }) + local settingsFrame = New("Frame", "SettingsStyle", { + Size = UDim2.new(1, 0, 1, 0), + Style = Enum.FrameStyle.RobloxRound, + Active = true, + ZIndex = baseZIndex + 3, + Parent = frame + }) local gameMainMenu = createGameMainMenu(baseZIndex, shield) gameMainMenu.Parent = settingsFrame gameMainMenu.ScreenshotButton.MouseButton1Click:connect(function() @@ -1278,13 +1302,13 @@ pcall(function() mouseLockLabel.Visible = false end local leaveGameButton = gui.BottomLeftControl:FindFirstChild("Exit") - if leaveGameButton then + if leaveGameButton ~= nil then leaveGameButton:Remove() end local topLeft = gui:FindFirstChild("TopLeftControl") if topLeft then leaveGameButton = topLeft:FindFirstChild("Exit") - if leaveGameButton then + if leaveGameButton ~= nil then leaveGameButton:Remove() end return topLeft:Remove() @@ -1293,17 +1317,17 @@ pcall(function() end local createSaveDialogs createSaveDialogs = function() - local shield = Instance.new("TextButton") - shield.Text = "" - shield.AutoButtonColor = false - shield.Name = "SaveDialogShield" - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new(1, 0, 1, 0) - shield.BackgroundColor3 = Color3I(51, 51, 51) - shield.BorderColor3 = Color3I(27, 42, 53) - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 + local shield = New("TextButton", "SaveDialogShield", { + Text = "", + AutoButtonColor = false, + Active = true, + Visible = false, + Size = UDim2.new(1, 0, 1, 0), + BackgroundColor3 = Color3I(51, 51, 51), + BorderColor3 = Color3I(27, 42, 53), + BackgroundTransparency = 0.4, + ZIndex = baseZIndex + 1 + }) local clearAndResetDialog, save, saveLocal, dontSave, cancel local messageBoxButtons = { } messageBoxButtons[1] = { } @@ -1348,38 +1372,37 @@ pcall(function() local errorDialogMessageBox = RbxGui.CreateStyledMessageDialog("Upload Failed", "Sorry, we could not save your changes to Mercury.", "Error", errorBoxButtons) errorDialogMessageBox.Visible = false errorDialogMessageBox.Parent = shield - local spinnerDialog = Instance.new("Frame") - spinnerDialog.Name = "SpinnerDialog" - spinnerDialog.Style = Enum.FrameStyle.RobloxRound - spinnerDialog.Size = UDim2.new(0, 350, 0, 150) - spinnerDialog.Position = UDim2.new(0.5, -175, 0.5, -75) - spinnerDialog.Visible = false - spinnerDialog.Active = true - spinnerDialog.Parent = shield - local waitingLabel = Instance.new("TextLabel") - waitingLabel.Name = "WaitingLabel" - waitingLabel.Text = "Saving to Mercury..." - waitingLabel.Font = Enum.Font.ArialBold - waitingLabel.FontSize = Enum.FontSize.Size18 - waitingLabel.Position = UDim2.new(0.5, 25, 0.5, 0) - waitingLabel.TextColor3 = Color3.new(1, 1, 1) - waitingLabel.Parent = spinnerDialog - local spinnerFrame = Instance.new("Frame") - spinnerFrame.Name = "Spinner" - spinnerFrame.Size = UDim2.new(0, 80, 0, 80) - spinnerFrame.Position = UDim2.new(0.5, -150, 0.5, -40) - spinnerFrame.BackgroundTransparency = 1 - spinnerFrame.Parent = spinnerDialog + local spinnerDialog = New("Frame", "SpinnerDialog", { + Style = Enum.FrameStyle.RobloxRound, + Size = UDim2.new(0, 350, 0, 150), + Position = UDim2.new(0.5, -175, 0.5, -75), + Visible = false, + Active = true, + Parent = shield, + New("TextLabel", "WaitingLabel", { + Text = "Saving to Mercury...", + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.5, 25, 0.5, 0), + TextColor3 = Color3.new(1, 1, 1) + }) + }) + local spinnerFrame = New("Frame", "Spinner", { + Size = UDim2.new(0, 80, 0, 80), + Position = UDim2.new(0.5, -150, 0.5, -40), + BackgroundTransparency = 1, + Parent = spinnerDialog + }) local spinnerIcons = { } local spinnerNum = 1 while spinnerNum <= 8 do - local spinnerImage = Instance.new("ImageLabel") - spinnerImage.Name = "Spinner" .. spinnerNum - spinnerImage.Size = UDim2.new(0, 16, 0, 16) - spinnerImage.Position = UDim2.new(0.5 + 0.3 * math.cos(math.rad(45 * spinnerNum)), -8, 0.5 + 0.3 * math.sin(math.rad(45 * spinnerNum)), -8) - spinnerImage.BackgroundTransparency = 1 - spinnerImage.Image = "http://www.roblox.com/Asset?id=45880710" - spinnerImage.Parent = spinnerFrame + local spinnerImage = New("ImageLabel", "Spinner" .. tostring(spinnerNum), { + Size = UDim2.new(0, 16, 0, 16), + Position = UDim2.new(0.5 + 0.3 * math.cos(math.rad(45 * spinnerNum)), -8, 0.5 + 0.3 * math.sin(math.rad(45 * spinnerNum)), -8), + BackgroundTransparency = 1, + Image = "http://www.roblox.com/Asset?id=45880710", + Parent = spinnerFrame + }) spinnerIcons[spinnerNum] = spinnerImage spinnerNum = spinnerNum + 1 end @@ -1456,17 +1479,17 @@ pcall(function() waitForChild(gui.UserSettingsShield.Settings.SettingsStyle, "GameMainMenu") waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu, "ReportAbuseButton") reportAbuseButton = gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu.ReportAbuseButton - local shield = Instance.new("TextButton") - shield.Name = "ReportAbuseShield" - shield.Text = "" - shield.AutoButtonColor = false - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new(1, 0, 1, 0) - shield.BackgroundColor3 = Color3I(51, 51, 51) - shield.BorderColor3 = Color3I(27, 42, 53) - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 + local shield = New("TextButton", "ReportAbuseShield", { + Text = "", + AutoButtonColor = false, + Active = true, + Visible = false, + Size = UDim2.new(1, 0, 1, 0), + BackgroundColor3 = Color3I(51, 51, 51), + BorderColor3 = Color3I(27, 42, 53), + BackgroundTransparency = 0.4, + ZIndex = baseZIndex + 1 + }) local closeAndResetDialog local messageBoxButtons = { } messageBoxButtons[1] = { } @@ -1484,55 +1507,63 @@ pcall(function() local normalMessageBox = RbxGui.CreateMessageDialog("Thanks for your report!", "Our moderators will review the chat logs and determine what happened.", messageBoxButtons) normalMessageBox.Visible = false normalMessageBox.Parent = shield - local frame = Instance.new("Frame") - frame.Name = "Settings" - frame.Position = UDim2.new(0.5, -250, 0.5, -200) - frame.Size = UDim2.new(0, 500, 0, 400) - frame.BackgroundTransparency = 1 - frame.Active = true - frame.Parent = shield - local settingsFrame = Instance.new("Frame") - settingsFrame.Name = "ReportAbuseStyle" - settingsFrame.Size = UDim2.new(1, 0, 1, 0) - settingsFrame.Style = Enum.FrameStyle.RobloxRound - settingsFrame.Active = true - settingsFrame.ZIndex = baseZIndex + 1 - settingsFrame.Parent = frame - local title = Instance.new("TextLabel") - title.Name = "Title" - title.Text = "Report Abuse" - title.TextColor3 = Color3I(221, 221, 221) - title.Position = UDim2.new(0.5, 0, 0, 30) - title.Font = Enum.Font.ArialBold - title.FontSize = Enum.FontSize.Size36 - title.ZIndex = baseZIndex + 2 - title.Parent = settingsFrame - local description = Instance.new("TextLabel") - description.Name = "Description" - description.Text = "This will send a complete report to a moderator. The moderator will review the chat log and take appropriate action." - description.TextColor3 = Color3I(221, 221, 221) - description.Position = UDim2.new(0, 0, 0, 55) - description.Size = UDim2.new(1, 0, 0, 40) - description.BackgroundTransparency = 1 - description.Font = Enum.Font.Arial - description.FontSize = Enum.FontSize.Size18 - description.TextWrap = true - description.ZIndex = baseZIndex + 2 - description.TextXAlignment = Enum.TextXAlignment.Left - description.TextYAlignment = Enum.TextYAlignment.Top - description.Parent = settingsFrame - local playerLabel = Instance.new("TextLabel") - playerLabel.Name = "PlayerLabel" - playerLabel.Text = "Which player?" - playerLabel.BackgroundTransparency = 1 - playerLabel.Font = Enum.Font.Arial - playerLabel.FontSize = Enum.FontSize.Size18 - playerLabel.Position = UDim2.new(0.025, 0, 0, 100) - playerLabel.Size = UDim2.new(0.4, 0, 0, 36) - playerLabel.TextColor3 = Color3I(255, 255, 255) - playerLabel.TextXAlignment = Enum.TextXAlignment.Left - playerLabel.ZIndex = baseZIndex + 2 - playerLabel.Parent = settingsFrame + local frame = New("Frame", "Settings", { + Position = UDim2.new(0.5, -250, 0.5, -200), + Size = UDim2.new(0, 500, 0, 400), + BackgroundTransparency = 1, + Active = true, + Parent = shield + }) + local settingsFrame = New("Frame", "ReportAbuseStyle", { + Size = UDim2.new(1, 0, 1, 0), + Style = Enum.FrameStyle.RobloxRound, + Active = true, + ZIndex = baseZIndex + 1, + Parent = frame, + New("TextLabel", "Title", { + Text = "Report Abuse", + TextColor3 = Color3I(221, 221, 221), + Position = UDim2.new(0.5, 0, 0, 30), + Font = Enum.Font.ArialBold, + FontSize = Enum.FontSize.Size36, + ZIndex = baseZIndex + 2 + }), + New("TextLabel", "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), + Position = UDim2.new(0, 0, 0, 55), + Size = UDim2.new(1, 0, 0, 40), + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + TextWrap = true, + ZIndex = baseZIndex + 2, + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top + }), + New("TextLabel", "PlayerLabel", { + Text = "Which player?", + BackgroundTransparency = 1, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025, 0, 0, 100), + Size = UDim2.new(0.4, 0, 0, 36), + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + ZIndex = baseZIndex + 2 + }), + New("TextLabel", "AbuseLabel", { + Text = "Type of Abuse:", + Font = Enum.Font.Arial, + BackgroundTransparency = 1, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025, 0, 0, 140), + Size = UDim2.new(0.4, 0, 0, 36), + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + ZIndex = baseZIndex + 2 + }) + }) local abusingPlayer local abuse local submitReportButton @@ -1566,18 +1597,6 @@ pcall(function() playerDropDown.Size = UDim2.new(0.55, 0, 0, 32) return playerDropDown end - local abuseLabel = Instance.new("TextLabel") - abuseLabel.Name = "AbuseLabel" - abuseLabel.Text = "Type of Abuse:" - abuseLabel.Font = Enum.Font.Arial - abuseLabel.BackgroundTransparency = 1 - abuseLabel.FontSize = Enum.FontSize.Size18 - abuseLabel.Position = UDim2.new(0.025, 0, 0, 140) - abuseLabel.Size = UDim2.new(0.4, 0, 0, 36) - abuseLabel.TextColor3 = Color3I(255, 255, 255) - abuseLabel.TextXAlignment = Enum.TextXAlignment.Left - abuseLabel.ZIndex = baseZIndex + 2 - abuseLabel.Parent = settingsFrame local abuses = { "Swearing", "Bullying", @@ -1600,56 +1619,56 @@ pcall(function() abuseDropDown.Position = UDim2.new(0.425, 0, 0, 142) abuseDropDown.Size = UDim2.new(0.55, 0, 0, 32) abuseDropDown.Parent = settingsFrame - local shortDescriptionLabel = Instance.new("TextLabel") - shortDescriptionLabel.Name = "ShortDescriptionLabel" - shortDescriptionLabel.Text = "Short Description: (optional)" - shortDescriptionLabel.Font = Enum.Font.Arial - shortDescriptionLabel.FontSize = Enum.FontSize.Size18 - shortDescriptionLabel.Position = UDim2.new(0.025, 0, 0, 180) - shortDescriptionLabel.Size = UDim2.new(0.95, 0, 0, 36) - shortDescriptionLabel.TextColor3 = Color3I(255, 255, 255) - shortDescriptionLabel.TextXAlignment = Enum.TextXAlignment.Left - shortDescriptionLabel.BackgroundTransparency = 1 - shortDescriptionLabel.ZIndex = baseZIndex + 2 - shortDescriptionLabel.Parent = settingsFrame - local shortDescriptionWrapper = Instance.new("Frame") - shortDescriptionWrapper.Name = "ShortDescriptionWrapper" - shortDescriptionWrapper.Position = UDim2.new(0.025, 0, 0, 220) - shortDescriptionWrapper.Size = UDim2.new(0.95, 0, 1, -310) - shortDescriptionWrapper.BackgroundColor3 = Color3I(0, 0, 0) - shortDescriptionWrapper.BorderSizePixel = 0 - shortDescriptionWrapper.ZIndex = baseZIndex + 2 - shortDescriptionWrapper.Parent = settingsFrame - local shortDescriptionBox = Instance.new("TextBox") - shortDescriptionBox.Name = "TextBox" - shortDescriptionBox.Text = "" - shortDescriptionBox.ClearTextOnFocus = false - shortDescriptionBox.Font = Enum.Font.Arial - shortDescriptionBox.FontSize = Enum.FontSize.Size18 - shortDescriptionBox.Position = UDim2.new(0, 3, 0, 3) - shortDescriptionBox.Size = UDim2.new(1, -6, 1, -6) - shortDescriptionBox.TextColor3 = Color3I(255, 255, 255) - shortDescriptionBox.TextXAlignment = Enum.TextXAlignment.Left - shortDescriptionBox.TextYAlignment = Enum.TextYAlignment.Top - shortDescriptionBox.TextWrap = true - shortDescriptionBox.BackgroundColor3 = Color3I(0, 0, 0) - shortDescriptionBox.BorderSizePixel = 0 - shortDescriptionBox.ZIndex = baseZIndex + 2 - shortDescriptionBox.Parent = shortDescriptionWrapper - submitReportButton = Instance.new("TextButton") - submitReportButton.Name = "SubmitReportBtn" - submitReportButton.Active = false - submitReportButton.Modal = true - submitReportButton.Font = Enum.Font.Arial - submitReportButton.FontSize = Enum.FontSize.Size18 - submitReportButton.Position = UDim2.new(0.1, 0, 1, -80) - submitReportButton.Size = UDim2.new(0.35, 0, 0, 50) - submitReportButton.AutoButtonColor = true - submitReportButton.Style = Enum.ButtonStyle.RobloxButtonDefault - submitReportButton.Text = "Submit Report" - submitReportButton.TextColor3 = Color3I(255, 255, 255) - submitReportButton.ZIndex = baseZIndex + 2 - submitReportButton.Parent = settingsFrame + New("TextLabel", "ShortDescriptionLabel", { + Text = "Short Description: (optional)", + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.025, 0, 0, 180), + Size = UDim2.new(0.95, 0, 0, 36), + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + BackgroundTransparency = 1, + ZIndex = baseZIndex + 2, + Parent = settingsFrame + }) + local shortDescriptionWrapper = New("Frame", "ShortDescriptionWrapper", { + Position = UDim2.new(0.025, 0, 0, 220), + Size = UDim2.new(0.95, 0, 1, -310), + BackgroundColor3 = Color3I(0, 0, 0), + BorderSizePixel = 0, + ZIndex = baseZIndex + 2, + Parent = settingsFrame + }) + local shortDescriptionBox = New("TextBox", "TextBox", { + Text = "", + ClearTextOnFocus = false, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0, 3, 0, 3), + Size = UDim2.new(1, -6, 1, -6), + TextColor3 = Color3I(255, 255, 255), + TextXAlignment = Enum.TextXAlignment.Left, + TextYAlignment = Enum.TextYAlignment.Top, + TextWrap = true, + BackgroundColor3 = Color3I(0, 0, 0), + BorderSizePixel = 0, + ZIndex = baseZIndex + 2, + Parent = shortDescriptionWrapper + }) + submitReportButton = New("TextButton", "SubmitReportBtn", { + Active = false, + Modal = true, + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.1, 0, 1, -80), + Size = UDim2.new(0.35, 0, 0, 50), + AutoButtonColor = true, + Style = Enum.ButtonStyle.RobloxButtonDefault, + Text = "Submit Report", + TextColor3 = Color3I(255, 255, 255), + ZIndex = baseZIndex + 2, + Parent = settingsFrame + }) submitReportButton.MouseButton1Click:connect(function() if submitReportButton.Active then if abuse and abusingPlayer then @@ -1667,18 +1686,18 @@ pcall(function() end end end) - local cancelButton = Instance.new("TextButton") - cancelButton.Name = "CancelBtn" - cancelButton.Font = Enum.Font.Arial - cancelButton.FontSize = Enum.FontSize.Size18 - cancelButton.Position = UDim2.new(0.55, 0, 1, -80) - cancelButton.Size = UDim2.new(0.35, 0, 0, 50) - cancelButton.AutoButtonColor = true - cancelButton.Style = Enum.ButtonStyle.RobloxButtonDefault - cancelButton.Text = "Cancel" - cancelButton.TextColor3 = Color3I(255, 255, 255) - cancelButton.ZIndex = baseZIndex + 2 - cancelButton.Parent = settingsFrame + local cancelButton = New("TextButton", "CancelBtn", { + Font = Enum.Font.Arial, + FontSize = Enum.FontSize.Size18, + Position = UDim2.new(0.55, 0, 1, -80), + Size = UDim2.new(0.35, 0, 0, 50), + AutoButtonColor = true, + Style = Enum.ButtonStyle.RobloxButtonDefault, + Text = "Cancel", + TextColor3 = Color3I(255, 255, 255), + ZIndex = baseZIndex + 2, + Parent = settingsFrame + }) closeAndResetDialog = function() local oldComboBox = settingsFrame:FindFirstChild("PlayersComboBox") if oldComboBox then diff --git a/yue/45284430.yue b/yue/45284430.yue index 88f2eec..f64c3f0 100644 --- a/yue/45284430.yue +++ b/yue/45284430.yue @@ -1836,7 +1836,7 @@ binaryShrink = (min, max, fits) -> getGuiOwner = (instance) -> - while instance ~= nil + while instance? if instance\IsA"ScreenGui" or instance\IsA "BillboardGui" return instance @@ -2152,7 +2152,7 @@ CreateBasicTutorialPage = (name, handleResize, skipTutorial, giveDoneButton) -> frame.Changed\connect (prop) -> if prop == "Parent" - if parentConnection ~= nil + if parentConnection? parentConnection\disconnect! parentConnection = nil @@ -2837,7 +2837,7 @@ t.CreateSetPanel = (userIdsForSets, objectSelected, dialogClosed, size, position selectSet = (button, setName, setId, _) -> - if button and Data.Category[Data.CurrentCategory] ~= nil + if button and Data.Category[Data.CurrentCategory]? if button ~= Data.Category[Data.CurrentCategory].Button Data.Category[Data.CurrentCategory].Button = button diff --git a/yue/46295863.yue b/yue/46295863.yue index f359c7b..357f6d8 100644 --- a/yue/46295863.yue +++ b/yue/46295863.yue @@ -1,6 +1,30 @@ import "macros" as { $ } $load $FILE +-- Heliodex's basic New function (basically a simplified version of melt) +New = (className, name, props) -> + if not props? -- no name was provided + props = name + name = nil + + obj = Instance.new className + obj.Name = name if name + local parent + + for k, v in pairs props + if type(k) == "string" then + if k == "Parent" + parent = v + else + obj[k] = v + + elseif type(k) == "number" and type(v) == "userdata" + v.Parent = obj + + obj.Parent = parent + obj +-- + waitForChild = (instance, name) -> until instance\FindFirstChild name instance.ChildAdded\wait! @@ -195,8 +219,7 @@ CreateTextButtons = (frame, buttons, yPos, ySize) -> for _, obj in ipairs buttons - button = Instance.new "TextButton" - button.Name = "Button" .. buttonNum + button = New "TextButton", "Button" .. buttonNum button.Font = Enum.Font.Arial button.FontSize = Enum.FontSize.Size18 button.AutoButtonColor = true @@ -281,73 +304,67 @@ setDisabledState = (guiObject) -> createHelpDialog = (baseZIndex) -> if helpButton == nil - helpButton= if gui\FindFirstChild "TopLeftControl" and gui.TopLeftControl\FindFirstChild "Help" + helpButton = if gui\FindFirstChild "TopLeftControl" and gui.TopLeftControl\FindFirstChild "Help" gui.TopLeftControl.Help elseif gui\FindFirstChild "BottomRightControl" and gui.BottomRightControl\FindFirstChild "Help" gui.BottomRightControl.Help - shield = Instance.new "Frame" - shield.Name = "HelpDialogShield" - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new 1, 0, 1, 0 - shield.BackgroundColor3 = Color3I 51, 51, 51 - shield.BorderColor3 = Color3I 27, 42, 53 - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 + shield = New "Frame", "HelpDialogShield" + Active: true + Visible: false + Size: UDim2.new 1, 0, 1, 0 + BackgroundColor3: Color3I 51, 51, 51 + BorderColor3: Color3I 27, 42, 53 + BackgroundTransparency: 0.4 + ZIndex: baseZIndex + 1 - helpDialog = Instance.new "Frame" - helpDialog.Name = "HelpDialog" - helpDialog.Style = Enum.FrameStyle.RobloxRound - helpDialog.Position = UDim2.new 0.2, 0, 0.2, 0 - helpDialog.Size = UDim2.new 0.6, 0, 0.6, 0 - helpDialog.Active = true - helpDialog.Parent = shield + helpDialog = New "Frame", "HelpDialog" + Style: Enum.FrameStyle.RobloxRound + Position: UDim2.new 0.2, 0, 0.2, 0 + Size: UDim2.new 0.6, 0, 0.6, 0 + Active: true + Parent: shield - titleLabel = Instance.new "TextLabel" - titleLabel.Name = "Title" - titleLabel.Text = "Keyboard & Mouse Controls" - titleLabel.Font = Enum.Font.ArialBold - titleLabel.FontSize = Enum.FontSize.Size36 - titleLabel.Position = UDim2.new 0, 0, 0.025, 0 - titleLabel.Size = UDim2.new 1, 0, 0, 40 - titleLabel.TextColor3 = Color3.new 1, 1, 1 - titleLabel.BackgroundTransparency = 1 - titleLabel.Parent = helpDialog + * New "TextLabel", "Title" + Text: "Keyboard & Mouse Controls" + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + Position: UDim2.new 0, 0, 0.025, 0 + Size: UDim2.new 1, 0, 0, 40 + TextColor3: Color3.new 1, 1, 1 + BackgroundTransparency: 1 - buttonRow = Instance.new "Frame" - buttonRow.Name = "Buttons" - buttonRow.Position = UDim2.new 0.1, 0, 0.07, 40 - buttonRow.Size = UDim2.new 0.8, 0, 0, 45 - buttonRow.BackgroundTransparency = 1 - buttonRow.Parent = helpDialog + * New "Frame", "Buttons" + Position: UDim2.new 0.1, 0, 0.07, 40 + Size: UDim2.new 0.8, 0, 0, 45 + BackgroundTransparency: 1 - imageFrame = Instance.new "Frame" - imageFrame.Name = "ImageFrame" - imageFrame.Position = UDim2.new 0.05, 0, 0.075, 80 - imageFrame.Size = UDim2.new 0.9, 0, 0.9, -120 - imageFrame.BackgroundTransparency = 1 - imageFrame.Parent = helpDialog + * New "Frame", "ImageFrame" + Position: UDim2.new 0.05, 0, 0.075, 80 + Size: UDim2.new 0.9, 0, 0.9, -120 + BackgroundTransparency: 1 - layoutFrame = Instance.new "Frame" - layoutFrame.Name = "LayoutFrame" - layoutFrame.Position = UDim2.new 0.5, 0, 0, 0 - layoutFrame.Size = UDim2.new 1.5, 0, 1, 0 - layoutFrame.BackgroundTransparency = 1 - layoutFrame.SizeConstraint = Enum.SizeConstraint.RelativeYY - layoutFrame.Parent = imageFrame + * New "Frame", "LayoutFrame" + Position: UDim2.new 0.5, 0, 0, 0 + Size: UDim2.new 1.5, 0, 1, 0 + BackgroundTransparency: 1 + SizeConstraint: Enum.SizeConstraint.RelativeYY - image = Instance.new "ImageLabel" - image.Name = "Image" - image.Image = if UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] - mouseLockLookScreenUrl - else - classicLookScreenUrl + * New "ImageLabel", "Image" + Image: if UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] + mouseLockLookScreenUrl + else + classicLookScreenUrl + Position: UDim2.new -0.5, 0, 0, 0 + Size: UDim2.new 1, 0, 1, 0 + BackgroundTransparency: 1 + + { + Buttons: buttonRow + LayoutFrame: + Image: image + } = helpDialog - image.Position = UDim2.new -0.5, 0, 0, 0 - image.Size = UDim2.new 1, 0, 1, 0 - image.BackgroundTransparency = 1 - image.Parent = layoutFrame buttons = {} buttons[1] = {} @@ -358,7 +375,6 @@ createHelpDialog = (baseZIndex) -> else classicLookScreenUrl - buttons[2] = {} buttons[2].Text = "Move" buttons[2].Function = -> @@ -375,16 +391,16 @@ createHelpDialog = (baseZIndex) -> image.Image = "http://www.roblox.com/Asset?id=45915825" - CreateTextButtons(buttonRow, buttons, UDim.new(0, 0), UDim.new(1, 0)) + CreateTextButtons buttonRow, buttons, UDim.new(0, 0), UDim.new 1, 0 -- set up listeners for type of mouse mode, but keep constructing gui at same time delay 0, -> - waitForChild(gui, "UserSettingsShield") - waitForChild(gui.UserSettingsShield, "Settings") - waitForChild(gui.UserSettingsShield.Settings, "SettingsStyle") - waitForChild(gui.UserSettingsShield.Settings.SettingsStyle, "GameSettingsMenu") - waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu, "CameraField") - waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField, "DropDownMenuButton") + waitForChild gui, "UserSettingsShield" + waitForChild gui.UserSettingsShield, "Settings" + waitForChild gui.UserSettingsShield.Settings, "SettingsStyle" + waitForChild gui.UserSettingsShield.Settings.SettingsStyle, "GameSettingsMenu" + waitForChild gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu, "CameraField" + waitForChild gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField, "DropDownMenuButton" gui.UserSettingsShield.Settings.SettingsStyle.GameSettingsMenu.CameraField.DropDownMenuButton.Changed \connect (prop) -> return if prop ~= "Text" @@ -398,34 +414,42 @@ createHelpDialog = (baseZIndex) -> mouseLockLookScreenUrl - okBtn = Instance.new "TextButton" - okBtn.Name = "OkBtn" - okBtn.Text = "OK" - okBtn.Modal = true - okBtn.Size = UDim2.new 0.3, 0, 0, 45 - okBtn.Position = UDim2.new 0.35, 0, 0.975, -50 - okBtn.Font = Enum.Font.Arial - okBtn.FontSize = Enum.FontSize.Size18 - okBtn.BackgroundTransparency = 1 - okBtn.TextColor3 = Color3.new 1, 1, 1 - okBtn.Style = Enum.ButtonStyle.RobloxButtonDefault + okBtn = New "TextButton", "OkBtn" + Text: "OK" + Modal: true + Size: UDim2.new 0.3, 0, 0, 45 + Position: UDim2.new 0.35, 0, 0.975, -50 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + BackgroundTransparency: 1 + TextColor3: Color3.new 1, 1, 1 + Style: Enum.ButtonStyle.RobloxButtonDefault + Parent: helpDialog + okBtn.MouseButton1Click\connect -> shield.Visible = false game.GuiService\RemoveCenterDialog shield - okBtn.Parent = helpDialog - robloxLock shield shield createLeaveConfirmationMenu = (baseZIndex, shield) -> - frame = Instance.new "Frame" - frame.Name = "LeaveConfirmationMenu" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new 1, 0, 1, 0 - frame.Position = UDim2.new 0, 0, 2, 400 - frame.ZIndex = baseZIndex + 4 + frame = New "Frame", "LeaveConfirmationMenu" + BackgroundTransparency: 1 + Size: UDim2.new 1, 0, 1, 0 + Position: UDim2.new 0, 0, 2, 400 + ZIndex: baseZIndex + 4 + + * New "TextLabel", "LeaveText" + Text: "Leave this game?" + Size: UDim2.new 1, 0, 0.8, 0 + TextWrap: true + TextColor3: Color3.new 1, 1, 1 + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + BackgroundTransparency: 1 + ZIndex: baseZIndex + 4 yesButton = createTextButton( "Leave", @@ -451,7 +475,7 @@ createLeaveConfirmationMenu = (baseZIndex, shield) -> noButton.Parent = frame noButton.ZIndex = baseZIndex + 4 noButton.MouseButton1Click\connect -> - goToMenu(shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new(0, 525, 0, 430)) + goToMenu shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new 0, 525, 0, 430 shield.Settings\TweenSize( UDim2.new(0, 525, 0, 430), Enum.EasingDirection.InOut, @@ -460,27 +484,14 @@ createLeaveConfirmationMenu = (baseZIndex, shield) -> true ) - leaveText = Instance.new "TextLabel" - leaveText.Name = "LeaveText" - leaveText.Text = "Leave this game?" - leaveText.Size = UDim2.new 1, 0, 0.8, 0 - leaveText.TextWrap = true - leaveText.TextColor3 = Color3.new 1, 1, 1 - leaveText.Font = Enum.Font.ArialBold - leaveText.FontSize = Enum.FontSize.Size36 - leaveText.BackgroundTransparency = 1 - leaveText.ZIndex = baseZIndex + 4 - leaveText.Parent = frame - frame createResetConfirmationMenu = (baseZIndex, shield) -> - frame = Instance.new "Frame" - frame.Name = "ResetConfirmationMenu" - frame.BackgroundTransparency = 1 - frame.Size = UDim2.new 1, 0, 1, 0 - frame.Position = UDim2.new 0, 0, 2, 400 - frame.ZIndex = baseZIndex + 4 + frame = New "Frame", "ResetConfirmationMenu" + BackgroundTransparency: 1 + Size: UDim2.new 1, 0, 1, 0 + Position: UDim2.new 0, 0, 2, 400 + ZIndex: baseZIndex + 4 yesButton = createTextButton( "Reset", @@ -509,7 +520,7 @@ createResetConfirmationMenu = (baseZIndex, shield) -> noButton.Parent = frame noButton.ZIndex = baseZIndex + 4 noButton.MouseButton1Click\connect -> - goToMenu(shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new(0, 525, 0, 430)) + goToMenu shield.Settings.SettingsStyle, "GameMainMenu", "down", UDim2.new 0, 525, 0, 430 shield.Settings\TweenSize( UDim2.new(0, 525, 0, 430), Enum.EasingDirection.InOut, @@ -519,51 +530,45 @@ createResetConfirmationMenu = (baseZIndex, shield) -> ) - resetCharacterText = Instance.new "TextLabel" - resetCharacterText.Name = "ResetCharacterText" - resetCharacterText.Text = "Are you sure you want to reset your character?" - resetCharacterText.Size = UDim2.new 1, 0, 0.8, 0 - resetCharacterText.TextWrap = true - resetCharacterText.TextColor3 = Color3.new 1, 1, 1 - resetCharacterText.Font = Enum.Font.ArialBold - resetCharacterText.FontSize = Enum.FontSize.Size36 - resetCharacterText.BackgroundTransparency = 1 - resetCharacterText.ZIndex = baseZIndex + 4 - resetCharacterText.Parent = frame + resetCharacterText = New "TextLabel", "ResetCharacterText" + Text: "Are you sure you want to reset your character?" + Size: UDim2.new 1, 0, 0.8, 0 + TextWrap: true + TextColor3: Color3.new 1, 1, 1 + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + BackgroundTransparency: 1 + ZIndex: baseZIndex + 4 + Parent: frame - fineResetCharacterText = resetCharacterText\Clone! - fineResetCharacterText.Name = "FineResetCharacterText" - fineResetCharacterText.Text = "You will be put back on a spawn point" - fineResetCharacterText.Size = UDim2.new 0, 303, 0, 18 - fineResetCharacterText.Position = UDim2.new 0, 109, 0, 215 - fineResetCharacterText.FontSize = Enum.FontSize.Size18 - fineResetCharacterText.Parent = frame + with resetCharacterText\Clone! + .Name = "FineResetCharacterText" + .Text = "You will be put back on a spawn point" + .Size = UDim2.new 0, 303, 0, 18 + .Position = UDim2.new 0, 109, 0, 215 + .FontSize = Enum.FontSize.Size18 + .Parent = frame frame createGameMainMenu = (baseZIndex, shield) -> - gameMainMenuFrame = Instance.new "Frame" - gameMainMenuFrame.Name = "GameMainMenu" - gameMainMenuFrame.BackgroundTransparency = 1 - gameMainMenuFrame.Size = UDim2.new 1, 0, 1, 0 - gameMainMenuFrame.ZIndex = baseZIndex + 4 - gameMainMenuFrame.Parent = settingsFrame + gameMainMenuFrame = New "Frame", "GameMainMenu" + BackgroundTransparency: 1 + Size: UDim2.new 1, 0, 1, 0 + ZIndex: baseZIndex + 4 + Parent: settingsFrame - -- GameMainMenu Children - - gameMainMenuTitle = Instance.new "TextLabel" - gameMainMenuTitle.Name = "Title" - gameMainMenuTitle.Text = "Game Menu" - gameMainMenuTitle.BackgroundTransparency = 1 - gameMainMenuTitle.TextStrokeTransparency = 0 - gameMainMenuTitle.Font = Enum.Font.ArialBold - gameMainMenuTitle.FontSize = Enum.FontSize.Size36 - gameMainMenuTitle.Size = UDim2.new 1, 0, 0, 36 - gameMainMenuTitle.Position = UDim2.new 0, 0, 0, 4 - gameMainMenuTitle.TextColor3 = Color3.new 1, 1, 1 - gameMainMenuTitle.ZIndex = baseZIndex + 4 - gameMainMenuTitle.Parent = gameMainMenuFrame + * New "TextLabel", "Title" + Text: "Game Menu" + BackgroundTransparency: 1 + TextStrokeTransparency: 0 + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + Size: UDim2.new 1, 0, 0, 36 + Position: UDim2.new 0, 0, 0, 4 + TextColor3: Color3.new 1, 1, 1 + ZIndex: baseZIndex + 4 robloxHelpButton = createTextButton( "Help", @@ -577,11 +582,11 @@ createGameMainMenu = (baseZIndex, shield) -> robloxHelpButton.Parent = gameMainMenuFrame helpButton = robloxHelpButton - helpDialog = createHelpDialog(baseZIndex) + helpDialog = createHelpDialog baseZIndex helpDialog.Parent = gui helpButton.MouseButton1Click\connect -> - table.insert(centerDialogs, helpDialog) + table.insert centerDialogs, helpDialog game.GuiService\AddCenterDialog( helpDialog, Enum.CenterDialogType.ModalDialog, @@ -597,18 +602,17 @@ createGameMainMenu = (baseZIndex, shield) -> helpButton.Active = true - helpShortcut = Instance.new "TextLabel" - helpShortcut.Name = "HelpShortcutText" - helpShortcut.Text = "F1" - helpShortcut.Visible = false - helpShortcut.BackgroundTransparency = 1 - helpShortcut.Font = Enum.Font.Arial - helpShortcut.FontSize = Enum.FontSize.Size12 - helpShortcut.Position = UDim2.new 0, 85, 0, 0 - helpShortcut.Size = UDim2.new 0, 30, 0, 30 - helpShortcut.TextColor3 = Color3.new 0, 1, 0 - helpShortcut.ZIndex = baseZIndex + 4 - helpShortcut.Parent = robloxHelpButton + helpShortcut = New "TextLabel", "HelpShortcutText" + Text: "F1" + Visible: false + BackgroundTransparency: 1 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size12 + Position: UDim2.new 0, 85, 0, 0 + Size: UDim2.new 0, 30, 0, 30 + TextColor3: Color3.new 0, 1, 0 + ZIndex: baseZIndex + 4 + Parent: robloxHelpButton screenshotButton = createTextButton( "Screenshot", @@ -623,12 +627,12 @@ createGameMainMenu = (baseZIndex, shield) -> screenshotButton.Visible = not macClient screenshotButton\SetVerb "Screenshot" - screenshotShortcut = helpShortcut\clone! - screenshotShortcut.Name = "ScreenshotShortcutText" - screenshotShortcut.Text = "PrintSc" - screenshotShortcut.Position = UDim2.new 0, 118, 0, 0 - screenshotShortcut.Visible = true - screenshotShortcut.Parent = screenshotButton + with helpShortcut\clone! + .Name = "ScreenshotShortcutText" + .Text = "PrintSc" + .Position = UDim2.new 0, 118, 0, 0 + .Visible = true + .Parent = screenshotButton recordVideoButton = createTextButton( "Record Video", @@ -643,22 +647,21 @@ createGameMainMenu = (baseZIndex, shield) -> recordVideoButton.Visible = not macClient recordVideoButton\SetVerb "RecordToggle" - recordVideoShortcut = helpShortcut\clone! - recordVideoShortcut.Visible = hasGraphicsSlider - recordVideoShortcut.Name = "RecordVideoShortcutText" - recordVideoShortcut.Text = "F12" - recordVideoShortcut.Position = UDim2.new 0, 120, 0, 0 - recordVideoShortcut.Parent = recordVideoButton + with helpShortcut\clone! + .Visible = hasGraphicsSlider + .Name = "RecordVideoShortcutText" + .Text = "F12" + .Position = UDim2.new 0, 120, 0, 0 + .Parent = recordVideoButton - stopRecordButton = Instance.new "ImageButton" - stopRecordButton.Name = "StopRecordButton" - stopRecordButton.BackgroundTransparency = 1 - stopRecordButton.Image = "rbxasset://textures/ui/RecordStop.png" - stopRecordButton.Size = UDim2.new 0, 59, 0, 27 + stopRecordButton = New "ImageButton", "StopRecordButton" + BackgroundTransparency: 1 + Image: "rbxasset://textures/ui/RecordStop.png" + Size: UDim2.new 0, 59, 0, 27 stopRecordButton\SetVerb "RecordToggle" stopRecordButton.MouseButton1Click\connect -> - recordVideoClick(recordVideoButton, stopRecordButton) + recordVideoClick recordVideoButton, stopRecordButton stopRecordButton.Visible = false stopRecordButton.Parent = gui @@ -744,127 +747,125 @@ createGameMainMenu = (baseZIndex, shield) -> createGameSettingsMenu = (baseZIndex, _) -> - gameSettingsMenuFrame = Instance.new "Frame" - gameSettingsMenuFrame.Name = "GameSettingsMenu" - gameSettingsMenuFrame.BackgroundTransparency = 1 - gameSettingsMenuFrame.Size = UDim2.new 1, 0, 1, 0 - gameSettingsMenuFrame.ZIndex = baseZIndex + 4 + gameSettingsMenuFrame = New "Frame", "GameSettingsMenu" + BackgroundTransparency: 1 + Size: UDim2.new 1, 0, 1, 0 + ZIndex: baseZIndex + 4 - title = Instance.new "TextLabel" - title.Name = "Title" - title.Text = "Settings" - title.Size = UDim2.new 1, 0, 0, 48 - title.Position = UDim2.new 0, 9, 0, -9 - title.Font = Enum.Font.ArialBold - title.FontSize = Enum.FontSize.Size36 - title.TextColor3 = Color3.new 1, 1, 1 - title.ZIndex = baseZIndex + 4 - title.BackgroundTransparency = 1 - title.Parent = gameSettingsMenuFrame + * New "TextLabel", "Title" + Text: "Settings" + Size: UDim2.new 1, 0, 0, 48 + Position: UDim2.new 0, 9, 0, -9 + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + TextColor3: Color3.new 1, 1, 1 + ZIndex: baseZIndex + 4 + BackgroundTransparency: 1 - fullscreenText = Instance.new "TextLabel" - fullscreenText.Name = "FullscreenText" - fullscreenText.Text = "Fullscreen Mode" - fullscreenText.Size = UDim2.new 0, 124, 0, 18 - fullscreenText.Position = UDim2.new 0, 62, 0, 145 - fullscreenText.Font = Enum.Font.Arial - fullscreenText.FontSize = Enum.FontSize.Size18 - fullscreenText.TextColor3 = Color3.new 1, 1, 1 - fullscreenText.ZIndex = baseZIndex + 4 - fullscreenText.BackgroundTransparency = 1 - fullscreenText.Parent = gameSettingsMenuFrame + * New "TextLabel", "FullscreenText" + Text: "Fullscreen Mode" + Size: UDim2.new 0, 124, 0, 18 + Position: UDim2.new 0, 62, 0, 145 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + TextColor3: Color3.new 1, 1, 1 + ZIndex: baseZIndex + 4 + BackgroundTransparency: 1 - fullscreenShortcut = Instance.new "TextLabel" - fullscreenShortcut.Visible = hasGraphicsSlider - fullscreenShortcut.Name = "FullscreenShortcutText" - fullscreenShortcut.Text = "F11" - fullscreenShortcut.BackgroundTransparency = 1 - fullscreenShortcut.Font = Enum.Font.Arial - fullscreenShortcut.FontSize = Enum.FontSize.Size12 - fullscreenShortcut.Position = UDim2.new 0, 186, 0, 141 - fullscreenShortcut.Size = UDim2.new 0, 30, 0, 30 - fullscreenShortcut.TextColor3 = Color3.new 0, 1, 0 - fullscreenShortcut.ZIndex = baseZIndex + 4 - fullscreenShortcut.Parent = gameSettingsMenuFrame + fullscreenShortcut = New "TextLabel", "FullscreenShortcutText" + Visible: hasGraphicsSlider + Text: "F11" + BackgroundTransparency: 1 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size12 + Position: UDim2.new 0, 186, 0, 141 + Size: UDim2.new 0, 30, 0, 30 + TextColor3: Color3.new 0, 1, 0 + ZIndex: baseZIndex + 4 + Parent: gameSettingsMenuFrame - studioText = Instance.new "TextLabel" - studioText.Visible = false - studioText.Name = "StudioText" - studioText.Text = "Studio Mode" - studioText.Size = UDim2.new 0, 95, 0, 18 - studioText.Position = UDim2.new 0, 62, 0, 179 - studioText.Font = Enum.Font.Arial - studioText.FontSize = Enum.FontSize.Size18 - studioText.TextColor3 = Color3.new 1, 1, 1 - studioText.ZIndex = baseZIndex + 4 - studioText.BackgroundTransparency = 1 - studioText.Parent = gameSettingsMenuFrame + studioText = New "TextLabel", "StudioText" + Visible: false + Text: "Studio Mode" + Size: UDim2.new 0, 95, 0, 18 + Position: UDim2.new 0, 62, 0, 179 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + TextColor3: Color3.new 1, 1, 1 + ZIndex: baseZIndex + 4 + BackgroundTransparency: 1 + Parent: gameSettingsMenuFrame studioShortcut = fullscreenShortcut\clone! - studioShortcut.Name = "StudioShortcutText" - studioShortcut.Visible = false -- TODO: turn back on when f2 hack is fixed - studioShortcut.Text = "F2" - studioShortcut.Position = UDim2.new 0, 154, 0, 175 - studioShortcut.Parent = gameSettingsMenuFrame + with studioShortcut + .Name = "StudioShortcutText" + .Visible = false -- TODO: turn back on when f2 hack is fixed + .Text = "F2" + .Position = UDim2.new 0, 154, 0, 175 + .Parent = gameSettingsMenuFrame local studioCheckbox if hasGraphicsSlider - qualityText = Instance.new "TextLabel" - qualityText.Name = "QualityText" - qualityText.Text = "Graphics Quality" - qualityText.Size = UDim2.new 0, 128, 0, 18 - qualityText.Position = UDim2.new 0, 30, 0, 239 - qualityText.Font = Enum.Font.Arial - qualityText.FontSize = Enum.FontSize.Size18 - qualityText.TextColor3 = Color3.new 1, 1, 1 - qualityText.ZIndex = baseZIndex + 4 - qualityText.BackgroundTransparency = 1 - qualityText.Parent = gameSettingsMenuFrame - qualityText.Visible = not inStudioMode + qualityText = New "TextLabel", "QualityText" + Text: "Graphics Quality" + Size: UDim2.new 0, 128, 0, 18 + Position: UDim2.new 0, 30, 0, 239 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + TextColor3: Color3.new 1, 1, 1 + ZIndex: baseZIndex + 4 + BackgroundTransparency: 1 + Parent: gameSettingsMenuFrame + Visible: not inStudioMode autoText = qualityText\clone! - autoText.Name = "AutoText" - autoText.Text = "Auto" - autoText.Position = UDim2.new 0, 183, 0, 214 - autoText.TextColor3 = Color3.new 128 / 255, 128 / 255, 128 / 255 - autoText.Size = UDim2.new 0, 34, 0, 18 - autoText.Parent = gameSettingsMenuFrame - autoText.Visible = not inStudioMode + with autoText + .Name = "AutoText" + .Text = "Auto" + .Position = UDim2.new 0, 183, 0, 214 + .TextColor3 = Color3.new 128 / 255, 128 / 255, 128 / 255 + .Size = UDim2.new 0, 34, 0, 18 + .Parent = gameSettingsMenuFrame + .Visible = not inStudioMode fasterText = autoText\clone! - fasterText.Name = "FasterText" - fasterText.Text = "Faster" - fasterText.Position = UDim2.new 0, 185, 0, 274 - fasterText.TextColor3 = Color3.new 95, 95, 95 - fasterText.FontSize = Enum.FontSize.Size14 - fasterText.Parent = gameSettingsMenuFrame - fasterText.Visible = not inStudioMode + with fasterText + .Name = "FasterText" + .Text = "Faster" + .Position = UDim2.new 0, 185, 0, 274 + .TextColor3 = Color3.new 95, 95, 95 + .FontSize = Enum.FontSize.Size14 + .Parent = gameSettingsMenuFrame + .Visible = not inStudioMode fasterShortcut = fullscreenShortcut\clone! - fasterShortcut.Name = "FasterShortcutText" - fasterShortcut.Text = "F10 + Shift" - fasterShortcut.Position = UDim2.new 0, 185, 0, 283 - fasterShortcut.Parent = gameSettingsMenuFrame - fasterShortcut.Visible = not inStudioMode + with fasterShortcut + .Name = "FasterShortcutText" + .Text = "F10 + Shift" + .Position = UDim2.new 0, 185, 0, 283 + .Parent = gameSettingsMenuFrame + .Visible = not inStudioMode betterQualityText = autoText\clone! - betterQualityText.Name = "BetterQualityText" - betterQualityText.Text = "Better Quality" - betterQualityText.TextWrap = true - betterQualityText.Size = UDim2.new 0, 41, 0, 28 - betterQualityText.Position = UDim2.new 0, 390, 0, 269 - betterQualityText.TextColor3 = Color3.new 95, 95, 95 - betterQualityText.FontSize = Enum.FontSize.Size14 - betterQualityText.Parent = gameSettingsMenuFrame - betterQualityText.Visible = not inStudioMode + with betterQualityText + .Name = "BetterQualityText" + .Text = "Better Quality" + .TextWrap = true + .Size = UDim2.new 0, 41, 0, 28 + .Position = UDim2.new 0, 390, 0, 269 + .TextColor3 = Color3.new 95, 95, 95 + .FontSize = Enum.FontSize.Size14 + .Parent = gameSettingsMenuFrame + .Visible = not inStudioMode betterQualityShortcut = fullscreenShortcut\clone! - betterQualityShortcut.Name = "BetterQualityShortcut" - betterQualityShortcut.Text = "F10" - betterQualityShortcut.Position = UDim2.new 0, 394, 0, 288 - betterQualityShortcut.Parent = gameSettingsMenuFrame - betterQualityShortcut.Visible = not inStudioMode + with betterQualityShortcut + .Name = "BetterQualityShortcut" + .Text = "F10" + .Position = UDim2.new 0, 394, 0, 288 + .Parent = gameSettingsMenuFrame + .Visible = not inStudioMode autoGraphicsButton = createTextButton( "X", @@ -883,22 +884,21 @@ createGameSettingsMenu = (baseZIndex, _) -> graphicsSlider.Bar.ZIndex = baseZIndex + 4 graphicsSlider.Bar.Slider.ZIndex = baseZIndex + 5 graphicsSlider.Visible = not inStudioMode - graphicsLevel.Value = math.floor((settings!.Rendering\GetMaxQualityLevel! - 1) / 2) + graphicsLevel.Value = math.floor (settings!.Rendering\GetMaxQualityLevel! - 1) / 2 - graphicsSetter = Instance.new "TextBox" - graphicsSetter.Name = "GraphicsSetter" - graphicsSetter.BackgroundColor3 = Color3.new 0, 0, 0 - graphicsSetter.BorderColor3 = Color3.new 128 / 255, 128 / 255, 128 / 255 - graphicsSetter.Size = UDim2.new 0, 50, 0, 25 - graphicsSetter.Position = UDim2.new 0, 450, 0, 269 - graphicsSetter.TextColor3 = Color3.new 1, 1, 1 - graphicsSetter.Font = Enum.Font.Arial - graphicsSetter.FontSize = Enum.FontSize.Size18 - graphicsSetter.Text = "Auto" - graphicsSetter.ZIndex = 1 - graphicsSetter.TextWrap = true - graphicsSetter.Parent = gameSettingsMenuFrame - graphicsSetter.Visible = not inStudioMode + graphicsSetter = New "TextBox", "GraphicsSetter" + BackgroundColor3: Color3.new 0, 0, 0 + BorderColor3: Color3.new 128 / 255, 128 / 255, 128 / 255 + Size: UDim2.new 0, 50, 0, 25 + Position: UDim2.new 0, 450, 0, 269 + TextColor3: Color3.new 1, 1, 1 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Text: "Auto" + ZIndex: 1 + TextWrap: true + Parent: gameSettingsMenuFrame + Visible: not inStudioMode isAutoGraphics = true if not inStudioMode @@ -1249,18 +1249,17 @@ createGameSettingsMenu = (baseZIndex, _) -> global syncVideoCaptureSetting = nil if not macClient - videoCaptureLabel = Instance.new "TextLabel" - videoCaptureLabel.Name = "VideoCaptureLabel" - videoCaptureLabel.Text = "After Capturing Video" - videoCaptureLabel.Font = Enum.Font.Arial - videoCaptureLabel.FontSize = Enum.FontSize.Size18 - videoCaptureLabel.Position = UDim2.new 0, 32, 0, 100 - videoCaptureLabel.Size = UDim2.new 0, 164, 0, 18 - videoCaptureLabel.BackgroundTransparency = 1 - videoCaptureLabel.TextColor3 = Color3I 255, 255, 255 - videoCaptureLabel.TextXAlignment = Enum.TextXAlignment.Left - videoCaptureLabel.ZIndex = baseZIndex + 4 - videoCaptureLabel.Parent = gameSettingsMenuFrame + New "TextLabel", "VideoCaptureLabel" + Text: "After Capturing Video" + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0, 32, 0, 100 + Size: UDim2.new 0, 164, 0, 18 + BackgroundTransparency: 1 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + ZIndex: baseZIndex + 4 + Parent: gameSettingsMenuFrame videoNames = {} videoNameToItem = {} @@ -1273,13 +1272,14 @@ createGameSettingsMenu = (baseZIndex, _) -> videoCaptureDropDown, updateVideoCaptureDropDownSelection = RbxGui.CreateDropDownMenu videoNames, (text) -> UserSettings!.GameSettings.VideoUploadPromptBehavior = videoNameToItem[text] - videoCaptureDropDown.Name = "VideoCaptureField" - videoCaptureDropDown.ZIndex = baseZIndex + 4 - videoCaptureDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 - videoCaptureDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 - videoCaptureDropDown.Position = UDim2.new 0, 270, 0, 94 - videoCaptureDropDown.Size = UDim2.new 0, 200, 0, 32 - videoCaptureDropDown.Parent = gameSettingsMenuFrame + with videoCaptureDropDown + .Name = "VideoCaptureField" + .ZIndex = baseZIndex + 4 + .DropDownMenuButton.ZIndex = baseZIndex + 4 + .DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + .Position = UDim2.new 0, 270, 0, 94 + .Size = UDim2.new 0, 200, 0, 32 + .Parent = gameSettingsMenuFrame syncVideoCaptureSetting = -> updateVideoCaptureDropDownSelection if UserSettings!.GameSettings.VideoUploadPromptBehavior == Enum.UploadSetting["Never"] @@ -1291,18 +1291,17 @@ createGameSettingsMenu = (baseZIndex, _) -> videoNames[2] - cameraLabel = Instance.new "TextLabel" - cameraLabel.Name = "CameraLabel" - cameraLabel.Text = "Character & Camera Controls" - cameraLabel.Font = Enum.Font.Arial - cameraLabel.FontSize = Enum.FontSize.Size18 - cameraLabel.Position = UDim2.new 0, 31, 0, 58 - cameraLabel.Size = UDim2.new 0, 224, 0, 18 - cameraLabel.TextColor3 = Color3I 255, 255, 255 - cameraLabel.TextXAlignment = Enum.TextXAlignment.Left - cameraLabel.BackgroundTransparency = 1 - cameraLabel.ZIndex = baseZIndex + 4 - cameraLabel.Parent = gameSettingsMenuFrame + New "TextLabel", "CameraLabel" + Text: "Character & Camera Controls" + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0, 31, 0, 58 + Size: UDim2.new 0, 224, 0, 18 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + BackgroundTransparency: 1 + ZIndex: baseZIndex + 4 + Parent: gameSettingsMenuFrame mouseLockLabel = game.CoreGui.RobloxGui\FindFirstChild "MouseLockLabel", true @@ -1324,13 +1323,14 @@ createGameSettingsMenu = (baseZIndex, _) -> elseif mouseLockLabel false - cameraDropDown.Name = "CameraField" - cameraDropDown.ZIndex = baseZIndex + 4 - cameraDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 - cameraDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 - cameraDropDown.Position = UDim2.new 0, 270, 0, 52 - cameraDropDown.Size = UDim2.new 0, 200, 0, 32 - cameraDropDown.Parent = gameSettingsMenuFrame + with cameraDropDown + .Name = "CameraField" + .ZIndex = baseZIndex + 4 + .DropDownMenuButton.ZIndex = baseZIndex + 4 + .DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 + .Position = UDim2.new 0, 270, 0, 52 + .Size = UDim2.new 0, 200, 0, 32 + .Parent = gameSettingsMenuFrame gameSettingsMenuFrame @@ -1343,44 +1343,40 @@ if LoadLibrary global settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton" if settingsButton == nil - settingsButton = Instance.new "ImageButton" - settingsButton.Name = "SettingsButton" - settingsButton.Image = "rbxasset://textures/ui/SettingsButton.png" - settingsButton.BackgroundTransparency = 1 - settingsButton.Active = false - settingsButton.Size = UDim2.new 0, 54, 0, 46 - settingsButton.Position = UDim2.new 0, 2, 0, 50 - settingsButton.Parent = gui.BottomLeftControl + settingsButton = New "ImageButton", "SettingsButton" + Image: "rbxasset://textures/ui/SettingsButton.png" + BackgroundTransparency: 1 + Active: false + Size: UDim2.new 0, 54, 0, 46 + Position: UDim2.new 0, 2, 0, 50 + Parent: gui.BottomLeftControl - shield = Instance.new "TextButton" - shield.Text = "" - shield.Name = "UserSettingsShield" - shield.Active = true - shield.AutoButtonColor = false - shield.Visible = false - shield.Size = UDim2.new 1, 0, 1, 0 - shield.BackgroundColor3 = Color3I 51, 51, 51 - shield.BorderColor3 = Color3I 27, 42, 53 - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 2 + shield = New "TextButton", "UserSettingsShield" + Text: "" + Active: true + AutoButtonColor: false + Visible: false + Size: UDim2.new 1, 0, 1, 0 + BackgroundColor3: Color3I 51, 51, 51 + BorderColor3: Color3I 27, 42, 53 + BackgroundTransparency: 0.4 + ZIndex: baseZIndex + 2 mainShield = shield - frame = Instance.new "Frame" - frame.Name = "Settings" - frame.Position = UDim2.new 0.5, -262, -0.5, -200 - frame.Size = UDim2.new 0, 525, 0, 430 - frame.BackgroundTransparency = 1 - frame.Active = true - frame.Parent = shield + frame = New "Frame", "Settings" + Position: UDim2.new 0.5, -262, -0.5, -200 + Size: UDim2.new 0, 525, 0, 430 + BackgroundTransparency: 1 + Active: true + Parent: shield - settingsFrame = Instance.new "Frame" - settingsFrame.Name = "SettingsStyle" - settingsFrame.Size = UDim2.new 1, 0, 1, 0 - settingsFrame.Style = Enum.FrameStyle.RobloxRound - settingsFrame.Active = true - settingsFrame.ZIndex = baseZIndex + 3 - settingsFrame.Parent = frame + settingsFrame = New "Frame", "SettingsStyle" + Size: UDim2.new 1, 0, 1, 0 + Style: Enum.FrameStyle.RobloxRound + Active: true + ZIndex: baseZIndex + 3 + Parent: frame gameMainMenu = createGameMainMenu baseZIndex, shield gameMainMenu.Parent = settingsFrame @@ -1508,12 +1504,12 @@ if LoadLibrary lastMenuSelection[#lastMenuSelection]["lastSize"] ) - table.remove(lastMenuSelection, #lastMenuSelection) + table.remove lastMenuSelection, #lastMenuSelection if #lastMenuSelection == 1 then -- apparently lua can't reduce count to 0... T_T lastMenuSelection = {} else - resumeGameFunction(shield) + resumeGameFunction shield @@ -1523,22 +1519,22 @@ if LoadLibrary gameSettingsMenu.Parent = settingsFrame gameMainMenu.SettingsButton.MouseButton1Click\connect -> - goToMenu(settingsFrame, "GameSettingsMenu", "left", UDim2.new(0, 525, 0, 350)) + goToMenu settingsFrame, "GameSettingsMenu", "left", UDim2.new 0, 525, 0, 350 gameSettingsMenu.BackButton.MouseButton1Click\connect -> - goToMenu(settingsFrame, "GameMainMenu", "right", UDim2.new(0, 525, 0, 430)) + goToMenu settingsFrame, "GameMainMenu", "right", UDim2.new 0, 525, 0, 430 - resetConfirmationWindow = createResetConfirmationMenu(baseZIndex, shield) + resetConfirmationWindow = createResetConfirmationMenu baseZIndex, shield resetConfirmationWindow.Visible = false resetConfirmationWindow.Parent = settingsFrame - leaveConfirmationWindow = createLeaveConfirmationMenu(baseZIndex, shield) + leaveConfirmationWindow = createLeaveConfirmationMenu baseZIndex, shield leaveConfirmationWindow.Visible = false leaveConfirmationWindow.Parent = settingsFrame - robloxLock(shield) + robloxLock shield settingsButton.MouseButton1Click\connect -> game.GuiService\AddCenterDialog( @@ -1547,13 +1543,13 @@ if LoadLibrary --showFunction -> settingsButton.Active = false - updateCameraDropDownSelection(UserSettings!.GameSettings.ControlMode.Name) + updateCameraDropDownSelection UserSettings!.GameSettings.ControlMode.Name if syncVideoCaptureSetting syncVideoCaptureSetting! - goToMenu(settingsFrame, "GameMainMenu", "right", UDim2.new(0, 525, 0, 430)) + goToMenu settingsFrame, "GameMainMenu", "right", UDim2.new 0, 525, 0, 430 shield.Visible = true settingsFrame.Parent\TweenPosition( UDim2.new(0.5, -262, 0.5, -200), @@ -1590,8 +1586,7 @@ if LoadLibrary ) - - return shield + shield delay 0, -> @@ -1600,23 +1595,21 @@ if LoadLibrary gui.BottomLeftControl.SettingsButton.Active = true gui.BottomLeftControl.SettingsButton.Position = UDim2.new 0, 2, 0, -2 - if mouseLockLabel and UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] - mouseLockLabel.Visible = true + mouseLockLabel.Visible = if mouseLockLabel and UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] + true elseif mouseLockLabel - mouseLockLabel.Visible = false + false -- our script has loaded, get rid of older buttons now leaveGameButton = gui.BottomLeftControl\FindFirstChild "Exit" - if leaveGameButton - leaveGameButton\Remove! + leaveGameButton?\Remove! topLeft = gui\FindFirstChild "TopLeftControl" if topLeft leaveGameButton = topLeft\FindFirstChild "Exit" - if leaveGameButton - leaveGameButton\Remove! + leaveGameButton?\Remove! topLeft\Remove! @@ -1624,17 +1617,16 @@ if LoadLibrary --UserSettings call createSaveDialogs = -> - shield = Instance.new "TextButton" - shield.Text = "" - shield.AutoButtonColor = false - shield.Name = "SaveDialogShield" - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new 1, 0, 1, 0 - shield.BackgroundColor3 = Color3I 51, 51, 51 - shield.BorderColor3 = Color3I 27, 42, 53 - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 + shield = New "TextButton", "SaveDialogShield" + Text: "" + AutoButtonColor: false + Active: true + Visible: false + Size: UDim2.new 1, 0, 1, 0 + BackgroundColor3: Color3I 51, 51, 51 + BorderColor3: Color3I 27, 42, 53 + BackgroundTransparency: 0.4 + ZIndex: baseZIndex + 1 local clearAndResetDialog, save, saveLocal, dontSave, cancel @@ -1696,46 +1688,41 @@ if LoadLibrary errorDialogMessageBox.Visible = false errorDialogMessageBox.Parent = shield - spinnerDialog = Instance.new "Frame" - spinnerDialog.Name = "SpinnerDialog" - spinnerDialog.Style = Enum.FrameStyle.RobloxRound - spinnerDialog.Size = UDim2.new 0, 350, 0, 150 - spinnerDialog.Position = UDim2.new 0.5, -175, 0.5, -75 - spinnerDialog.Visible = false - spinnerDialog.Active = true - spinnerDialog.Parent = shield + spinnerDialog = New "Frame", "SpinnerDialog" + Style: Enum.FrameStyle.RobloxRound + Size: UDim2.new 0, 350, 0, 150 + Position: UDim2.new 0.5, -175, 0.5, -75 + Visible: false + Active: true + Parent: shield - waitingLabel = Instance.new "TextLabel" - waitingLabel.Name = "WaitingLabel" - waitingLabel.Text = "Saving to Mercury..." - waitingLabel.Font = Enum.Font.ArialBold - waitingLabel.FontSize = Enum.FontSize.Size18 - waitingLabel.Position = UDim2.new 0.5, 25, 0.5, 0 - waitingLabel.TextColor3 = Color3.new 1, 1, 1 - waitingLabel.Parent = spinnerDialog + * New "TextLabel", "WaitingLabel" + Text: "Saving to Mercury..." + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.5, 25, 0.5, 0 + TextColor3: Color3.new 1, 1, 1 - spinnerFrame = Instance.new "Frame" - spinnerFrame.Name = "Spinner" - spinnerFrame.Size = UDim2.new 0, 80, 0, 80 - spinnerFrame.Position = UDim2.new 0.5, -150, 0.5, -40 - spinnerFrame.BackgroundTransparency = 1 - spinnerFrame.Parent = spinnerDialog + spinnerFrame = New "Frame", "Spinner" + Size: UDim2.new 0, 80, 0, 80 + Position: UDim2.new 0.5, -150, 0.5, -40 + BackgroundTransparency: 1 + Parent: spinnerDialog spinnerIcons = {} spinnerNum = 1 while spinnerNum <= 8 - spinnerImage = Instance.new "ImageLabel" - spinnerImage.Name = "Spinner" .. spinnerNum - spinnerImage.Size = UDim2.new 0, 16, 0, 16 - spinnerImage.Position = UDim2.new( - 0.5 + 0.3 * math.cos(math.rad(45 * spinnerNum)), - -8, - 0.5 + 0.3 * math.sin(math.rad(45 * spinnerNum)), - -8 - ) - spinnerImage.BackgroundTransparency = 1 - spinnerImage.Image = "http://www.roblox.com/Asset?id=45880710" - spinnerImage.Parent = spinnerFrame + spinnerImage = New "ImageLabel", "Spinner#{spinnerNum}" + Size: UDim2.new 0, 16, 0, 16 + Position: UDim2.new( + 0.5 + 0.3 * math.cos(math.rad(45 * spinnerNum)), + -8, + 0.5 + 0.3 * math.sin(math.rad(45 * spinnerNum)), + -8 + ) + BackgroundTransparency: 1 + Image: "http://www.roblox.com/Asset?id=45880710" + Parent: spinnerFrame spinnerIcons[spinnerNum] = spinnerImage spinnerNum += 1 @@ -1780,7 +1767,7 @@ if LoadLibrary --Now process the result if result --Success, close - game\FinishShutdown(false) + game\FinishShutdown false clearAndResetDialog! else --Failure, show the second dialog prompt @@ -1789,14 +1776,14 @@ if LoadLibrary saveLocal = -> errorDialogMessageBox.Visible = false - game\FinishShutdown(true) + game\FinishShutdown true clearAndResetDialog! dontSave = -> saveDialogMessageBox.Visible = false errorDialogMessageBox.Visible = false - game\FinishShutdown(false) + game\FinishShutdown false clearAndResetDialog! cancel = -> @@ -1810,41 +1797,40 @@ if LoadLibrary errorDialogMessageBox.Visible = false spinnerDialog.Visible = false shield.Visible = false - game.GuiService\RemoveCenterDialog(shield) + game.GuiService\RemoveCenterDialog shield - robloxLock(shield) + robloxLock shield shield.Visible = false - return shield + shield createReportAbuseDialog = -> --Only show things if we are a NetworkClient - waitForChild(game, "NetworkClient") + waitForChild game, "NetworkClient" - waitForChild(game, "Players") - waitForProperty(game.Players, "LocalPlayer") + waitForChild game, "Players" + waitForProperty game.Players, "LocalPlayer" localPlayer = game.Players.LocalPlayer local reportAbuseButton - waitForChild(gui, "UserSettingsShield") - waitForChild(gui.UserSettingsShield, "Settings") - waitForChild(gui.UserSettingsShield.Settings, "SettingsStyle") - waitForChild(gui.UserSettingsShield.Settings.SettingsStyle, "GameMainMenu") - waitForChild(gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu, "ReportAbuseButton") + waitForChild gui, "UserSettingsShield" + waitForChild gui.UserSettingsShield, "Settings" + waitForChild gui.UserSettingsShield.Settings, "SettingsStyle" + waitForChild gui.UserSettingsShield.Settings.SettingsStyle, "GameMainMenu" + waitForChild gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu, "ReportAbuseButton" reportAbuseButton = gui.UserSettingsShield.Settings.SettingsStyle.GameMainMenu.ReportAbuseButton - shield = Instance.new "TextButton" - shield.Name = "ReportAbuseShield" - shield.Text = "" - shield.AutoButtonColor = false - shield.Active = true - shield.Visible = false - shield.Size = UDim2.new 1, 0, 1, 0 - shield.BackgroundColor3 = Color3I 51, 51, 51 - shield.BorderColor3 = Color3I 27, 42, 53 - shield.BackgroundTransparency = 0.4 - shield.ZIndex = baseZIndex + 1 + shield = New "TextButton", "ReportAbuseShield" + Text: "" + AutoButtonColor: false + Active: true + Visible: false + Size: UDim2.new 1, 0, 1, 0 + BackgroundColor3: Color3I 51, 51, 51 + BorderColor3: Color3I 27, 42, 53 + BackgroundTransparency: 0.4 + ZIndex: baseZIndex + 1 local closeAndResetDialog @@ -1879,59 +1865,62 @@ if LoadLibrary normalMessageBox.Visible = false normalMessageBox.Parent = shield - frame = Instance.new "Frame" - frame.Name = "Settings" - frame.Position = UDim2.new 0.5, -250, 0.5, -200 - frame.Size = UDim2.new 0, 500, 0, 400 - frame.BackgroundTransparency = 1 - frame.Active = true - frame.Parent = shield + frame = New "Frame", "Settings" + Position: UDim2.new 0.5, -250, 0.5, -200 + Size: UDim2.new 0, 500, 0, 400 + BackgroundTransparency: 1 + Active: true + Parent: shield - settingsFrame = Instance.new "Frame" - settingsFrame.Name = "ReportAbuseStyle" - settingsFrame.Size = UDim2.new 1, 0, 1, 0 - settingsFrame.Style = Enum.FrameStyle.RobloxRound - settingsFrame.Active = true - settingsFrame.ZIndex = baseZIndex + 1 - settingsFrame.Parent = frame + settingsFrame = New "Frame", "ReportAbuseStyle" + Size: UDim2.new 1, 0, 1, 0 + Style: Enum.FrameStyle.RobloxRound + Active: true + ZIndex: baseZIndex + 1 + Parent: frame - title = Instance.new "TextLabel" - title.Name = "Title" - title.Text = "Report Abuse" - title.TextColor3 = Color3I 221, 221, 221 - title.Position = UDim2.new 0.5, 0, 0, 30 - title.Font = Enum.Font.ArialBold - title.FontSize = Enum.FontSize.Size36 - title.ZIndex = baseZIndex + 2 - title.Parent = settingsFrame + * New "TextLabel", "Title" + Text: "Report Abuse" + TextColor3: Color3I 221, 221, 221 + Position: UDim2.new 0.5, 0, 0, 30 + Font: Enum.Font.ArialBold + FontSize: Enum.FontSize.Size36 + ZIndex: baseZIndex + 2 - description = Instance.new "TextLabel" - description.Name = "Description" - description.Text = "This will send a complete report to a moderator. The moderator will review the chat log and take appropriate action." - description.TextColor3 = Color3I 221, 221, 221 - description.Position = UDim2.new 0, 0, 0, 55 - description.Size = UDim2.new 1, 0, 0, 40 - description.BackgroundTransparency = 1 - description.Font = Enum.Font.Arial - description.FontSize = Enum.FontSize.Size18 - description.TextWrap = true - description.ZIndex = baseZIndex + 2 - description.TextXAlignment = Enum.TextXAlignment.Left - description.TextYAlignment = Enum.TextYAlignment.Top - description.Parent = settingsFrame + * New "TextLabel", "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 + Position: UDim2.new 0, 0, 0, 55 + Size: UDim2.new 1, 0, 0, 40 + BackgroundTransparency: 1 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + TextWrap: true + ZIndex: baseZIndex + 2 + TextXAlignment: Enum.TextXAlignment.Left + TextYAlignment: Enum.TextYAlignment.Top - playerLabel = Instance.new "TextLabel" - playerLabel.Name = "PlayerLabel" - playerLabel.Text = "Which player?" - playerLabel.BackgroundTransparency = 1 - playerLabel.Font = Enum.Font.Arial - playerLabel.FontSize = Enum.FontSize.Size18 - playerLabel.Position = UDim2.new 0.025, 0, 0, 100 - playerLabel.Size = UDim2.new 0.4, 0, 0, 36 - playerLabel.TextColor3 = Color3I 255, 255, 255 - playerLabel.TextXAlignment = Enum.TextXAlignment.Left - playerLabel.ZIndex = baseZIndex + 2 - playerLabel.Parent = settingsFrame + * New "TextLabel", "PlayerLabel" + Text: "Which player?" + BackgroundTransparency: 1 + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.025, 0, 0, 100 + Size: UDim2.new 0.4, 0, 0, 36 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + ZIndex: baseZIndex + 2 + + * New "TextLabel", "AbuseLabel" + Text: "Type of Abuse:" + Font: Enum.Font.Arial + BackgroundTransparency: 1 + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.025, 0, 0, 140 + Size: UDim2.new 0.4, 0, 0, 36 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + ZIndex: baseZIndex + 2 local abusingPlayer local abuse @@ -1965,20 +1954,6 @@ if LoadLibrary playerDropDown.Size = UDim2.new 0.55, 0, 0, 32 playerDropDown - - abuseLabel = Instance.new "TextLabel" - abuseLabel.Name = "AbuseLabel" - abuseLabel.Text = "Type of Abuse:" - abuseLabel.Font = Enum.Font.Arial - abuseLabel.BackgroundTransparency = 1 - abuseLabel.FontSize = Enum.FontSize.Size18 - abuseLabel.Position = UDim2.new 0.025, 0, 0, 140 - abuseLabel.Size = UDim2.new 0.4, 0, 0, 36 - abuseLabel.TextColor3 = Color3I 255, 255, 255 - abuseLabel.TextXAlignment = Enum.TextXAlignment.Left - abuseLabel.ZIndex = baseZIndex + 2 - abuseLabel.Parent = settingsFrame - abuses = * "Swearing" * "Bullying" @@ -2002,59 +1977,55 @@ if LoadLibrary abuseDropDown.Size = UDim2.new 0.55, 0, 0, 32 abuseDropDown.Parent = settingsFrame - shortDescriptionLabel = Instance.new "TextLabel" - shortDescriptionLabel.Name = "ShortDescriptionLabel" - shortDescriptionLabel.Text = "Short Description: (optional)" - shortDescriptionLabel.Font = Enum.Font.Arial - shortDescriptionLabel.FontSize = Enum.FontSize.Size18 - shortDescriptionLabel.Position = UDim2.new 0.025, 0, 0, 180 - shortDescriptionLabel.Size = UDim2.new 0.95, 0, 0, 36 - shortDescriptionLabel.TextColor3 = Color3I 255, 255, 255 - shortDescriptionLabel.TextXAlignment = Enum.TextXAlignment.Left - shortDescriptionLabel.BackgroundTransparency = 1 - shortDescriptionLabel.ZIndex = baseZIndex + 2 - shortDescriptionLabel.Parent = settingsFrame + New "TextLabel", "ShortDescriptionLabel" + Text: "Short Description: (optional)" + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.025, 0, 0, 180 + Size: UDim2.new 0.95, 0, 0, 36 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + BackgroundTransparency: 1 + ZIndex: baseZIndex + 2 + Parent: settingsFrame - shortDescriptionWrapper = Instance.new "Frame" - shortDescriptionWrapper.Name = "ShortDescriptionWrapper" - shortDescriptionWrapper.Position = UDim2.new 0.025, 0, 0, 220 - shortDescriptionWrapper.Size = UDim2.new 0.95, 0, 1, -310 - shortDescriptionWrapper.BackgroundColor3 = Color3I 0, 0, 0 - shortDescriptionWrapper.BorderSizePixel = 0 - shortDescriptionWrapper.ZIndex = baseZIndex + 2 - shortDescriptionWrapper.Parent = settingsFrame + shortDescriptionWrapper = New "Frame", "ShortDescriptionWrapper" + Position: UDim2.new 0.025, 0, 0, 220 + Size: UDim2.new 0.95, 0, 1, -310 + BackgroundColor3: Color3I 0, 0, 0 + BorderSizePixel: 0 + ZIndex: baseZIndex + 2 + Parent: settingsFrame - shortDescriptionBox = Instance.new "TextBox" - shortDescriptionBox.Name = "TextBox" - shortDescriptionBox.Text = "" - shortDescriptionBox.ClearTextOnFocus = false - shortDescriptionBox.Font = Enum.Font.Arial - shortDescriptionBox.FontSize = Enum.FontSize.Size18 - shortDescriptionBox.Position = UDim2.new 0, 3, 0, 3 - shortDescriptionBox.Size = UDim2.new 1, -6, 1, -6 - shortDescriptionBox.TextColor3 = Color3I 255, 255, 255 - shortDescriptionBox.TextXAlignment = Enum.TextXAlignment.Left - shortDescriptionBox.TextYAlignment = Enum.TextYAlignment.Top - shortDescriptionBox.TextWrap = true - shortDescriptionBox.BackgroundColor3 = Color3I 0, 0, 0 - shortDescriptionBox.BorderSizePixel = 0 - shortDescriptionBox.ZIndex = baseZIndex + 2 - shortDescriptionBox.Parent = shortDescriptionWrapper + shortDescriptionBox = New "TextBox", "TextBox" + Text: "" + ClearTextOnFocus: false + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0, 3, 0, 3 + Size: UDim2.new 1, -6, 1, -6 + TextColor3: Color3I 255, 255, 255 + TextXAlignment: Enum.TextXAlignment.Left + TextYAlignment: Enum.TextYAlignment.Top + TextWrap: true + BackgroundColor3: Color3I 0, 0, 0 + BorderSizePixel: 0 + ZIndex: baseZIndex + 2 + Parent: shortDescriptionWrapper - submitReportButton = Instance.new "TextButton" - submitReportButton.Name = "SubmitReportBtn" - submitReportButton.Active = false - submitReportButton.Modal = true - submitReportButton.Font = Enum.Font.Arial - submitReportButton.FontSize = Enum.FontSize.Size18 - submitReportButton.Position = UDim2.new 0.1, 0, 1, -80 - submitReportButton.Size = UDim2.new 0.35, 0, 0, 50 - submitReportButton.AutoButtonColor = true - submitReportButton.Style = Enum.ButtonStyle.RobloxButtonDefault - submitReportButton.Text = "Submit Report" - submitReportButton.TextColor3 = Color3I 255, 255, 255 - submitReportButton.ZIndex = baseZIndex + 2 - submitReportButton.Parent = settingsFrame + submitReportButton = New "TextButton", "SubmitReportBtn" + Active: false + Modal: true + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.1, 0, 1, -80 + Size: UDim2.new 0.35, 0, 0, 50 + AutoButtonColor: true + Style: Enum.ButtonStyle.RobloxButtonDefault + Text: "Submit Report" + TextColor3: Color3I 255, 255, 255 + ZIndex: baseZIndex + 2 + Parent: settingsFrame submitReportButton.MouseButton1Click\connect -> if submitReportButton.Active @@ -2071,18 +2042,17 @@ if LoadLibrary else closeAndResetDialog! - cancelButton = Instance.new "TextButton" - cancelButton.Name = "CancelBtn" - cancelButton.Font = Enum.Font.Arial - cancelButton.FontSize = Enum.FontSize.Size18 - cancelButton.Position = UDim2.new 0.55, 0, 1, -80 - cancelButton.Size = UDim2.new 0.35, 0, 0, 50 - cancelButton.AutoButtonColor = true - cancelButton.Style = Enum.ButtonStyle.RobloxButtonDefault - cancelButton.Text = "Cancel" - cancelButton.TextColor3 = Color3I 255, 255, 255 - cancelButton.ZIndex = baseZIndex + 2 - cancelButton.Parent = settingsFrame + cancelButton = New "TextButton", "CancelBtn" + Font: Enum.Font.Arial + FontSize: Enum.FontSize.Size18 + Position: UDim2.new 0.55, 0, 1, -80 + Size: UDim2.new 0.35, 0, 0, 50 + AutoButtonColor: true + Style: Enum.ButtonStyle.RobloxButtonDefault + Text: "Cancel" + TextColor3: Color3I 255, 255, 255 + ZIndex: baseZIndex + 2 + Parent: settingsFrame closeAndResetDialog = -> --Delete old player combo box @@ -2092,9 +2062,9 @@ if LoadLibrary abusingPlayer = nil - updatePlayerSelection(nil) + updatePlayerSelection nil abuse = nil - updateAbuseSelection(nil) + updateAbuseSelection nil submitReportButton.Active = false shortDescriptionBox.Text = "" frame.Visible = true @@ -2103,14 +2073,14 @@ if LoadLibrary normalMessageBox.Visible = false shield.Visible = false reportAbuseButton.Active = true - game.GuiService\RemoveCenterDialog(shield) + game.GuiService\RemoveCenterDialog shield - cancelButton.MouseButton1Click\connect(closeAndResetDialog) + cancelButton.MouseButton1Click\connect closeAndResetDialog reportAbuseButton.MouseButton1Click\connect -> createPlayersDropDown!.Parent = settingsFrame - table.insert(centerDialogs, shield) + table.insert centerDialogs, shield game.GuiService\AddCenterDialog( shield, Enum.CenterDialogType.ModalDialog, @@ -2123,57 +2093,53 @@ if LoadLibrary -> reportAbuseButton.Active = true shield.Visible = false - ) robloxLock shield shield - -- createChatBar = -> -- --Only show a chat bar if we are a NetworkClient - -- waitForChild(game, "NetworkClient") + -- waitForChild game, "NetworkClient" - -- waitForChild(game, "Players") - -- waitForProperty(game.Players, "LocalPlayer") + -- waitForChild game, "Players" + -- waitForProperty game.Players, "LocalPlayer" - -- chatBar = Instance.new "Frame" - -- chatBar.Name = "ChatBar" - -- chatBar.Size = UDim2.new 1, 0, 0, 22 - -- chatBar.Position = UDim2.new 0, 0, 1, 0 - -- chatBar.BackgroundColor3 = Color3.new 0, 0, 0 - -- chatBar.BorderSizePixel = 0 + -- chatBar = New "Frame" + -- Name: "ChatBar" + -- Size: UDim2.new 1, 0, 0, 22 + -- Position: UDim2.new 0, 0, 1, 0 + -- BackgroundColor3: Color3.new 0, 0, 0 + -- BorderSizePixel: 0 - -- chatBox = Instance.new "TextBox" - -- chatBox.Text = "" - -- chatBox.Visible = false - -- chatBox.Size = UDim2.new 1, -4, 1, 0 - -- chatBox.Position = UDim2.new 0, 2, 0, 0 - -- chatBox.TextXAlignment = Enum.TextXAlignment.Left - -- chatBox.Font = Enum.Font.Arial - -- chatBox.ClearTextOnFocus = false - -- chatBox.FontSize = Enum.FontSize.Size14 - -- chatBox.TextColor3 = Color3.new 1, 1, 1 - -- chatBox.BackgroundTransparency = 1 - -- --chatBox.Parent = chatBar + -- chatBox = New "TextBox" + -- Text: "" + -- Visible: false + -- Size: UDim2.new 1, -4, 1, 0 + -- Position: UDim2.new 0, 2, 0, 0 + -- TextXAlignment: Enum.TextXAlignment.Left + -- Font: Enum.Font.Arial + -- ClearTextOnFocus: false + -- FontSize: Enum.FontSize.Size14 + -- TextColor3: Color3.new 1, 1, 1 + -- BackgroundTransparency: 1 + -- -- Parent: chatBar - -- chatButton = Instance.new "TextButton" - -- chatButton.Size = UDim2.new 1, -4, 1, 0 - -- chatButton.Position = UDim2.new 0, 2, 0, 0 - -- chatButton.AutoButtonColor = false - -- chatButton.Text = 'To chat click here or press "/" key' - -- chatButton.TextXAlignment = Enum.TextXAlignment.Left - -- chatButton.Font = Enum.Font.Arial - -- chatButton.FontSize = Enum.FontSize.Size14 - -- chatButton.TextColor3 = Color3.new 1, 1, 1 - -- chatButton.BackgroundTransparency = 1 - -- --chatButton.Parent = chatBar + -- chatButton = New "TextButton" + -- Size: UDim2.new 1, -4, 1, 0 + -- Position: UDim2.new 0, 2, 0, 0 + -- AutoButtonColor: false + -- Text: 'To chat click here or press "/" key' + -- TextXAlignment: Enum.TextXAlignment.Left + -- Font: Enum.Font.Arial + -- FontSize: Enum.FontSize.Size14 + -- TextColor3: Color3.new 1, 1, 1 + -- BackgroundTransparency: 1 + -- -- Parent: chatBar -- activateChat = -> - -- if chatBox.Visible - -- return - -- end + -- return if chatBox.Visible -- chatButton.Visible = false -- chatBox.Text = "" -- chatBox.Visible = true @@ -2182,14 +2148,14 @@ if LoadLibrary -- chatButton.MouseButton1Click\connect(activateChat) -- -- hotKeyEnabled = true - -- toggleHotKey = function(_) + -- toggleHotKey = (_) -> -- -- hotKeyEnabled = value -- -- guiService = game\GetService "GuiService" -- --[[newChatMode = ]]try -- --guiService\AddSpecialKey(Enum.SpecialKey.ChatHotkey) -- --guiService.SpecialKeyPressed\connect (key) -> if key == Enum.SpecialKey.ChatHotkey and hotKeyEnabled then activateChat! - -- end) + -- -- if not newChatMode -- --guiService\AddKey("/") -- --guiService.KeyPressed\connect (key) -> if key == "/" and hotKeyEnabled then activateChat! @@ -2199,14 +2165,14 @@ if LoadLibrary -- if chatBox.Text ~= "" -- str = chatBox.Text -- if string.sub(str, 1, 1) == "%" - -- game.Players\TeamChat(string.sub(str, 2)) + -- game.Players\TeamChat string.sub str, 2 -- else - -- game.Players\Chat(str) + -- game.Players\Chat str -- chatBox.Text = "" -- chatBox.Visible = false -- chatButton.Visible = true - -- robloxLock(chatBar) - -- return chatBar, toggleHotKey + -- robloxLock chatBar + -- chatBar, toggleHotKey --Spawn a thread for the Save dialogs isSaveDialogSupported = try @@ -2228,9 +2194,7 @@ if LoadLibrary -> saveDialogs.Visible = false ) - return true - - + true --Spawn a thread for the Report Abuse dialogs