Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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 !

0
i have the x button image label under game.StarterGui.IntGui.IntFrame.XButton bluffaloo -8 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

Ad

Answer this question