Improve corescript formatting

This commit is contained in:
Lewin Kelly 2023-04-22 08:20:30 +01:00
parent a060a0001e
commit 21b2c8dd99
24 changed files with 325 additions and 350 deletions

View File

@ -1049,9 +1049,10 @@ createPurchasePromptGui = ->
Parent: purchaseDialog Parent: purchaseDialog
purchasingLabel = createTextObject "PurchasingLabel", "Purchasing...", "TextLabel", Enum.FontSize.Size48 purchasingLabel = createTextObject "PurchasingLabel", "Purchasing...", "TextLabel", Enum.FontSize.Size48
purchasingLabel.Size = UDim2.new 1, 0, 1, 0 with purchasingLabel
purchasingLabel.ZIndex = 10 .Size = UDim2.new 1, 0, 1, 0
purchasingLabel.Parent = purchasingFrame .ZIndex = 10
.Parent = purchasingFrame
createSpinner UDim2.new(0, 50, 0, 50), UDim2.new(0.5, -25, 0.5, 30), purchasingLabel createSpinner UDim2.new(0, 50, 0, 50), UDim2.new(0.5, -25, 0.5, 30), purchasingLabel

View File

@ -322,7 +322,7 @@ createHelpDialog = function(baseZIndex)
if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then if UserSettings().GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] then
image.Image = mouseLockLookScreenUrl image.Image = mouseLockLookScreenUrl
else else
image.Image = classicLookScreenUrl image.Image = imageclassicLookScreenUrl
end end
end end
buttons[2] = { } buttons[2] = { }
@ -675,7 +675,7 @@ createGameSettingsMenu = function(baseZIndex, _)
autoText.Name = "AutoText" autoText.Name = "AutoText"
autoText.Text = "Auto" autoText.Text = "Auto"
autoText.Position = UDim2.new(0, 183, 0, 214) autoText.Position = UDim2.new(0, 183, 0, 214)
autoText.TextColor3 = Color3.new(128 / 255, 128 / 255, 128 / 255) autoText.TextColor3 = Color3.new(0.5, 0.5, 0.5)
autoText.Size = UDim2.new(0, 34, 0, 18) autoText.Size = UDim2.new(0, 34, 0, 18)
autoText.Parent = gameSettingsMenuFrame autoText.Parent = gameSettingsMenuFrame
autoText.Visible = not inStudioMode autoText.Visible = not inStudioMode
@ -724,7 +724,7 @@ createGameSettingsMenu = function(baseZIndex, _)
graphicsLevel.Value = math.floor((settings().Rendering:GetMaxQualityLevel() - 1) / 2) graphicsLevel.Value = math.floor((settings().Rendering:GetMaxQualityLevel() - 1) / 2)
local graphicsSetter = New("TextBox", "GraphicsSetter", { local graphicsSetter = New("TextBox", "GraphicsSetter", {
BackgroundColor3 = Color3.new(0, 0, 0), BackgroundColor3 = Color3.new(0, 0, 0),
BorderColor3 = Color3.new(128 / 255, 128 / 255, 128 / 255), BorderColor3 = Color3.new(0.5, 0.5, 0.5),
Size = UDim2.new(0, 50, 0, 25), Size = UDim2.new(0, 50, 0, 25),
Position = UDim2.new(0, 450, 0, 269), Position = UDim2.new(0, 450, 0, 269),
TextColor3 = Color3.new(1, 1, 1), TextColor3 = Color3.new(1, 1, 1),
@ -1333,22 +1333,18 @@ pcall(function()
end end
local createSaveDialogs local createSaveDialogs
createSaveDialogs = function() createSaveDialogs = function()
local shield = Instance.new("TextButton") local shield = New("TextButton", "SaveDialogShield", {
shield.Text = "" Text = "",
shield.AutoButtonColor = false AutoButtonColor = false,
shield.Name = "SaveDialogShield" Active = true,
shield.Active = true Visible = false,
shield.Visible = false Size = UDim2.new(1, 0, 1, 0),
shield.Size = UDim2.new(1, 0, 1, 0) BackgroundColor3 = Color3I(51, 51, 51),
shield.BackgroundColor3 = Color3I(51, 51, 51) BorderColor3 = Color3I(27, 42, 53),
shield.BorderColor3 = Color3I(27, 42, 53) BackgroundTransparency = 0.4,
shield.BackgroundTransparency = 0.4 ZIndex = baseZIndex + 1
shield.ZIndex = baseZIndex + 1 })
local clearAndResetDialog local clearAndResetDialog, save, saveLocal, dontSave, cancel
local save
local saveLocal
local dontSave
local cancel
local messageBoxButtons = { } local messageBoxButtons = { }
messageBoxButtons[1] = { } messageBoxButtons[1] = { }
messageBoxButtons[1].Text = "Save" messageBoxButtons[1].Text = "Save"
@ -1586,9 +1582,7 @@ pcall(function()
ZIndex = baseZIndex + 2 ZIndex = baseZIndex + 2
}) })
}) })
local abusingPlayer local abusingPlayer, abuse, submitReportButton
local abuse
local submitReportButton
local updatePlayerSelection local updatePlayerSelection
local createPlayersDropDown local createPlayersDropDown
createPlayersDropDown = function() createPlayersDropDown = function()

