“rbxasset://textures/ui/Settings/Help/YButtonDark.png”,

Visible = recordPage:IsRecording(),
Parent = gamepadSettingsFrame
}
local stopRecordingText = utility:Create’TextLabel’
{
Name = “stopRecordingHintText”,
Position = UDim2.new(1,10,0.5,-12),
Size = UDim2.new(0,43,0,24),
Font = Enum.Font.SourceSansBold,
FontSize = Enum.FontSize.Size24,
BackgroundTransparency = 1,
Text = “Stop Recording”,
TextColor3 = Color3.new(1,1,1),
TextXAlignment = Enum.TextXAlignment.Left,
Parent = stopRecordingImage
}
recordPage.RecordingChanged:connect(function(isRecording)
stopRecordingImage.Visible = isRecording
end)]]
GuiService:AddSelectionParent(HttpService:GenerateGUID(false), gamepadSettingsFrame)
gamepadSettingsFrame:GetPropertyChangedSignal(“Visible”):connect(function()
if not gamepadSettingsFrame.Visible then
unbindAllRadialActions()
end
end)
VRService:GetPropertyChangedSignal(“VREnabled”):connect(function() toggleVR(VRService.VREnabled) end)
toggleVR(VRService.VREnabled)
end
local function isCoreGuiDisabled()
for _, enumItem in pairs(Enum.CoreGuiType:GetEnumItems()) do
if StarterGui:GetCoreGuiEnabled(enumItem) then
return false
end
end
return true
end
function updateGuiVisibility()
if VRService.VREnabled and vrPanel and isVisible then
vrPanel:SetVisible(true, true)
end
local children = gamepadSettingsFrame:GetChildren()
for i = 1, #children do
if children[i]:FindFirstChild(“RadialIcon”) then
children[i].RadialIcon.Visible = isVisible
end
if children[i]:FindFirstChild(“RadialLabel”) and not isVisible then
children[i].RadialLabel.Visible = isVisible
end
if children[i]:FindFirstChild(“RadialBackground”) and not isVisible then
children[i].RadialBackground.Visible = isVisible
end
end
end
doGamepadMenuButton = function(name, state, input)
if state ~= Enum.UserInputState.Begin then return end
if game.IsLoaded then
if not toggleCoreGuiRadial() then
unbindAllRadialActions()
end
end
end
if InputService:GetGamepadConnected(Enum.UserInputType.Gamepad1) then
createGamepadMenuGui()
else
InputService.GamepadConnected:connect(function(gamepadEnum)
if gamepadEnum == Enum.UserInputType.Gamepad1 then
createGamepadMenuGui()
end
end)
end
local defaultLoadingGuiRemovedConnection = nil
local loadedConnection = nil
local isLoadingGuiRemoved = false
local isPlayerAdded = false
local function updateRadialMenuActionBinding()
if isLoadingGuiRemoved and isPlayerAdded then
createGamepadMenuGui()
ContextActionService:BindCoreAction(toggleMenuActionName, doGamepadMenuButton, false, Enum.KeyCode.ButtonStart)
end
end
local function handlePlayerAdded()
loadedConnection:disconnect()
isPlayerAdded = true
updateRadialMenuActionBinding()
end
loadedConnection = Players.PlayerAdded:connect(
function(plr)
if Players.LocalPlayer and plr == Players.LocalPlayer then
handlePlayerAdded()
end
end
)
if Players.LocalPlayer then
handlePlayerAdded()
end
local function handleDefaultLoadingGuiRemoved()
if defaultLoadingGuiRemovedConnection then
defaultLoadingGuiRemovedConnection:disconnect()
end
isLoadingGuiRemoved = true
updateRadialMenuActionBinding()
end
if game:Get