Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do i make a gui visible on xbox rather than pc?

Hello, i saw that you are a scripter, i am currently working on a game i want to make xbox and pc compatible, but im stuck on one thing, for example i have if the x button was pressed on the controller, the shop would open, i have that all figured out, but it shows a image label "x" on my screen, and i want that to only show on xbox, not pc, how would i do that? Please help, been stuck on this forever !

1 comment

0

i have the x button image label under game.StarterGui.IntGui.IntFrame.XButton

1 answer

GuiService.IsTenFootInterface will narrow you down to consoles.

LocalScript in StarterGui:

if game:GetService('GuiService').IsTenFootInterface then
	script.Parent.IntFrame.XButton.Visible = true
end

For more information on this Click Here

This discussion is preserved as it was. New answers, comments, and votes are closed.