View File

@ -68,7 +68,7 @@ success, isMac = try
macClient = success and isMac macClient = success and isMac
Color3I = (r, g, b) -> Color3I = (r, g, b) ->
Color3.new(r / 255, g / 255, b / 255) Color3.new r / 255, g / 255, b / 255
robloxLock = (instance) -> robloxLock = (instance) ->
@ -215,7 +215,6 @@ CreateTextButtons = (frame, buttons, yPos, ySize) ->
else else
Enum.ButtonStyle.RobloxButton Enum.ButtonStyle.RobloxButton
for _, obj in ipairs buttons for _, obj in ipairs buttons
button = New "TextButton", "Button#{buttonNum}" button = New "TextButton", "Button#{buttonNum}"
Font: Enum.Font.Arial Font: Enum.Font.Arial
@ -268,18 +267,18 @@ setRecordGui = (recording, stopRecordButton, recordVideoButton) ->
recordVideoClick = (recordVideoButton, stopRecordButton) -> recordVideoClick = (recordVideoButton, stopRecordButton) ->
recordingVideo = not recordingVideo recordingVideo = not recordingVideo
setRecordGui(recordingVideo, stopRecordButton, recordVideoButton) setRecordGui recordingVideo, stopRecordButton, recordVideoButton
backToGame = (buttonClicked, shield, settingsButton) -> backToGame = (buttonClicked, shield, settingsButton) ->
buttonClicked.Parent.Parent.Parent.Parent.Visible = false buttonClicked.Parent.Parent.Parent.Parent.Visible = false
shield.Visible = false shield.Visible = false
for i = 1, #centerDialogs for i = 1, #centerDialogs
game.GuiService\RemoveCenterDialog(centerDialogs[i]) game.GuiService\RemoveCenterDialog centerDialogs[i]
centerDialogs[i].Visible = false centerDialogs[i].Visible = false
centerDialogs = {} centerDialogs = {}
game.GuiService\RemoveCenterDialog(shield) game.GuiService\RemoveCenterDialog shield
settingsButton.Active = true settingsButton.Active = true
@ -363,10 +362,12 @@ createHelpDialog = (baseZIndex) ->
buttons[1] = {} buttons[1] = {}
buttons[1].Text = "Look" buttons[1].Text = "Look"
buttons[1].Function = -> buttons[1].Function = ->
if UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] image.Image = if UserSettings!.GameSettings.ControlMode ==
image.Image = mouseLockLookScreenUrl Enum.ControlMode["Mouse Lock Switch"]
mouseLockLookScreenUrl
else else
image.Image = classicLookScreenUrl imageclassicLookScreenUrl
buttons[2] = {} buttons[2] = {}
@ -385,7 +386,7 @@ createHelpDialog = (baseZIndex) ->
image.Image = "http://www.roblox.com/Asset?id=45915825" 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 -- set up listeners for type of mouse mode, but keep constructing gui at same time
delay 0, -> delay 0, ->
@ -792,11 +793,12 @@ createGameSettingsMenu = (baseZIndex, _) ->
Parent: gameSettingsMenuFrame Parent: gameSettingsMenuFrame
studioShortcut = fullscreenShortcut\clone! studioShortcut = fullscreenShortcut\clone!
studioShortcut.Name = "StudioShortcutText" with studioShortcut
studioShortcut.Visible = false -- TODO: turn back on when f2 hack is fixed .Name = "StudioShortcutText"
studioShortcut.Text = "F2" .Visible = false -- TODO: turn back on when f2 hack is fixed
studioShortcut.Position = UDim2.new 0, 154, 0, 175 .Text = "F2"
studioShortcut.Parent = gameSettingsMenuFrame .Position = UDim2.new 0, 154, 0, 175
.Parent = gameSettingsMenuFrame
local studioCheckbox local studioCheckbox
@ -818,7 +820,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
.Name = "AutoText" .Name = "AutoText"
.Text = "Auto" .Text = "Auto"
.Position = UDim2.new 0, 183, 0, 214 .Position = UDim2.new 0, 183, 0, 214
.TextColor3 = Color3.new 128 / 255, 128 / 255, 128 / 255 .TextColor3 = Color3.new 0.5, 0.5, 0.5
.Size = UDim2.new 0, 34, 0, 18 .Size = UDim2.new 0, 34, 0, 18
.Parent = gameSettingsMenuFrame .Parent = gameSettingsMenuFrame
.Visible = not inStudioMode .Visible = not inStudioMode
@ -883,7 +885,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
graphicsSetter = New "TextBox", "GraphicsSetter" graphicsSetter = New "TextBox", "GraphicsSetter"
BackgroundColor3: Color3.new 0, 0, 0 BackgroundColor3: Color3.new 0, 0, 0
BorderColor3: Color3.new 128 / 255, 128 / 255, 128 / 255 BorderColor3: Color3.new 0.5, 0.5, 0.5
Size: UDim2.new 0, 50, 0, 25 Size: UDim2.new 0, 50, 0, 25
Position: UDim2.new 0, 450, 0, 269 Position: UDim2.new 0, 450, 0, 269
TextColor3: Color3.new 1, 1, 1 TextColor3: Color3.new 1, 1, 1
@ -1203,19 +1205,17 @@ createGameSettingsMenu = (baseZIndex, _) ->
if hasGraphicsSlider if hasGraphicsSlider
UserSettings!.GameSettings.FullscreenChanged\connect (isFullscreen) -> UserSettings!.GameSettings.FullscreenChanged\connect (isFullscreen) ->
if isFullscreen fullscreenCheckbox.Text = if isFullscreen
fullscreenCheckbox.Text = "X" "X"
else else
fullscreenCheckbox.Text = "" ""
else else
fullscreenCheckbox.MouseButton1Click\connect -> fullscreenCheckbox.MouseButton1Click\connect ->
if fullscreenCheckbox.Text == "" fullscreenCheckbox.Text = if fullscreenCheckbox.Text == ""
fullscreenCheckbox.Text = "X" "X"
else else
fullscreenCheckbox.Text = "" ""
if game\FindFirstChild "NetworkClient" -- we are playing online if game\FindFirstChild "NetworkClient" -- we are playing online
setDisabledState studioText setDisabledState studioText
@ -1230,7 +1230,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
Enum.ButtonStyle.RobloxButtonDefault, Enum.ButtonStyle.RobloxButtonDefault,
Enum.FontSize.Size24, Enum.FontSize.Size24,
UDim2.new(0, 180, 0, 50), UDim2.new(0, 180, 0, 50),
UDim2.new(0, 170, 0, 330) UDim2.new 0, 170, 0, 330
) )
backButton.Modal = true backButton.Modal = true
else else
@ -1239,7 +1239,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
Enum.ButtonStyle.RobloxButtonDefault, Enum.ButtonStyle.RobloxButtonDefault,
Enum.FontSize.Size24, Enum.FontSize.Size24,
UDim2.new(0, 180, 0, 50), UDim2.new(0, 180, 0, 50),
UDim2.new(0, 170, 0, 270) UDim2.new 0, 170, 0, 270
) )
backButton.Modal = true backButton.Modal = true
@ -1324,13 +1324,14 @@ createGameSettingsMenu = (baseZIndex, _) ->
mouseLockLabel.Visible = false mouseLockLabel.Visible = false
cameraDropDown.Name = "CameraField" with cameraDropDown
cameraDropDown.ZIndex = baseZIndex + 4 .Name = "CameraField"
cameraDropDown.DropDownMenuButton.ZIndex = baseZIndex + 4 .ZIndex = baseZIndex + 4
cameraDropDown.DropDownMenuButton.Icon.ZIndex = baseZIndex + 4 .DropDownMenuButton.ZIndex = baseZIndex + 4
cameraDropDown.Position = UDim2.new 0, 270, 0, 52 .DropDownMenuButton.Icon.ZIndex = baseZIndex + 4
cameraDropDown.Size = UDim2.new 0, 200, 0, 32 .Position = UDim2.new 0, 270, 0, 52
cameraDropDown.Parent = gameSettingsMenuFrame .Size = UDim2.new 0, 200, 0, 32
.Parent = gameSettingsMenuFrame
gameSettingsMenuFrame gameSettingsMenuFrame
@ -1340,7 +1341,7 @@ if LoadLibrary
baseZIndex = 0 baseZIndex = 0
if UserSettings if UserSettings
createSettingsDialog = -> createSettingsDialog = ->
waitForChild(gui, "BottomLeftControl") waitForChild gui, "BottomLeftControl"
settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton" settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton"
if not settingsButton? if not settingsButton?
@ -1352,7 +1353,6 @@ if LoadLibrary
Position: UDim2.new 0, 2, 0, 50 Position: UDim2.new 0, 2, 0, 50
Parent: gui.BottomLeftControl Parent: gui.BottomLeftControl
shield = New "TextButton", "UserSettingsShield" shield = New "TextButton", "UserSettingsShield"
Text: "" Text: ""
Active: true Active: true
@ -1418,7 +1418,7 @@ if LoadLibrary
else else
delay 0, -> delay 0, ->
waitForProperty(game.Players, "LocalPlayer") waitForProperty game.Players, "LocalPlayer"
gameMainMenu.ResetButton.Visible = game.Players.LocalPlayer gameMainMenu.ResetButton.Visible = game.Players.LocalPlayer
game.Players.LocalPlayer.Changed\connect -> game.Players.LocalPlayer.Changed\connect ->
localPlayerChange! localPlayerChange!
@ -1448,11 +1448,11 @@ if LoadLibrary
--showFunction --showFunction
-> ->
settingsButton.Active = false settingsButton.Active = false
updateCameraDropDownSelection(UserSettings!.GameSettings.ControlMode.Name) updateCameraDropDownSelection UserSettings!.GameSettings.ControlMode.Name
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 shield.Visible = true
shield.Active = true shield.Active = true
settingsFrame.Parent\TweenPosition( settingsFrame.Parent\TweenPosition(
@ -1506,31 +1506,31 @@ if LoadLibrary
lastMenuSelection[#lastMenuSelection]["lastSize"] lastMenuSelection[#lastMenuSelection]["lastSize"]
) )
table.remove(lastMenuSelection, #lastMenuSelection) table.remove lastMenuSelection, #lastMenuSelection
if #lastMenuSelection == 1 -- apparently lua can't reduce count to 0... T_T if #lastMenuSelection == 1 -- apparently lua can't reduce count to 0... T_T
lastMenuSelection = {} lastMenuSelection = {}
else else
resumeGameFunction(shield) resumeGameFunction shield
gameSettingsMenu = createGameSettingsMenu(baseZIndex, shield) gameSettingsMenu = createGameSettingsMenu baseZIndex, shield
gameSettingsMenu.Visible = false gameSettingsMenu.Visible = false
gameSettingsMenu.Parent = settingsFrame gameSettingsMenu.Parent = settingsFrame
gameMainMenu.SettingsButton.MouseButton1Click\connect -> 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 -> 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.Visible = false
resetConfirmationWindow.Parent = settingsFrame resetConfirmationWindow.Parent = settingsFrame
leaveConfirmationWindow = createLeaveConfirmationMenu(baseZIndex, shield) leaveConfirmationWindow = createLeaveConfirmationMenu baseZIndex, shield
leaveConfirmationWindow.Visible = false leaveConfirmationWindow.Visible = false
leaveConfirmationWindow.Parent = settingsFrame leaveConfirmationWindow.Parent = settingsFrame
@ -1543,11 +1543,11 @@ if LoadLibrary
--showFunction --showFunction
-> ->
settingsButton.Active = false settingsButton.Active = false
updateCameraDropDownSelection(UserSettings!.GameSettings.ControlMode.Name) updateCameraDropDownSelection UserSettings!.GameSettings.ControlMode.Name
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 shield.Visible = true
settingsFrame.Parent\TweenPosition( settingsFrame.Parent\TweenPosition(
UDim2.new(0.5, -262, 0.5, -200), UDim2.new(0.5, -262, 0.5, -200),
@ -1585,8 +1585,7 @@ if LoadLibrary
) )
shield
return shield
delay 0, -> delay 0, ->
@ -1595,10 +1594,12 @@ if LoadLibrary
gui.BottomLeftControl.SettingsButton.Active = true gui.BottomLeftControl.SettingsButton.Active = true
gui.BottomLeftControl.SettingsButton.Position = UDim2.new 0, 2, 0, -2 gui.BottomLeftControl.SettingsButton.Position = UDim2.new 0, 2, 0, -2
if mouseLockLabel and UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"] mouseLockLabel.Visible = if mouseLockLabel and
mouseLockLabel.Visible = true UserSettings!.GameSettings.ControlMode == Enum.ControlMode["Mouse Lock Switch"]
true
elseif mouseLockLabel elseif mouseLockLabel
mouseLockLabel.Visible = false false
-- our script has loaded, get rid of older buttons now -- our script has loaded, get rid of older buttons now
@ -1613,28 +1614,22 @@ if LoadLibrary
if leaveGameButton if leaveGameButton
leaveGameButton\Remove! leaveGameButton\Remove!
topLeft\Remove! topLeft\Remove!
--UserSettings call --UserSettings call
createSaveDialogs = -> createSaveDialogs = ->
shield = Instance.new "TextButton" shield = New "TextButton", "SaveDialogShield"
shield.Text = "" Text: ""
shield.AutoButtonColor = false AutoButtonColor: false
shield.Name = "SaveDialogShield" Active: true
shield.Active = true Visible: false
shield.Visible = false Size: UDim2.new 1, 0, 1, 0
shield.Size = UDim2.new 1, 0, 1, 0 BackgroundColor3: Color3I 51, 51, 51
shield.BackgroundColor3 = Color3I 51, 51, 51 BorderColor3: Color3I 27, 42, 53
shield.BorderColor3 = Color3I 27, 42, 53 BackgroundTransparency: 0.4
shield.BackgroundTransparency = 0.4 ZIndex: baseZIndex + 1
shield.ZIndex = baseZIndex + 1
local clearAndResetDialog local clearAndResetDialog, save, saveLocal, dontSave, cancel
local save
local saveLocal
local dontSave
local cancel
messageBoxButtons = {} messageBoxButtons = {}
messageBoxButtons[1] = {} messageBoxButtons[1] = {}
@ -1787,7 +1782,6 @@ if LoadLibrary
game\FinishShutdown true game\FinishShutdown true
clearAndResetDialog! clearAndResetDialog!
dontSave = -> dontSave = ->
saveDialogMessageBox.Visible = false saveDialogMessageBox.Visible = false
errorDialogMessageBox.Visible = false errorDialogMessageBox.Visible = false
@ -1799,7 +1793,6 @@ if LoadLibrary
errorDialogMessageBox.Visible = false errorDialogMessageBox.Visible = false
clearAndResetDialog! clearAndResetDialog!
clearAndResetDialog = -> clearAndResetDialog = ->
saveDialogMessageBox.Visible = true saveDialogMessageBox.Visible = true
errorDialogMessageBox.Visible = false errorDialogMessageBox.Visible = false
@ -1807,12 +1800,10 @@ if LoadLibrary
shield.Visible = false shield.Visible = false
game.GuiService\RemoveCenterDialog shield game.GuiService\RemoveCenterDialog shield
robloxLock shield robloxLock shield
shield.Visible = false shield.Visible = false
shield shield
createReportAbuseDialog = -> createReportAbuseDialog = ->
--Only show things if we are a NetworkClient --Only show things if we are a NetworkClient
waitForChild game, "NetworkClient" waitForChild game, "NetworkClient"
@ -1930,10 +1921,7 @@ if LoadLibrary
TextXAlignment: Enum.TextXAlignment.Left TextXAlignment: Enum.TextXAlignment.Left
ZIndex: baseZIndex + 2 ZIndex: baseZIndex + 2
local abusingPlayer local abusingPlayer, abuse, submitReportButton
local abuse
local submitReportButton
local updatePlayerSelection local updatePlayerSelection
createPlayersDropDown = -> createPlayersDropDown = ->
players = game\GetService "Players" players = game\GetService "Players"
@ -1955,24 +1943,23 @@ if LoadLibrary
if abuse and abusingPlayer if abuse and abusingPlayer
submitReportButton.Active = true submitReportButton.Active = true
with playerDropDown
.Name = "PlayersComboBox"
.ZIndex = baseZIndex + 2
.Position = UDim2.new 0.425, 0, 0, 102
.Size = UDim2.new 0.55, 0, 0, 32
playerDropDown.Name = "PlayersComboBox" abuses =
playerDropDown.ZIndex = baseZIndex + 2 * "Swearing"
playerDropDown.Position = UDim2.new 0.425, 0, 0, 102 * "Bullying"
playerDropDown.Size = UDim2.new 0.55, 0, 0, 32 * "Scamming"
playerDropDown * "Dating"
* "Cheating/Exploiting"
* "Personal Questions"
* "Offsite Links"
* "Bad Model or Script"
* "Bad Username"
abuses = {
"Swearing",
"Bullying",
"Scamming",
"Dating",
"Cheating/Exploiting",
"Personal Questions",
"Offsite Links",
"Bad Model or Script",
"Bad Username",
}
local abuseDropDown, updateAbuseSelection = RbxGui.CreateDropDownMenu(abuses, (abuseText) -> local abuseDropDown, updateAbuseSelection = RbxGui.CreateDropDownMenu(abuses, (abuseText) ->
abuse = abuseText abuse = abuseText
if abuse and abusingPlayer if abuse and abusingPlayer
@ -2112,68 +2099,64 @@ if LoadLibrary
shield shield
-- createChatBar = -> -- createChatBar = ->
-- --Only show a chat bar if we are a NetworkClient -- --Only show a chat bar if we are a NetworkClient
-- waitForChild(game, "NetworkClient") -- waitForChild game, "NetworkClient"
-- waitForChild(game, "Players") -- waitForChild game, "Players"
-- waitForProperty(game.Players, "LocalPlayer") -- waitForProperty game.Players, "LocalPlayer"
-- chatBar = Instance.new "Frame" -- chatBar = New "Frame", "ChatBar"
-- chatBar.Name = "ChatBar" -- Size: UDim2.new 1, 0, 0, 22
-- chatBar.Size = UDim2.new 1, 0, 0, 22 -- Position: UDim2.new 0, 0, 1, 0
-- chatBar.Position = UDim2.new 0, 0, 1, 0 -- BackgroundColor3: Color3.new 0, 0, 0
-- chatBar.BackgroundColor3 = Color3.new 0, 0, 0 -- BorderSizePixel: 0
-- chatBar.BorderSizePixel = 0
-- chatBox = Instance.new "TextBox" -- chatBox = New "TextBox"
-- chatBox.Text = "" -- Text: ""
-- chatBox.Visible = false -- Visible: false
-- chatBox.Size = UDim2.new 1, -4, 1, 0 -- Size: UDim2.new 1, -4, 1, 0
-- chatBox.Position = UDim2.new 0, 2, 0, 0 -- Position: UDim2.new 0, 2, 0, 0
-- chatBox.TextXAlignment = Enum.TextXAlignment.Left -- TextXAlignment: Enum.TextXAlignment.Left
-- chatBox.Font = Enum.Font.Arial -- Font: Enum.Font.Arial
-- chatBox.ClearTextOnFocus = false -- ClearTextOnFocus: false
-- chatBox.FontSize = Enum.FontSize.Size14 -- FontSize: Enum.FontSize.Size14
-- chatBox.TextColor3 = Color3.new 1, 1, 1 -- TextColor3: Color3.new 1, 1, 1
-- chatBox.BackgroundTransparency = 1 -- BackgroundTransparency: 1
-- --chatBox.Parent = chatBar -- --chatBox.Parent: chatBar
-- chatButton = Instance.new "TextButton" -- chatButton = New "TextButton"
-- chatButton.Size = UDim2.new 1, -4, 1, 0 -- Size: UDim2.new 1, -4, 1, 0
-- chatButton.Position = UDim2.new 0, 2, 0, 0 -- Position: UDim2.new 0, 2, 0, 0
-- chatButton.AutoButtonColor = false -- AutoButtonColor: false
-- chatButton.Text = 'To chat click here or press "/" key' -- Text: 'To chat click here or press "/" key'
-- chatButton.TextXAlignment = Enum.TextXAlignment.Left -- TextXAlignment: Enum.TextXAlignment.Left
-- chatButton.Font = Enum.Font.Arial -- Font: Enum.Font.Arial
-- chatButton.FontSize = Enum.FontSize.Size14 -- FontSize: Enum.FontSize.Size14
-- chatButton.TextColor3 = Color3.new 1, 1, 1 -- TextColor3: Color3.new 1, 1, 1
-- chatButton.BackgroundTransparency = 1 -- BackgroundTransparency: 1
-- --chatButton.Parent = chatBar -- --chatButton.Parent: chatBar
-- activateChat = -> -- activateChat = ->
-- if chatBox.Visible -- return if chatBox.Visible
-- return
-- end
-- chatButton.Visible = false -- chatButton.Visible = false
-- chatBox.Text = "" -- chatBox.Text = ""
-- chatBox.Visible = true -- chatBox.Visible = true
-- chatBox\CaptureFocus! -- chatBox\CaptureFocus!
-- end
-- chatButton.MouseButton1Click\connect(activateChat) -- chatButton.MouseButton1Click\connect activateChat
-- -- hotKeyEnabled = true -- -- hotKeyEnabled = true
-- toggleHotKey = function(_) -- toggleHotKey = (_) ->
-- -- hotKeyEnabled = value -- -- hotKeyEnabled = value
-- end
-- -- guiService = game\GetService "GuiService" -- -- guiService = game\GetService "GuiService"
-- --[[newChatMode = ]]try -- --[[newChatMode = ]]try
-- --guiService\AddSpecialKey(Enum.SpecialKey.ChatHotkey) -- --guiService\AddSpecialKey(Enum.SpecialKey.ChatHotkey)
-- --guiService.SpecialKeyPressed\connect (key) -> if key == Enum.SpecialKey.ChatHotkey and hotKeyEnabled then activateChat! end end) -- --guiService.SpecialKeyPressed\connect (key) -> if key == Enum.SpecialKey.ChatHotkey and hotKeyEnabled then activateChat! end end)
-- end)
-- -- if not newChatMode -- -- if not newChatMode
-- --guiService\AddKey("/") -- --guiService\AddKey("/")
-- --guiService.KeyPressed\connect (key) -> if key == "/" and hotKeyEnabled then activateChat! end end) -- --guiService.KeyPressed\connect (key) -> if key == "/" and hotKeyEnabled then activateChat! end end)
@ -2184,19 +2167,16 @@ if LoadLibrary
-- if chatBox.Text ~= "" -- if chatBox.Text ~= ""
-- str = chatBox.Text -- str = chatBox.Text
-- if string.sub(str, 1, 1) == "%" -- if string.sub(str, 1, 1) == "%"
-- game.Players\TeamChat(string.sub(str, 2)) -- game.Players\TeamChat string.substr, 2
-- else -- else
-- game.Players\Chat(str) -- game.Players\Chat str
-- end
-- end
-- end
-- chatBox.Text = "" -- chatBox.Text = ""
-- chatBox.Visible = false -- chatBox.Visible = false
-- chatButton.Visible = true -- chatButton.Visible = true
-- end)
-- robloxLock(chatBar) -- robloxLock chatBar
-- return chatBar, toggleHotKey -- chatBar, toggleHotKey
-- end
--Spawn a thread for the Save dialogs --Spawn a thread for the Save dialogs
isSaveDialogSupported = try isSaveDialogSupported = try