Here's my code.
if game:GetService("UserInputService").GamepadEnabled then game.StarterGui.MainGui.XboxFrame.Visible = true end
StarterGui
. You get it from PlayerGui
.if game:GetService("UserInputService").GamepadEnabled then local pgui = game:GetService("Players").LocalPlayer.PlayerGui pgui.MainGui.XboxFrame.Visible = true end