Here's my code.
if game:GetService("UserInputService").GamepadEnabled then
game.StarterGui.MainGui.XboxFrame.Visible = true
end
Here's my code.
if game:GetService("UserInputService").GamepadEnabled then
game.StarterGui.MainGui.XboxFrame.Visible = true
end
###You do not get the frame from 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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
use game.Players just easier no diffrent i don't think than what you did
No, game.Players is prone to script failure, should the Players service be renamed..