Attempt to fix RbxGui script (again)

This commit is contained in:
Lewin Kelly 2023-04-24 07:04:21 +01:00
parent 595169f751
commit 970792c039
2 changed files with 6 additions and 6 deletions

View File

@ -1007,7 +1007,7 @@ createGameSettingsMenu = function(baseZIndex, _)
backButton.Name = "BackButton"
backButton.ZIndex = baseZIndex + 4
backButton.Parent = gameSettingsMenuFrame
local syncVideoCaptureSetting = nil
syncVideoCaptureSetting = nil
if not macClient then
local videoCaptureLabel = Instance.new("TextLabel")
videoCaptureLabel.Name = "VideoCaptureLabel"
@ -1092,13 +1092,13 @@ createGameSettingsMenu = function(baseZIndex, _)
return gameSettingsMenuFrame
end
if LoadLibrary then
local RbxGui = LoadLibrary("RbxGui")
RbxGui = LoadLibrary("RbxGui")
local baseZIndex = 0
if UserSettings then
local createSettingsDialog
createSettingsDialog = function()
waitForChild(gui, "BottomLeftControl")
local settingsButton = gui.BottomLeftControl:FindFirstChild("SettingsButton")
settingsButton = gui.BottomLeftControl:FindFirstChild("SettingsButton")
if settingsButton == nil then
settingsButton = Instance.new("ImageButton")
settingsButton.Name = "SettingsButton"

View File

@ -1246,7 +1246,7 @@ createGameSettingsMenu = (baseZIndex, _) ->
backButton.ZIndex = baseZIndex + 4
backButton.Parent = gameSettingsMenuFrame
syncVideoCaptureSetting = nil
global syncVideoCaptureSetting = nil
if not macClient
videoCaptureLabel = Instance.new "TextLabel"
@ -1335,12 +1335,12 @@ createGameSettingsMenu = (baseZIndex, _) ->
gameSettingsMenuFrame
if LoadLibrary
RbxGui = LoadLibrary "RbxGui"
global RbxGui = LoadLibrary "RbxGui"
baseZIndex = 0
if UserSettings
createSettingsDialog = ->
waitForChild gui, "BottomLeftControl"
settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton"
global settingsButton = gui.BottomLeftControl\FindFirstChild "SettingsButton"
if settingsButton == nil
settingsButton = Instance.new "ImageButton"